Downloading YouTube Video using VLC (2024)

How to download YouTube Videos using VLC - 2020

Downloading YouTube Video using VLC (1)

Downloading YouTube Video using VLC (2)



bogotobogo.com site search:

Method 0 - Downloading YouTube Video (youtube-dl)

Actually, this method is not using VLC. It is written in Python. So, I'll put this at the end of this tutorial!

Method 1 - Downloading YouTube Video using VLC & Browser

The steps to download a video from YouTube is very simple in concept: play the video on our Browser, and save the file by right mouse click on the video. So, the key is to move the video's playground from YouTube to our Browser.

1. Get URL from YouTube Video

Get the url while the video is played on YouTube:

Downloading YouTube Video using VLC (3)

2. Extracting Info using VLC

Run VLC player, then select Open Network Stream...

Downloading YouTube Video using VLC (4)

Paste the YouTube URL into network URL, then hit Play:

Downloading YouTube Video using VLC (5)

While the video is playing, go to Tools -> Codec Information:

Downloading YouTube Video using VLC (6)

As shown in the picture below, we get the video file location Ctrl+A while holding the mouse:

Downloading YouTube Video using VLC (7)

3. Playing it on Browser and Save the video file

Paste the file info into the url of browser:

Downloading YouTube Video using VLC (8)

Right mouse click, and choose Save As...

https://www.youtube.com/playlist?list=PLZI6KTHH6719rdZQ_OpJu5G7wQDcm4PoYDownloading YouTube Video using VLC (9)

4. The File has been downloaded

Now, we have the file in our PC!

Downloading YouTube Video using VLC (10)

Method 2 - Downloading YouTube Video using VLC streaming to a file

In this method, we just do streaming using VLC with its target set as a file.

1. Get URL from YouTube Video

Get the url while the video is played on YouTube:

Downloading YouTube Video using VLC (11)

2. Streaming to a file using VLC

Run VLC player, then select Stream...

Downloading YouTube Video using VLC (12)

Paste the YouTube URL into network URL, then hit Stream button:

Downloading YouTube Video using VLC (13)

Just click Next at the Source setup dialog:

Downloading YouTube Video using VLC (14)

In the Destination Setup window, click Add:

Downloading YouTube Video using VLC (15)

Put the destination file name:

https://www.youtube.com/playlist?list=PLZI6KTHH6719rdZQ_OpJu5G7wQDcm4PoYDownloading YouTube Video using VLC (16)

Click Stream button at the Option Setup dialog:

Downloading YouTube Video using VLC (17)

Now, VLC is transcoding while doing streaming:

Downloading YouTube Video using VLC (18)

Method 0 - Downloading YouTube Video (youtube-dl)

Written in Python, the youtube-dl is one of the most popular tools for downloading videos not only from YouTube but from other sources.

  1. How to download youtube-dl?
    $ sudo curl https://yt-dl.org/downloads/2016.01.09/youtube-dl -o /usr/local/bin/youtube-dl
  2. Set a executable execute permission
    $ sudo chmod a+x /usr/local/bin/youtube-dl
  3. How to use it to download YouTube video?
    To download a video file, simply run the following command. All we need is the url of the video that we want to download.
    $ youtube-dl https://www.youtube.com/watch?v=dP15zlyra3c[youtube] dP15zlyra3c: Downloading webpage[youtube] dP15zlyra3c: Downloading video info webpage[youtube] dP15zlyra3c: Extracting video information[youtube] dP15zlyra3c: Downloading DASH manifest[youtube] dP15zlyra3c: Downloading DASH manifest[download] Destination: Fox Snow Dive - Yellowstone - BBC Two-dP15zlyra3c.f137.mp4[download] 100% of 13.25MiB in 00:08[download] Destination: Fox Snow Dive - Yellowstone - BBC Two-dP15zlyra3c.f141.m4a[download] 100% of 1.78MiB in 00:01[ffmpeg] Merging formats into "Fox Snow Dive - Yellowstone - BBC Two-dP15zlyra3c.mp4"Deleting original file Fox Snow Dive - Yellowstone - BBC Two-dP15zlyra3c.f137.mp4 (pass -k to keep)Deleting original file Fox Snow Dive - Yellowstone - BBC Two-dP15zlyra3c.f141.m4a (pass -k to keep)
  4. Downloading done!
    $ lsFox Snow Dive - Yellowstone - BBC Two-dP15zlyra3c.mp4

  5. List of available formats
    $ youtube-dl --list-formats https://www.youtube.com/watch?v=dP15zlyra3c[youtube] dP15zlyra3c: Downloading webpage[youtube] dP15zlyra3c: Downloading video info webpage[youtube] dP15zlyra3c: Extracting video information[youtube] dP15zlyra3c: Downloading DASH manifest[youtube] dP15zlyra3c: Downloading DASH manifest[info] Available formats for dP15zlyra3c:format code extension resolution note171 webm audio only DASH audio 118k , vorbis@128k (44100Hz), 761.87KiB140 m4a audio only DASH audio 129k , m4a_dash container, aac @128k (44100Hz), 916.53KiB141 m4a audio only DASH audio 255k , m4a_dash container, aac @256k (44100Hz), 1.78MiB160 mp4 256x144 DASH video 111k , avc1.4d400c, 13fps, video only, 785.14KiB242 webm 426x240 DASH video 114k , vp9, 1fps, video only, 570.74KiB243 webm 640x360 DASH video 203k , vp9, 1fps, video only, 1009.74KiB133 mp4 426x240 DASH video 247k , avc1.4d4015, 25fps, video only, 1.69MiB134 mp4 640x360 DASH video 251k , avc1.4d401e, 25fps, video only, 1.23MiB244 webm 854x480 DASH video 368k , vp9, 1fps, video only, 1.81MiB135 mp4 854x480 DASH video 542k , avc1.4d401e, 25fps, video only, 2.78MiB247 webm 1280x720 DASH video 622k , vp9, 1fps, video only, 3.35MiB136 mp4 1280x720 DASH video 1163k , avc1.4d401f, 25fps, video only, 6.50MiB248 webm 1920x1080 DASH video 1171k , vp9, 1fps, video only, 6.80MiB137 mp4 1920x1080 DASH video 2087k , avc1.640028, 25fps, video only, 13.25MiB17 3gp 176x144 small , mp4a.40.2, mp4v.20.336 3gp 320x240 small , mp4a.40.2, mp4v.20.35 flv 400x240 small 43 webm 640x360 medium , vorbis, vp8.018 mp4 640x360 medium , mp4a.40.2, avc1.42001E22 mp4 1280x720 hd720 , mp4a.40.2, avc1.64001F (best)
  6. To download a preferred file format, use the option -f (video format code). For example, if we want to download webm format, we use 43 as shown below:
    $ youtube-dl -f 43 https://www.youtube.com/watch?v=dP15zlyra3c
  7. To download a list of videos, we can use a playlist. Just add the playlist URL:
    $ youtube-dl https://www.youtube.com/playlist?list=PLZI6KTHH6719rdZQ_OpJu5G7wQDcm4PoY[youtube:playlist] PLZI6KTHH6719rdZQ_OpJu5G7wQDcm4PoY: Downloading webpage[download] Downloading playlist: Quantum theory[youtube:playlist] playlist Quantum theory: Downloading 2 videos[download] Downloading video 1 of 2[youtube] e5_V78SWGF0: Downloading webpage[youtube] e5_V78SWGF0: Downloading video info webpage[youtube] e5_V78SWGF0: Extracting video information[youtube] e5_V78SWGF0: Downloading DASH manifest[youtube] e5_V78SWGF0: Downloading DASH manifestWARNING: Requested formats are incompatible for merge and will be merged into mkv.[download] Destination: Quantum Theory Made Easy [1]-e5_V78SWGF0.f137.mp4[download] 100% of 324.10MiB in 02:48[download] Destination: Quantum Theory Made Easy [1]-e5_V78SWGF0.f251.webm[download] 100% of 30.87MiB in 00:21[ffmpeg] Merging formats into "Quantum Theory Made Easy [1]-e5_V78SWGF0.mkv"Deleting original file Quantum Theory Made Easy [1]-e5_V78SWGF0.f137.mp4 (pass -k to keep)Deleting original file Quantum Theory Made Easy [1]-e5_V78SWGF0.f251.webm (pass -k to keep)[download] Downloading video 2 of 2[youtube] FlIrgE5T_g0: Downloading webpage[youtube] FlIrgE5T_g0: Downloading video info webpage[youtube] FlIrgE5T_g0: Extracting video information[youtube] FlIrgE5T_g0: Downloading DASH manifest[youtube] FlIrgE5T_g0: Downloading DASH manifestWARNING: Requested formats are incompatible for merge and will be merged into mkv.[download] Destination: Quantum Theory Made Easy [2]-FlIrgE5T_g0.f137.mp4[download] 100% of 321.89MiB in 03:05[download] Destination: Quantum Theory Made Easy [2]-FlIrgE5T_g0.f251.webm[download] 100% of 34.72MiB in 00:18[ffmpeg] Merging formats into "Quantum Theory Made Easy [2]-FlIrgE5T_g0.mkv"Deleting original file Quantum Theory Made Easy [2]-FlIrgE5T_g0.f137.mp4 (pass -k to keep)Deleting original file Quantum Theory Made Easy [2]-FlIrgE5T_g0.f251.webm (pass -k to keep)[download] Finished downloading playlist: Quantum theory$ lsQuantum Theory Made Easy [1]-e5_V78SWGF0.mkvQuantum Theory Made Easy [2]-FlIrgE5T_g0.mkv
  8. When we downloaded the playlist, the default option is to delete original files. So, if we want to keep them, we can just provide -k as shown below:
    $ youtube-dl -k https://www.youtube.com/playlist?list=PLZI6KTHH6719rdZQ_OpJu5G7wQDcm4PoY
  9. We can download a video from Vimeo as well:
    $ youtube-dl https://vimeo.com/22439234[vimeo] 22439234: Downloading webpage[vimeo] 22439234: Extracting information[vimeo] 22439234: Downloading webpage[vimeo] 22439234: Downloading JSON metadata[vimeo] 22439234: Downloading m3u8 information[download] Destination: The Mountain-22439234.mp4[download] 100% of 59.93MiB in 01:23
Downloading YouTube Video using VLC (2024)
Top Articles
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 5937

Rating: 4.1 / 5 (42 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.