ffmpegwasm / ffmpegwasm/ffmpeg.wasm

[Vue warn]: Error in nextTick: "Error: ffmpeg.FS('readFile', 'output.ogg') error. Check if the path exists"

未關閉
#198 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C
星號
17.8k
分支
1.1k
PR 合併指標
30 天內沒有已合併 PR

描述

浏览器端运行,代码如下,已经在this.ffmpeg.run前加了await,但还是报错,路径找不到,另外还报内存不足
await this.ffmpeg.load()
this.ffmpeg.FS('writeFile', name, await this.fetchFile(file))
await this.ffmpeg.run('-i', name, 'output.ogg')
const data = this.ffmpeg.FS('readFile', 'output.ogg')
const video = new Audio()
video.src = URL.createObjectURL(new Blob([data.buffer], {type: 'audio/ogg'}))
console.log(new Blob([data.buffer], {type: 'audio/ogg'}))

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。