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

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?
Movavi — cost effective video converter



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

14 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.

  4. 4 Taylor Bedell

    The sooner you remove the complaints posted or listed about your business the easier it will be to restore your reputation, image and good name. . I used http://www.repairimagenow.com to help me restore my business’s reputation, image and good name on the internet.

  5. 5 June Beckner

    Download Youtube <—Youtube Video showing how to record youtube videos for free

  6. 6 Rodger Laker

    You made this article very interesting the way you explained it. I’m going to add your site to my blog roll!

  7. 7 keshav

    youtube-dl is a good way 2 download videos in linux from youtube so thank u linux developer

  8. 8 viagra

    It consistently is amazing to me just how bloggers for example yourself can find the time along with the dedication to keep on crafting remarkable content. Your blog isterrific and one of my own ought to read blogs and forums. I simply needed to say thanks.

  9. 9 britax marathon convertible car seat

    You made this article very interesting the way you explained it. I’m going to add your site to my blog roll!

  10. 10 criminal lawyers saint cloud

    I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz respond as I’m looking to create my own blog and would like to know where u got this from. appreciate it

  11. 11 Palm Beach Lawyer

    Hey there, I think your blog might be having browser compatibility issues. When I look at your blog site in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, terrific blog!

  12. 12 farmville cheat codes farmville secrets

    Hi just wanted to give you a brief heads up and let you know a few of the images aren’t loading properly. I’m not sure why but I think its a linking issue. I’ve tried it in two different internet browsers and both show the same outcome.

  13. 13 Arun

    If you can use a GUI, the best solution is to use ClipGrab. You can even select the quality and format of the video to download as well.
    http://goo.gl/7b43i

  14. 14 fiverr

    I do trust all the ideas you have introduced to your post. They’re very convincing and can certainly work. Nonetheless, the posts are very quick for beginners. May you please lengthen them a bit from next time? Thank you for the post.

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
TuxArena: The arena of Tux | 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 ››