Quick & Dirty -- youtube-dl

Aus RZ-Amper Wiki
Version vom 16. April 2021, 16:19 Uhr von WikiSysop (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Download Audio from Youtube

First get a list of available formats and streams

 youtube-dl -F https://www.youtube.com/watch?v=FQG_PC3Y5Kk&ab_channel=Monof%C3%BCrAlle%21-Topic

This will give you a list

 249          webm       audio only tiny   50k , webm_dash container, opus @ 50k (48000Hz), 1.69MiB
 250          webm       audio only tiny   66k , webm_dash container, opus @ 66k (48000Hz), 2.23MiB
 140          m4a        audio only tiny  129k , m4a_dash container, mp4a.40.2@129k (44100Hz), 4.35MiB
 251          webm       audio only tiny  131k , webm_dash container, opus @131k (48000Hz), 4.41MiB
 160          mp4        144x144    144p    7k , mp4_dash container, avc1.4d400b@   7k, 25fps, video only, 250.11KiB
 278          webm       144x144    144p   13k , webm_dash container, vp9@  13k, 25fps, video only, 478.95KiB
 133          mp4        240x240    240p    9k , mp4_dash container, avc1.4d400c@   9k, 25fps, video only, 330.00KiB
 242          webm       240x240    240p   23k , webm_dash container, vp9@  23k, 25fps, video only, 798.88KiB
 134          mp4        360x360    360p   11k , mp4_dash container, avc1.4d4015@  11k, 25fps, video only, 403.53KiB
 243          webm       360x360    360p   33k , webm_dash container, vp9@  33k, 25fps, video only, 1.14MiB
 135          mp4        480x480    480p   17k , mp4_dash container, avc1.4d401e@  17k, 25fps, video only, 604.41KiB
 244          webm       480x480    480p   54k , webm_dash container, vp9@  54k, 25fps, video only, 1.82MiB
 136          mp4        720x720    720p   29k , mp4_dash container, avc1.4d401f@  29k, 25fps, video only, 1002.25KiB
 247          webm       720x720    720p  102k , webm_dash container, vp9@ 102k, 25fps, video only, 3.44MiB
 137          mp4        1080x1080  1080p   77k , mp4_dash container, avc1.640020@  77k, 25fps, video only, 2.60MiB
 248          webm       1080x1080  1080p  179k , webm_dash container, vp9@ 179k, 25fps, video only, 6.04MiB
 18           mp4        360x360    360p  139k , avc1.42001E, 25fps, mp4a.40.2 (44100Hz), 4.70MiB (best)

Now choose the desired audio format.

 youtube-dl -f 251 https://www.youtube.com/watch?v=FQG_PC3Y5Kk&ab_channel=Monof%C3%BCrAlle%21-Topic
 [youtube] WUknBnpiF1U: Downloading webpage
 [download] Destination: Hallo Verfassungsschutz (Live)-WUknBnpiF1U.webm
 [download] 100% of 4.41MiB in 00:23

You may use the following command if you don't want to select best audio manually.

 youtube-dl -f bestaudio https://www.youtube.com/blablablaal