Knowledge Base - youtube-dl
Installation
The best way to install youtube-dl is through pip using a virtual environment.[1][2]
$ virtualenv myenv
.. some output ..
$ source myenv/bin/activate
(myenv) $ pip install what-i-want
To update (method 1/2)
pip install --upgrade youtube-dl
To update (method 2/2)3
sudo pip install -U youtube-dl
To know where youtube-dl has been installed
pip show youtube-dl
To download audio only:
1. List available formats:
youtube-dl -F http://www.youtube.com/watch?v=HRIF4_WzU1w
$ youtube-dl -F http://www.youtube.com/watch?v=HRIF4_WzU1w [youtube] Setting language [youtube] HRIF4_WzU1w: Downloading webpage [youtube] HRIF4_WzU1w: Downloading video info webpage [youtube] HRIF4_WzU1w: Extracting video information [info] Available formats for HRIF4_WzU1w: format code extension resolution note 171 webm audio only DASH webm audio , audio@ 48k (worst) 140 m4a audio only DASH audio , audio@128k 160 mp4 192p DASH video 133 mp4 240p DASH video 134 mp4 360p DASH video 135 mp4 480p DASH video 17 3gp 176x144 36 3gp 320x240 5 flv 400x240 43 webm 640x360 18 mp4 640x360 (best)
Download using ausio format (if available)
youtube-dl -f 140 http://www.youtube.com/watch?v=HRIF4_WzU1w
NULL