Wednesday, September 2, 2009

Youtube downloader for Ubuntu

Hi,

Ever wonder how to download videos from YouTube if you are using Linux? There are many tools that you could use. For me, I'm interested most in youtube-dl. You could download YouTube videos using terminal. Open terminal and run "youtube-dl [URL to the video]" to download your favorite videos.

To install, become root and type;
root@ubuntu:~# apt-get install youtube-dl

Usage: youtube-dl [options] video_url

Options:
-h, --help print this help text and exit
-v, --version print program version and exit
-u USERNAME, --username=USERNAME
account username
-p PASSWORD, --password=PASSWORD
account password
-o FILE, --output=FILE
output video file name
-q, --quiet activates quiet mode
-s, --simulate do not download video
-t, --title use title in file name
-l, --literal use literal title in file name
-n, --netrc use .netrc authentication data
-g, --get-url print final video URL only
-2, --title-too used with -g, print title too

Credit to Ricardo Garcia Gonzalez for written and actively maintained youtube-dl