Gentoo Archives: gentoo-user

From: Arve Barsnes <arve.barsnes@×××××.com>
To: Gentoo <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] yt-dlp config file different than old youtube-dl
Date: Sat, 08 Jan 2022 09:22:31
Message-Id: CAJjrzcUtWOXoU6yyYav-C0NoOO5zg0WTS-7fFC153dFb0RSs7g@mail.gmail.com
In Reply to: [gentoo-user] yt-dlp config file different than old youtube-dl by Dale
1 On Sat, 8 Jan 2022 at 06:27, Dale <rdalek1967@×××××.com> wrote:
2 > The part it really doesn't like seems to be this:
3 >
4 > SyntaxError: Invalid filter specification 'ext=webm,ext=mp4'
5 >
6 > Can someone tell me what the new and improved yt-dlp wants in its conf
7 > file to try for mp4 first and then webm? Nothing I tried seems to
8 > work. :-(
9
10 I have never used extension filtering before, but it might not be
11 possible to specify a list, so then you need to make one extra format
12 in your syntax. This worked for me:
13
14 --format 'bv*[ext=webm][width<=?1280]+bestaudio/bv*[ext=mp4][width<=?1280]+bestaudio/best'
15
16 Regards,
17 Arve

Replies

Subject Author
Re: [gentoo-user] yt-dlp config file different than old youtube-dl Dale <rdalek1967@×××××.com>