youtube-dl: download youtube videos in Ubuntu using command line

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

If you use Ubuntu (or other Linux distribution) and you wish to download some video from youtube.com into .flv file you can try using youtube-dl command line utility. It just downloads videos without any online applications, converters or etc. Type the following command in terminal to get it installed:

sudo apt-get install youtube-dl
Let’s imagine you would like to download the following video: http://www.youtube.com/watch?v=2leg8mUE9rs (this is part of Military Parade at Red Square in Russia at 9th of May 2010). Just run youtube-dl download utility as follows:

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

and in a few minutes you will get 2leg8mUE9rs.flv file that could be viewed using almost any video player like my favorite one VLC.

youtube-dl

 
 
» You might also be interested in the following articles:
Download and convert YouTube video online and offline
FAQ: How to order pizza from Linux CLI?
13 Linux lethal commands
FAQ: How to install Flash Player for Firefox in Ubuntu Linux?
Google Chromium OS!



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

3 Responses to “youtube-dl: download youtube videos in Ubuntu using command line”


  1. 1 Johnny Glamour

    When you’re watching your video with your browser, you’ll also find it under /tmp. Best regards (sorry for my English)

  2. 2 Anil

    I have written(based on youtube-dl) a shell script that does the same.
    check out http://code.google.com/p/youtube-downloader/source/browse/trunk/youtubedl.sh

  3. 3 jrsm

    really, man… there’s Firefox extensions and greasemonkey scripts that let you download the MP4 (mp3+h264) version. Look at those for reference and stop getting those horrible flv files… Right now, it’d also be interesting getting WebM.

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
GeekyBits³ | Bash Cures Cancer | OMG! Ubuntu!
My SysAd Blog | Web Upd8
ZEPY | Linux config Wiki | Planet Sysadmin
a non-geek's linux notes | Linux Today
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››