yt-dlp

General

downloads youtube media streams to video,audio,…

Installation

$ apt install yt-dlp

Back in the days, it was called youtube-dl, so if you running a very old system and still fetchs packages from an old mirror, it could be that you have to search for this.

Sample

$ yt-dlp -F "https://www.youtube.com/watch?v=d8JwqdMd3Ws"
[youtube] d8JwqdMd3Ws: Downloading webpage
[youtube] d8JwqdMd3Ws: Downloading video info webpage
[info] Available formats for d8JwqdMd3Ws:
format code  extension  resolution note
249          webm       audio only DASH audio   47k , opus @ 50k, 594.70KiB
250          webm       audio only DASH audio   59k , opus @ 70k, 742.87KiB
171          webm       audio only DASH audio   94k , vorbis@128k, 1.16MiB
251          webm       audio only DASH audio  106k , opus @160k, 1.29MiB
140          m4a        audio only DASH audio  146k , m4a_dash container, mp4a.40.2@128k, 1.67MiB
278          webm       192x144    144p   72k , webm container, vp9, 30fps, video only, 901.05KiB
160          mp4        192x144    144p   85k , avc1.4d400c, 30fps, video only, 824.10KiB
242          webm       320x240    240p  114k , vp9, 30fps, video only, 1.26MiB
133          mp4        320x240    240p  119k , avc1.4d400d, 30fps, video only, 1.11MiB
243          webm       480x360    360p  260k , vp9, 30fps, video only, 2.87MiB
134          mp4        480x360    360p  476k , avc1.4d401e, 30fps, video only, 4.37MiB
244          webm       640x480    480p  519k , vp9, 30fps, video only, 5.82MiB
135          mp4        640x480    480p  878k , avc1.4d401e, 30fps, video only, 9.31MiB
17           3gp        176x144    small , mp4v.20.3, mp4a.40.2@ 24k, 1.02MiB
36           3gp        320x240    small , mp4v.20.3, mp4a.40.2, 3.07MiB
18           mp4        480x360    medium , avc1.42001E, mp4a.40.2@ 96k, 8.35MiB (best)

$ yt-dlp -f 140 "https://www.youtube.com/watch?v=d8JwqdMd3Ws"
[youtube] d8JwqdMd3Ws: Downloading webpage
[youtube] d8JwqdMd3Ws: Downloading video info webpage
[download] Destination: Geburtstagsständchen von den Wise Guys-d8JwqdMd3Ws.m4a
[download] 100% of 1.67MiB in 00:04
[ffmpeg] Correcting container in "Geburtstagsständchen von den Wise Guys-d8JwqdMd3Ws.m4a"

$ ffmpeg -i Q3L10FmE_gc.m4a -vn -ab 320k -ar 44100 -y Q3L10Fme_gc.mp3