Skip to content

Instantly share code, notes, and snippets.

@chris-erickson
Last active January 16, 2017 03:29
Show Gist options
  • Save chris-erickson/cdd4fd8ae148771eb3ff14f731b6a34e to your computer and use it in GitHub Desktop.
Save chris-erickson/cdd4fd8ae148771eb3ff14f731b6a34e to your computer and use it in GitHub Desktop.
Use youtube-dl to rip the highest quality video and audio
youtube-dl https://www.youtube.com/watch?v=udrKnXueTW0 -F
#[youtube] udrKnXueTW0: Downloading webpage
#[youtube] udrKnXueTW0: Downloading video info webpage
#[youtube] udrKnXueTW0: Extracting video information
#[youtube] udrKnXueTW0: Downloading MPD manifest
#[info] Available formats for udrKnXueTW0:
#format code extension resolution note
#249 webm audio only DASH audio 55k , opus @ 50k (48000Hz), 19.80MiB
#250 webm audio only DASH audio 76k , opus @ 70k (48000Hz), 24.55MiB
#171 webm audio only DASH audio 84k , vorbis@128k (44100Hz), 30.21MiB
#251 webm audio only DASH audio 128k , opus @160k (48000Hz), 43.69MiB
#140 m4a audio only DASH audio 131k , m4a_dash container, mp4a.40.2@128k (44100Hz), 50.64MiB
#160 mp4 256x144 DASH video 123k , avc1.4d400c, 30fps, video only, 44.36MiB
#278 webm 256x144 DASH video 132k , webm container, vp9, 30fps, video only, 36.14MiB
#133 mp4 426x240 DASH video 257k , avc1.4d4015, 30fps, video only, 97.85MiB
#242 webm 426x240 DASH video 275k , vp9, 30fps, video only, 49.78MiB
#243 webm 640x360 DASH video 491k , vp9, 30fps, video only, 94.39MiB
#134 mp4 640x360 DASH video 639k , avc1.4d401e, 30fps, video only, 104.70MiB
#244 webm 854x480 DASH video 919k , vp9, 30fps, video only, 159.61MiB
#135 mp4 854x480 DASH video 1170k , avc1.4d401f, 30fps, video only, 221.33MiB
#247 webm 1280x720 DASH video 1806k , vp9, 30fps, video only, 348.40MiB
#136 mp4 1280x720 DASH video 2335k , avc1.4d401f, 30fps, video only, 441.51MiB
#248 webm 1920x1080 DASH video 3342k , vp9, 30fps, video only, 791.02MiB
#137 mp4 1920x1080 DASH video 4349k , avc1.640028, 30fps, video only, 847.81MiB
#17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k
#36 3gp 320x180 small , mp4v.20.3, mp4a.40.2
#43 webm 640x360 medium , vp8.0, vorbis@128k
#18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k
#22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best)
# Select the top video and audio tracks (they get merged on the fly)
youtube-dl -f 137+22 https://www.youtube.com/watch?v=udrKnXueTW0
# Note that the default without specifying options should have this behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment