Most Easy and Smart Way Download YouTube videos and audio with Command Prompt (YouTube-dl)

Ivan Kenti
4 min readJun 13, 2019

--

Is It Easy To Do ? Yes.

Just Follow the guide smoothly it will take 5 Min. You can skip direct to Steps😊

Go to Steps

YouTube-dl is a free and open-source command-lineprogram for Windows, macOS, and Linux. You can use it to download videos from YouTube.

Installing YouTube-dl on windows

Using YouTube-dl.

  • Downloading a video.
  • Downloading audio.

Copyright and Fair Use

Tip

Downloading a YouTube video is legal if you use it in accordance with its license. Many YouTube videos use the standard YouTube license, and some are licensed under Creative Commons,

Installing YouTube-dl: Windows

YouTube-dl does not have an installer, like most Windows programs. YouTube-dl consists of a single executable file, youtube-dl.exe, which you can download directly.

Steps:-

  1. Open the project page at https://rg3.github.io/youtube-dl/, and click Download. You must Click Now and then continue to step 2.

2. On the Download page, click the link for the Microsoft Visual C++ 2010 Redistributable Package (x86). You might already have this installed; these steps will check, and install it if necessary. Click now

3. Clicking the link takes you to a page at Microsoft’s website. Click Download to download vcredist_x86.exe.

4.When the download is complete, open File Explorer, and go to the location on your computer where you downloaded vcredist_x86.exe. Double click the file to run it. (By default, in Download Folder)

5. At the UAC prompt, click Yes.

6. If you see the message “A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine,” that means you already have it installed. You can click Close, and skip to step 8.

7. Otherwise, continue with the installation, choosing the default options. When installation is complete, click Close, and continue to the next step.

8. In your web browser, go back to the YouTube-dl Download page, and click Windows exe.

9. The file youtube-dl.exe will download.

10. YouTube-dl now exists in the folder where you downloaded it. Open the containing folder and move the file youtube-dl.exe in Directory/Folder “C:\Users\username” Now! You can run it by opening a command prompt, and running youtube-dl.

11. When you run youtube-dl, nothing will happen unless you provide it with the URL of a video to download. For examples of how to use the program, proceed to Downloading a video, below.

Using YouTube-dl

YouTube-dl is a command line program, so it has no GUI. Instead, you use it from your command prompt or terminal window.

YouTube-dl has many options. Here, we’ll cover the basics: downloading video, and downloading audio.

Downloading a video

The simplest way to use YouTube-dl is to give it the URL of a YouTube video.

  1. Go to a video on YouTube that you want to download. Select the text of the URL in the address bar, and copy it to your clipboard by pressing Ctrl+C.

2. Open a command prompt or terminal window. On Windows, you can open a command prompt if you press Win+R (hold down the Windows key and press R) to open the Run box, then type cmd and press Enter.

3. Type youtube-dl, followed by a space. Then, paste the URL you copied in step 1. (In Windows, place your cursor in the command prompt window and right-click to paste)

The command should look like this:

youtube-dl https://www.youtube.com/watch?v=3nQNiWdeH2Q

Press Enter to run the command and start the download.

Tips: Can you download a playlist in single command?😱 Yes Dear! Here it is how.

For downloading a playlist, Type youtube-dl -i, followed by a space. Then, paste the playlist id

The command should look like this:

youtube-dl -i PLCQ2DK3yQCr7uR2F3QUfeq4T9svTFI4hl

Downloading audio

To download the audio of most YouTube videos, you can use the -f 140 option. For example:

youtube-dl -f 140 https://www.youtube.com/watch?v=3nQNiWdeH2Q

YouTube-dl will extract the M4A audio version of the video file, and save it as an audio file with the M4A extension. You can then open it a media player such as VLC, or an audio editor such as Audacity.

You can do much more with it. If you need extra command ask in comment

Thats all for today.😊 Next time i’ll come with Download YouTube videos and audio with YouTube-dl on ANDROID.

--

--