Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: youtube-dl has been very slow
Date: Mon, 08 Nov 2021 16:31:31
Message-Id: smbjcf$rb0$1@ciao.gmane.io
In Reply to: Re: [gentoo-user] youtube-dl has been very slow by "Matt Connell (Gmail)"
1 On 08/11/2021 17:57, Matt Connell (Gmail) wrote:
2 > What was the reasoning/motivation behind the fork? I see the yt-dl
3 > subreddit recommending yt-dlp as you have here, but not explanation
4 > other than the throttling being experienced and described here.
5
6 It was a fork that added things youtube-dl didn't want to add. They are
7 described on their github page:
8
9 https://github.com/yt-dlp/yt-dlp
10
11 One thing they added in particular that I find great is the ability to
12 specify which codec to prefer. I want AV1, which is the highest quality
13 codec on youtube. Before, I had to do this:
14
15 --format=bestvideo[vcodec^=av01][width>?2500][width<=?2560]+bestaudio/bestvideo[ext=webm][width>?2500][width<=?2560]+bestaudio/bestvideo[ext=mp4][width>?2500][width<=?2560]+bestaudio/bestvideo[vcodec^=av01][width>?1800][width<=?1920]+bestaudio/bestvideo[ext=webm][width>?1800][width<=?1920]+bestaudio/bestvideo[ext=mp4][width>?1800][width<=?1920]+bestaudio/bestvideo[vcodec^=av01][width>?1100][width<=?1280]+bestaudio/bestvideo[ext=webm][width>?1100][width<=?1280]+bestaudio/bestvideo[ext=mp4][width>?1100][width<=?1280]+bestaudio/bestvideo[vcodec^=av01][width>?800][width<=?1024]+bestaudio/bestvideo[ext=webm][width>?800][width<=?1024]+bestaudio/bestvideo[ext=mp4][width>?800][width<=?1024]+bestaudio/bestvideo[vcodec^=av01][width>?600][width<=?800]+bestaudio/bestvideo[ext=webm][width>?600][width<=?800]+bestaudio/bestvideo[ext=mp4][width>?600][width<=?800]+bestaudio/bestvideo[vcodec^=av01][width>?400][width<=?580]+bestaudio/bestvideo[ext=webm][width>?400][width<=?580]+bestaudio/bestvideo[ext=mp4][width>?400][width<=?580]+bestaudio/bestvideo[vcodec^=av01][width>?200][width<=?400]+bestaudio/bestvideo[ext=webm][width>?200][width<=?400]+bestaudio/bestvideo[ext=mp4][width>?200][width<=?400]+bestaudio/best
16
17 But with yt-dlp I only have to do this:
18
19 --format-sort=width:2560,height:1440,vcodec:av1
20
21 If that's not a win, I don't what is :)