how to download youtube videos on Linux centOS 6.4

Posted: May 11, 2013 in FX Pipeline, Linux

youtube

how to download youtube videos on Linux centOS 6.4
####install youtube-dl

yum install youtube-dl

for download any video you should type following command with youtube URL

youtube-dl <video URL>

 

for example:-

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

common error:-

[root@elitebook rajiv]# youtube-dl http://www.youtube.com/watch?v=jYTNHLfpQTI Setting language

U2vvLAPmpeA: Downloading video webpage

U2vvLAPmpeA: Downloading video info webpage

U2vvLAPmpeA: Extracting video information

ERROR: unable to download video

to fix this error you need to update the youtube downloader by following command:-
youtube-dl -U
now you can see the progress:-

[rajiv@elitebook ~]$ youtube-dl http://www.youtube.com/watch?v=jYTNHLfpQTI

Setting language jYTNHLfpQTI: Downloading video webpage

jYTNHLfpQTI: Downloading video info webpage

jYTNHLfpQTI: Extracting video information[download] Destination: introduction of Centos 6.4-jYTNHLfpQTI.webm

[download] 100.0% of 13.41MiB at 2409.86KiB/s ETA 00:00

[rajiv@elitebook ~]$

you can download a list of youtube video links by this command
youtube-dl -a youtube_list.txt

you can download in other available formats of video
youtube-dl -F http://www.youtube.com/watch?v=jYTNHLfpQTI

for example:-

[rajiv@elitebook ~]$ youtube-dl -F http://www.youtube.com/watch?v=jYTNHLfpQTI

Setting language

jYTNHLfpQTI: Downloading video webpage

jYTNHLfpQTI: Downloading video info webpage

jYTNHLfpQTI: Extracting video information

Available formats

:45      :      webm    [720×1280]

22      :       mp4     [720×1280]

44      :       webm    [480×854]

35      :       flv     [480×854]

43      :       webm    [360×640]

34      :       flv     [360×640]

18      :       mp4     [360×640]

5       :       flv     [240×400]

17      :       mp4     [144×176]

[rajiv@elitebook ~]$
To download the file in your preferred format, type
youtube-dl -f <format code> <video url>
for example lets download mp4 format:-

youtube-dl -f 22 http://www.youtube.com/watch?v=jYTNHLfpQTI

To Download the audio for youtube video
youtube-dl http://www.youtube.com/watch?v=jYTNHLfpQTI –extract-audio
to extract audio as a mp3

youtube-dl http://www.youtube.com/watch?v=jYTNHLfpQTI –audio-format mp3

Enjoy Youtube 🙂

Advertisements
Comments
  1. Mak says:

    Fantastic.. will try for sure

  2. prabhtoor says:

    hi, i have used all steps in my centos 6.4 x86_64 , but itsn’t work.kindly tell me how can i downlaod youtube videos?? plz help me. thnax

  3. Thanks for such a great software. It is exactly what I needed for my comedy site. It would be nice to make it possible to pass in a name as an argument to the command so video is renamed to that after download completes. Cheers for the good work. Please keep it up 🙂

  4. nitish says:

    thank you very much sir

  5. dhruba says:

    it does not work now…plz check it…any other guide plz..

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