download youtube in ubuntu

30 January 2011 at 11:54 pm Leave a comment

youtube-dl is a small command-line program to download videos from

Install youtube-dl in Ubuntu

sudo aptitude install youtube-dl
This will complete the installation.

Using youtube-dl

Usage instructions are easy. Use youtube-dl followed by a video URL or identifier.

youtube-dl Example

youtube-dl “”

The video will be saved to the file foobar.flv in that example. As videos are in Flash Video format, their extension should be flv.Check this simple guide to convert .flv files to .mpg

More usage tips

You can change the file name of the video using the -o option, like in

youtube-dl -o vid.flv “”.

Some videos require an account to be downloaded, mostly because they’re flagged as mature content. You can pass the program a username and password for a account with the -u and -p options, like

youtube-dl -u myusername -p mypassword “”.

The account data can also be read from the user .netrc file by indicating the -n or –netrc option. The machine name is youtube in that case.

The simulate mode (activated with -s or –simulate) can be used to just get the real video URL and use it with a download manager if you prefer that option.

The quiet mode (activated with -q or –quiet) can be used to supress all output messages. This allows, in systems featuring /dev/stdout and other similar special files, outputting the video data to standard output in order to pipe it to another program without interferences.

The program can be told to simply print the final video URL to standard output using the -g or –get-url option.


Entry filed under: Ubuntu Lover. Tags: , , .

How to make your windows xp more optimal Update pidgin in backtrack

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Blog Stats

  • 57,930 hits
free counters

AziesT on Facebook

Yahoo bot last visit Msn bot last visit SEO Stats

Our Teams


%d bloggers like this: