Roshan Book

My Tech Notebook

Download Youtube playlist videos on ubuntu


Source:http://www.ubuntubuzz.com/2011/10/how-to-download-all-videos-of-youtube.html

Imagine you have a playlist on YouTube that contains hundreds of videos in it and you want to download them, what will you do? Do you really want to download them one by one? I think that’s not a good idea. So, in this my first post, I’d like to show you how download all videos of YouTube playlist by simply type a few commands.

Applications used:
In order to getting this trick done, we have to install two applications called umph and youtube-dl. Umph is such an application that can parse YouTube feeds, it can parse playlists, favourite lists, and user upload lists. Youtube-dl is well-known command line tool for downloading YouTube videos by giving their video links.

Installing applications:
Fortunately, I’ve created a PPA contains those two applications. Simply type the following command to install them:

  • sudo add-apt-repository ppa:tldm217/tahutek.net
  • sudo apt-get update
  • sudo apt-get install umph youtube-dl

Usage instructions:

  • umph playlist_ID | youtube-dl -l -a –

You can get playlist_ID from playlist URL, for example, we will download all videos in PHPAcademy 200 JQuery Tutorials, see the picture below for more details.

Take a look at part marked with red box, you will get the weird phrase “PL46408891B63317A4”. By removing the “PL” characters, now you have the playlist ID: 46408891B63317A4. You’re ready to go:

  • umph 46408891B63317A4 | youtube-dl -l -a –

By default, umph will parse 25 videos. So, by executing the above command you will download the first video until 25th video. If you want to download all videos (200 videos) you must add an argumen “-m 200”.

  • umph -m 200 46408891B63317A4 | youtube-dl -l -a –

The tricky part is in umph command line arguments, please take look at this documentation for further information.

2 responses to “Download Youtube playlist videos on ubuntu

  1. flights from the uk February 23, 2012 at 9:49 am

    You’re really a excellent webmaster. The website loading velocity is amazing. It seems that you’re doing any distinctive trick. Moreover, The contents are masterpiece. you’ve performed a wonderful process in this topic!

  2. Anagha Comar September 6, 2012 at 1:57 pm

    Admiring the time and energy you put into your blog and detailed information you
    provide. It’s good to come across a blog every once in a while that isn’t the
    same old rehashed material. Fantastic read! I’ve bookmarked your site and I’m including your RSS feeds to my Google account.

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

%d bloggers like this: