25
submitted 1 day ago by arsus5478@lemmy.ml to c/linux@lemmy.ml

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.

top 6 comments
sorted by: hot top controversial new old
[-] data1701d@startrek.website 2 points 16 hours ago

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 points 6 hours ago

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:

[-] Peffse@lemmy.world 4 points 1 day ago

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 points 1 day ago

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

[-] gyrfalcon@beehaw.org 1 points 23 hours ago

I think you would want to include [vcodec!=av1] somewhere in your format specifications. Let me try it and see.

[-] gyrfalcon@beehaw.org 2 points 22 hours ago

Okay looks like your format spec should look something like 'bv*[ext=mp4][vcodec!^=av01]+ba[ext=m4a]/b[ext=mp4][vcodec!^=av01]'. Single quotes needed to keep shell expansion from fighting me, not sure if that will be an issue for you. You may have intended this, but the extension restriction does mean that you'll sometimes skip "better" formats like VP9 if they are webms or something, and you can specify an output mux if that is what you are trying to achieve.

this post was submitted on 18 Dec 2025
25 points (100.0% liked)

Linux

57274 readers
339 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS