SUSE & openSUSE

Tips,Tricks, Tutorials,How Tos and Troubleshooting suse linux

Youtube-dl - Download videos from Youtube

Posted by admin on August 13th, 2008


youtube-dl is a small free opensource command-line program to download videos from YouTube.com. youtube-dl is a platform independent tool that works on UNIX, Linux, Mac OSX and Windows. The latest version of Youtube-dl is 2008.08.09 and requires the Python interpreter, version 2.4 or later. After all, it’s a simple and short program. All said, you might want to check on Copyright issues and details related.

Install Youtube-dl

Packmand hosts the 1-click install Yast metapackage for the latest version of youtube-dl. This should work in openSUSE 11.0, openSUSE 10.3, openSUSE 10.2, SuSE 10.1 & SuSE 10.0

Click 1-click install for youtube-dl to download the YMP file and automatically launch the YaST package manager to install youtube-dl and required dependency packages.

youtube-dl installer youtube-dl install summary

youtube-dl install complete

Download Youtube videos

Once installed, the youtube-dl executable is installed under /usr/bin/

opensuse11:~ # which youtube-dl
/usr/bin/youtube-dl

To download a Video from Youtube simply run the utility with the URL to the video. Here is an example, I’m downloading a video which compares Windows and openSUSE. The Youtube video is here

opensuse11:~ # youtube-dl http://www.youtube.com/v/r0fJIflmILY&hl=en&fs=1
[1] 9482
[2] 9483
[2]+  Done                    hl=en
opensuse11:~ # [youtube] r0fJIflmILY: Downloading video webpage
[youtube] r0fJIflmILY: Extracting video information
[youtube] r0fJIflmILY: URL: http://www.youtube.com/get_video?video_id=r0fJIflmILY&t=OEgsToPDskJHohUEYvTfJuBaDEx-puYg
[download] Destination: r0fJIflmILY.flv
[download] 100.0% of 3.08M at  150.60k/s ETA 00:00

Here you see the downloaded video filename is in Flash Video format and named as r0fJIflmILY.flv.

Rename downloaded filename

If you would want to name is as (say winvssuse.flv) then try the following:

opensuse11:~ # youtube-dl winvssuse.flv http://www.youtube.com/v/r0fJIflmILY&hl=en&fs=1

Download videos requiring Username & Password

To download videos that requires username and password to access then you can pass the username and password as follows:

opensuse11:~ # youtube-dl -u tubeuser -p tubepass winvssuse.flv http://www.youtube.com/v/r0fJIflmILY&hl=en&fs=1

More advanced options are available from the authors website here

Once the file is downloaded, it should be viewable from your Favorite flash video player.

Related posts

4 Responses to “Youtube-dl - Download videos from Youtube”

  1. Scott Dowdle Says:

    No software needed.

    Watch any youtube video in your browser… or at least get it loading and pause it. When the entire video is buffered do the following:

    ls -l /tmp/Flash*

    Depending on how many browser sessions you have had and how many videos you have watched there may multiple files listed. Pick the one closest to the time you started loading the video in your browser. To verify just play any /tmp/Flash* file with your favorite video player that can handle .flv videos.

    mplayer /tmp/Flash{whatever}

    Once you are sure you have identified the right file for the video you want to copy then just:

    cp /tmp/Flash{whatever} ~/desired-name.flv

    Tips: Make sure the video is fully cached in the player in your browser so when you do the cp you get a complete copy of the file. Make sure to cp before you to surf away from that video to another video… or the fully cached video will probably get deleted from /tmp.

  2. Pascal Bleser Says:

    clive is pretty neat too.

  3. Youtube-dl - Download videos from Youtube : HowtoMatrix Says:

    [...] youtube-dl is a small free opensource command-line program to download videos from YouTube.com. youtube-dl is a platform independent tool that works on UNIX, Linux, Mac OSX and Windows. The latest version of Youtube-dl is 2008.08.09 and requires the Python interpreter, version 2.4 or later. After all, it’s a simple and short program. All said, you might want to check on Copyright issues and details related. Read more at http://www.susegeek.com [...]

  4. you tube com Says:

    [...] Linux, Mac OSX and Windows. The latest version of Youtube-dl is 2008.08.09 and requires the Pythohttp://www.susegeek.com/multimedia/youtube-dl-download-videos-from-youtube/Fifty days after Tamuz is Elul the Jock masturbation strap of New Oil Sept Font family Tahoma, [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>