Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: yt-dlp config file different than old youtube-dl
Date: Sat, 08 Jan 2022 18:40:53
Message-Id: srclqk$1104$1@ciao.gmane.io
In Reply to: [gentoo-user] yt-dlp config file different than old youtube-dl by Dale
1 On 08/01/2022 07:26, Dale wrote:
2 > This is the line from the old youtube-dl.conf that worked for it:
3 >
4 > --format 'bestvideo[ext=webm,ext=mp4][width<=?1280]+bestaudio/best'
5
6 The "--format-sort" option is much better for this. To prefer 720p video
7 or lower, but not higher:
8
9 --format-sort=width:1280,height:720,vcodec:av1
10
11 The AV1 codec preference is nowadays default, but I like to specify it
12 anyway. AV1 has the smallest video size but at the same time the highest
13 video quality as well. If AV1 is not available, it will fall back to VP9
14 (higher quality, bigger size,) and then to H.264 (lower quality, smaller
15 size.)