Friday, May 3, 2013

Download YouTube videos with youtube-dl

Install & using

1. install youtube-dl
sudo apt-get update && sudo apt-get install youtube-dl
2. use this command to download files from YouTube
youtube-dl -o [name of output file] [YouTube URL]
3. To view all options youtube-dl, paste this in command line
man youtube-dl
To quit from manual press q key

Examples

1. Download classic flv type and save it as file.flv
youtube-dl -o file.flv "http://www.youtube.com/watch?v=Y54ABqSOScQ"
 
2. Download Full HD mp4 file and save it as file.mp4
 
youtube-dl -o file.mp4 -f 37 "http://www.youtube.com/watch?v=Y54ABqSOScQ"

This table from Wikipedia may be useful
Comparison of YouTube media types
Comparison of YouTube media types (Wikipedia)

No comments: