Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube-dl only download specific codec if it has best resolution #26444
Comments
|
There is sadly no easy way to do this.
|
|
Sorry to hear that, but thanks for the workarounds |
|
If you are willing to use #25959, you can use |
Checklist
Question
OK so I've been using
youtube-dl --cookies cookies.txt -f '(bestvideo[vcodec*=av01]/bestvideo[vcodec=vp9]/bestvideo)+(bestaudio[acodec=opus]/bestaudio[acodec=vorbis]/bestaudio[acodec=aac]/bestaudio)/best' --sub-lang en --embed-subs --add-metadata %video% -o '%(title)s.%(ext)s'to download videos and have a question, when such a video has an av1 encode that is below the best resolution (let's say it has av1 144p but vp9 1080p) how would I tell it to download the best (less preferred) codec (in the case of the previous example vp9), instead of the lower quality (more preferred) codec?