ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.19k stars 831 forks source link

AV1 and VP9 transcoding failure #663

Closed Alex20180512 closed 5 days ago

Alex20180512 commented 9 months ago

Describe the bug It works fine when using the default encoding format, but not when I wish to transcode to AV1 or VP9.

To Reproduce The code snippets below, are all written in https://github.com/ffmpegwasm/ffmpeg.wasm/blob/main/apps/react-vite-app/src/App.tsx.

When I want to be able to convert to AV1, the code is as follows: image

But the browser just tells me that there's an error, but I'm not sure how to fix it, and I get this error when I try to convert to VP9: 截屏2024-01-04 16 06 49

Expected behavior It can be transcoded to AV1 or VP9 normally.

Desktop (please complete the following information):

izogfif commented 2 weeks ago

AV1 is only supported in 0.9.0 / next version. Do you get the same issue when converting to VP9? Also, make sure that your files are small enough to fit in browser's memory and that files exist in the first place. "FS error" usually means that there was an error during writing or reading the file.