Tag Archives: terminal

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