AMAZON

Saturday, September 1, 2012

How to download youtube videos on ubuntu 12.10 and lower versions machine

How to download youtube videos on ubuntu 12.10 and lower versions 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)


4. You can use keepvid
keepvid
But you need to install Java, here :
Java

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

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

No comments:

Post a Comment