AMAZON

Showing posts with label sudo apt-get install youtube-dl. Show all posts
Showing posts with label sudo apt-get install youtube-dl. Show all posts

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

Thursday, August 9, 2012

How to download youtube videos from linux command terminal window ??

 
How to download youtube videos from linux command terminal window ??


CTRL+ALT+T (Ubuntu) - Command terminal


1. Using Ubuntu Linux, I downloaded the package youtube-dl with this command:

$ sudo apt-get install youtube-dl

2. After having successfully installed youtube-dl, open a web browser and go to youtube.com to pick a video that you would like to download.

3. Copy the page URL/address of the Youtube video.

4. Go back to the Linux terminal and simply type: youtube-dl + URL/Address of the video

For example, I downloaded the current number one YouTube video clip of all time with this command:

$ youtube-dl http://www.youtube.com/watch?v=_OBlgSz8sSM

You can add the -b option to download the video in high quality, e.g.

$ youtube-dl -b http://www.youtube.com/watch?v=_OBlgSz8sSM

5. The downloaded video will be saved at /home/username by default. It will be in .flv format so be sure to have flash plugin installed before viewing the video.