Download YouTube Videos Using CMD with youtube-dl

How to Install & Use youtube-dl to Download YouTube Videos or Entire Playlist

0
309
Download YouTube Videos Using CMD with youtube-dl
Upto 40% Off on Intel Powered Laptops - Buy Now on Snapdeal

youtube-dl is an open source command line tool which is used to download YouTube videos on your computer. you can check available formats and resolution of particular video before download. youtube-dl requires the Python interpreter, version 2.6, 2.7 or 3.2+ (for Linux only), and is not platform specific. It should work on Linux, Windows & Mac OS X. youtube-dl is released into the public domain, which means that you can modify it, redistribute it or use it as you like.

I used to download some music videos and video lectures from YouTube. What I interested  was only audio and the HD Resolution.

How to Install youtube-dl on Windows & Linux

To install it on any Linux Distribution (Ubuntu, Mint, etc), type:-

If you do not have curl, you can alternatively use a recent wget:-

Windows users can download the youtube-dl.exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).

If you are not familiar with how to set system path to your own folder, then one of the easiest way is to copy the youtube-dl.exe into C:\Users\user folder. In my case it is : C:\Users\Sharique Anwer

How to Use youtube-dl to Download YouTube Videos?

  1. Start Windows Command Line Prompt (CMD)
  2. Type youtube-dl and press Enter

youtube-dlYou will see the above message, if you have correctly copied the youtube-dl.exe file.

Let’s Download Your First Video with youtube-dl

Grab the URL of any YouTube Video. e.g. https://www.youtube.com/watch?v=ogm9Msxnp2k

Start your command prompt. Type youtube-dl -F your_video_url_here and press Enter.

For Example:-

You will get a list of all the available files for downloading. Now you will be able to see file sizes, extensions and video quality & resolution data.

youtube-dl-get-video-detailsSuppose, I want to download mp4 video in 854×480 resolution. You have to note down the relevant number for this file from left side in the same row under format column. In my case it is 135.

Type again youtube-dl -f number your_video_url_here in the windows command prompt and press Enter. Do not forget that this time the f is lower case.

Your file will be started downloading. This program supports resume download as well. So do not need to worry about interruptions of your internet connection while downloading YouTube videos.

youtube-dl-download-youtube-videosIf you want to download the available highest quality video from You tube, it is very simple. Simply Type:- youtube-dl your_video_url_here at windows command prompt and then press Enter.

Its done! youtube-dl will download the available highest quality video for you.

How to Download the Entire Playlist or Channel from YouTube

Simply replace the URL with a Playlist or Channel. For example:-

If need help, Just post a comment using the comment form below.

FlipKart Mouth Watering Deals veryday