FFmpeg - Encode VP9: Difference between revisions
From PiRho Knowledgebase
Jump to navigationJump to search
mNo edit summary |
m Knowledgebaseadmin moved page FFmpeg - VP9 to FFmpeg - Encode VP9 |
||
(No difference)
| |||
Latest revision as of 14:19, 6 March 2025
Two-pass is the recommended encoding method for libvpx-vp9 as some quality-enhancing encoder features are only available in 2-pass mode.
Constant quality 2-pass is invoked by setting -b:v to zero and specifying a quality level using the -crf switch:
ffmpeg -i <input.file> -c:v libvpx-vp9 -b:v 0 -crf 30 -pass 1 -an -f null /dev/null && \ ffmpeg -i <input.file> -c:v libvpx-vp9 -b:v 0 -crf 30 -pass 2 -c:a libopus <output.file>
Note: Windows users should use NUL instead of /dev/null and ^ instead of \.
Reference: [FFmpeg: FFmpeg and VP9 Encoding Guide]