How to download youtube videos on ubuntu 10.10 machine

I began to use linux ubuntu since 2006, and i found it was a light, flexible, powerfull Operating System.

Here i want to share how-to-download youtube videos on ubuntu machine :

I found on tutorial (ubuntu forums, etc) there are at least 4 (four) possible ways to download youtube-videos on ubuntu machine :

1. You can use terminal-based command :

$ sudo apt-get install youtube-dl
$ sudo youtube-dl --update
$ sudo apt-get install python
$ which youtube-dl
$ youtube-dl --version

Then, to download the youtube-video, simply type :
$ youtube-dl http://www.youtube.com/watch?v=wcVvE-BNWPs

Alternative way (also terminal-based command) :

$ sudo apt-get remove youtube-dl
$ sudo rm /usr/local/bin/youtube-dl
$ sudo wget --no-check-certificate https://github.com/rg3/youtube-dl/raw/2011.02.25c/youtube-dl -O /usr/local/bin/youtube-dl
$ sudo chmod +x /usr/local/bin/youtube-dl
$sudo youtube-dl --update

on some ubuntu machines you might want to change the path to
/usr/bin other than /usr/local/bin as stated in the above commands where they apply.

Usage can be as follows:

youtube-dl -o '%(stitle)s.%(ext)s' 'file_2_download'

e.g youtube -dl -o xxx.mp4 http://www.wtf.xxx/vSadG56Jij

where of course file_2_download is the url of your desired file. An easy way to update your installation is to periodically run:
$ sudo youtube-dl --update
$ which youtube-dl
$ youtube-dl --version

2. You can use Videodownload helper
Videodownload helper

3. You can use Youtube-Video download for Greasemonkey
if you are using firefox make sure you have Greasemonkey installed and then install this script :
Greasemonkey

(in chrome you can install it directly without Greasemonkey)

YouTube Video Download
By rossy!
Scans the YouTube page for all download formats, from iPod compatible MP4s to high definition 1080p. Compatible with Greasemonkey, Opera, Chrome and more. Runs entirely on the YouTube page without using any external sites. Also, WebM support.
Version: 2.3.7
License: MIT License

4. You can use keepvid
keepvid
But you need to install Java, here :
Java
Follow on my link on ubuntu forum, here :
ubuntu forum

I hope you enjoy it!
Cheers,
Anton

7 responses to “How to download youtube videos on ubuntu 10.10 machine

  1. unable to download the video……
    I have tried this…
    ardra@ardra-G41M-ES2L:~$ youtube-dl http://www.youtube.com/watch?v=_YZkBaUldq8
    Result is ……….
    Setting language
    _YZkBaUldq8: Downloading video webpage
    _YZkBaUldq8: Downloading video info webpage
    _YZkBaUldq8: Extracting video information
    ERROR: unable to download video (format may not be available)

    • @ Rakesh : You need to update your youtube version :
      Use this command in your terminal line :
      1. First checked your youtube version
      $ which youtube-dl
      $ youtube-dl –version
      2. If it is out-of-date, then update new version
      $ sudo youtube-dl –update
      3. Done. Then you can simply download the file you want
      $ sudo youtube-dl http://www.youtube.com/watch?v=wcVvE-BNWPs

      have a nice try,
      Best regards,
      Antonius Santoso

  2. http://debian-hacks.blogspot.com/

    In my blog i have explained it very well….

  3. Pingback: Why GNU/Linux?! Not Windows??? | Santoso Antonius' blog

  4. Where does it write the file and how does it name it? I have tried to find just *.flv with no success.

    • @meangene : it is directly write/save to your home>your_name directory.
      just try again :
      $ sudo apt-get remove youtube-dl
      $ sudo rm /usr/local/bin/youtube-dl
      $ sudo apt-get install youtube-dl
      $ sudo youtube-dl –update
      $ which youtube-dl
      $ youtube-dl –version
      good luck!

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s