Menu

youtube-dl video download

March 17, 2017 - python

YouTube-dl is a command-line program to download videos from YouTube.com and other video sites

Here is the basic usage

Instalation

sudo pip install --upgrade youtube-dl

Install audio extractor

sudo apt-get install -y libav-tools

or

sudo apt-get install ffmpeg

Download audio only

youtube-dl -x --audio-format "mp3" https://www.youtube.com/watch?v=pjA98mrJJO0

List of options in python

https://github.com/rg3/youtube-dl/blob/master/youtube_dl/YoutubeDL.py#L135-L290
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/init.py