Always set a -maxrate to prevent massive spikes that could cause buffering during playback. 2. The Deadline (Quality vs. Speed)
A typical 4-to-5 gigabyte episode source is reliably compressed down to 800MB – 1.2GB per episode.
ffmpeg -i input.mkv -c:v libvpx-vp9 \ -cpu-used 2 \ -crf 30 \ -b:v 900k \ -maxrate 1800k -bufsize 3600k \ -threads 4 -row-mt 1 -tile-columns 2 \ -g 120 -tile-rows 0 \ -pass 1 -f webm /dev/null vera s05 libvpx best
: Use -pix_fmt yuv420p10le for 10-bit encoding to reduce banding in the detailed areas of the Vera sequence. Common Research Context
Setting the bitrate ( -b:v ) to 0 is mandatory when using Constrained Quality mode in VP9. It forces the encoder to rely strictly on the Constant Rate Factor ( -crf ). Always set a -maxrate to prevent massive spikes
If you're a fan of the British crime drama Vera (Season 5, or "S05") and want to create a high-quality digital archive of the episodes, you've likely arrived here. Or perhaps you're a developer or video enthusiast aiming to optimize your own content. Either way, you're in the right place. This guide is your complete, data-driven playbook for mastering the libvpx encoder (for VP8 and VP9) to get the perfect balance of quality, file size, and encoding speed for projects just like this.
Optimizing libvpx for Real-Time Video: Best Practices for the Vera S05 System Speed) A typical 4-to-5 gigabyte episode source is
There are two primary ways to tell libvpx what quality level you want: