ffmpegwasm / ffmpegwasm/ffmpeg.wasm
[Vue warn]: Error in nextTick: "Error: ffmpeg.FS('readFile', 'output.ogg') error. Check if the path exists"
Abierto
- Lenguaje dominante
- C
- Estrellas
- 17.8k
- Forks
- 1.1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
浏览器端运行,代码如下,已经在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'}))
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.