Recent Post

Dear reader, this blog has been moved to here

Wednesday, 16 July 2014

How to Download Youtube Videos in Ubuntu Using Terminal



Day by day I don't feel any remorse of leaving Windows for Linux, using Ubuntu 14.04 LTS is one of the wonderful things I have experienced on earth. Downloading Youtube videos with just a one line of command is awesome!



Now will show you how to get this:

  • Firstly you need to get the youtube downloader package, in Ubuntu run this command
    sudo apt-get install youtube-dl


  • Installed? Now try to download a video by using the video link
    $ youtube-dl https://youtube.com/watch?v=video_id


  • Your video gets downloaded in the best quality and saved in your /home/user/ directory but what if you want a video of low quality and saves your data? Cool! View available file format for a particular video and download
    $ youtube-dl https://youtube.com/watch?v=video_id -F

    youtube

  • Now from the above screenshot we have format code, extension and resolution. Let's say I want to download flv (400*240) which the code is 5, I use
    $ youtube-dl https://youtube.com/watch?v=video_id -f 5


  • The above command will download the .flv file format of the video and save in /home/user/ :)


Many features of Youtube Downloader I didn't mention here, just type youtube-dl -h for more :)

Email Newsletter



Smiley :)
:D
:)
:[
;)
:D
:O
(6)
(A)
:'(
:|
:o)
8)
(K)
(M)

3 comments:

  1. Love post. tnks alot. :)

    ReplyDelete
  2. cool bro, i gonna try this for my fav songs that broadcast by official persons in youtube

    ReplyDelete
  3. Hi Niranjan,
    Am glad you found this useful :)

    Cheers!

    ReplyDelete