6/13/2023 0 Comments Webm vp9 ffmpeg crf![]() You may already know that, but it wasn't clear from your post. They can both hold lots of different codecs including vp9/opus or av1/opus. You don't have to do a 2-pass encode with SVTAV1.īy the way, MP4 and webm are both containers. ![]() Still, it will be more efficient than VP8 or probably VP9. So I changed the command to use the VP9 codec: ffmpeg -i source.mp4 -f webm -vcodec libvpx-vp9 -acodec libvorbis -b:v 10M -crf 50 -y result.webm. ![]() However, I wanted to use VP9 instead of VP8 to reduce the file size. Higher than that gets very fast but you aren't going to get the phenomenal quality you are looking for. Here is the ffmpeg command I use: ffmpeg -i source.mp4 -f webm -vcodec libvpx -acodec libvorbis -b:v 10M -crf 50 -y result.webm. If that's too slow for you, you can kick it up a notch to 8 or so. If this is too slow for you, try using a preset of 6. If your original source doesn't have film grain in it, omit the film-grain parameter. To use it, get the latest build of ffmpeg and SVTAV1, then run something like ffmpeg -i infile.mp4 -c:v libsvtav1 -preset 4 -crf 30 -g 240 -pix_fmt yuv420p10le -svtav1-params tune=0:film-grain=8 -c:a -b:a 128k libopus outfile.webm Or if you really want efficiency, you can try SVTAV1, which is a generation more advanced than VP9 and HEVC. At least, for other encoders, levels in the 20-30 range are more reasonable. Try following the constant quality two-pass encode instructions on this page.Ī crf of 4 sounds ridiculously low to me. I'm not aware of any reason to encode to VP8 in 2022. I believe this command tells ffmpeg to use the VP8 codec instead of the more advanced VP9 that is more common and better.
0 Comments
Leave a Reply. |