Youtube-dl

From Leo's Notes
Revision as of 07:56, 12 October 2015 by Leo (talk | contribs) (Created page with "== Basic Usage == === Listing All Available Formats === {{Highlight|lang=bash|code= youtube-dl -F "http://youtube.com/watch?v= }} === Download a Specific Format === Say you w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 12 October 2015, at 07:56.

Basic Usage

Listing All Available Formats

youtube-dl -F "http://youtube.com/watch?v=

Download a Specific Format

Say you want to download just the DASH audio from a video:

youtube-dl -f 141 "http://youtube.com/watch?v=

Downloading Audio

When downloading DASH audio using youtube-dl, you must convert the audio in order to play it using an audio player using ffmpeg.

ffmpeg -i input.m4a -vn -acodec copy output.m4a

This is needed since the MP4 container from youtube is set to dash rather than m4a and isn't recognized by most players.