debian 13.2 with yt-dlp 2025.12.08 from yt-dlp/yt-dlp. What command do I need to download the newest format available, not exceeding 1080p and up to VP9?

newest / best format would be AV1, but my computer doesn't support it completely. VP9 is completely supported.

the command I've been using: yt-dlp -f bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] -S height:1080 --all-subs --no-warnings -v https://www.youtube.com/watchx

this command downloads the best available video up to 1080p, but if the best video format available is AV1, it will download it. I need a command that downloads the best video but up to VP9.

Help appreciated.

26 points · 4 comments · view on lemmy.world

4 Comments

Peffse@lemmy.world · 6 pts · 236d

use --compat-options prefer-vp9-sort

yt-dlp -f bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] -S height:1080 --compat-options prefer-vp9-sort --all-subs --no-warnings -v https://www.youtube.com/watchx

NorthWestWind@lemmy.world · 2 pts · 236d

Seems like a job for ffmpeg. You may want to look into post-processing options of yt-dlp.

data1701d@startrek.website · 2 pts · 236d (1 reply)

Honestly, AV1 software decode isn’t that bad on most recent hardware. My desktop with 2018 hardware does it just fine, and so does my 2023 laptop.

Peffse@lemmy.world · 2 pts · 236d

I learned the VP9 sort after I saw how randomly abysmal the encoding is for AV1.

Just look at these numbers:

and a direct comparison, same frame from AV1:

and then VP9: