使用 VLC 下载 YouTube 视频
VLC 流媒体
![](/data/attachment/album/202207/03/100812twzmm942m4o7lmzq.jpg)


[VLC](https://www.videolan.org/vlc/) 是 [Linux 和其他平台上最受欢迎的视频播放器](https://itsfoss.com/video-players-linux/)之一。


它不仅仅是一个视频播放器。它提供了许多多媒体和网络相关的功能。你会惊讶地 [了解 VLC 的能力](https://itsfoss.com/vlc-pro-tricks-linux/)。


我将演示一个简单的 VLC 功能，即使用它下载 YouTube 视频。


是的。你可以在 VLC 中播放 YouTube 视频并下载它们。让我告诉你怎么做。（LCTT 校注：发布此文只探讨技术可行性。）


### 使用 VLC 媒体播放器下载 YouTube 视频


现在，有一些方法可以 [下载 YouTube 视频](https://itsfoss.com/download-youtube-videos-ubuntu/)。使用浏览器扩展或使用专门的网站或工具。


但是如果你不想使用任何额外的东西，已经安装的 VLC 播放器可以用于此目的。


\*\*重要提示：\*\*在从 YouTube 复制链接之前，请确保从 YouTube 播放器中选择所需的视频质量，因为我们将获得与复制链接时流式传输视频相同的质量。


#### 步骤 1：获取所需视频的视频链接


你可以使用任何你喜欢的浏览器并从地址栏中复制视频链接。


![copy youtube link](/data/attachment/album/202207/03/100814rl88u1u3ks6168hz.jpg)


#### 步骤 2：将复制的链接粘贴到网络流


“<ruby> 网络流 <rt>  Network Stream </rt></ruby>”选项位于“<ruby> 媒体 <rt>  Media </rt></ruby>”菜单下，这是我们顶部菜单栏的第一个选项。你也可以使用快捷方式 `CTRL + N` 打开网络流 。


![click on media and select network stream](/data/attachment/album/202207/03/100814lo19qq33d3e3ebe1.png)


现在，你只需粘贴复制的 YouTube 视频链接，然后单击播放按钮。我知道它只是在我们的 VLC 中播放视频，但还有一点额外的步骤可以让我们下载当前的流媒体视频。


![paste video link](/data/attachment/album/202207/03/100815qc7h1hbowl1hhf7l.png)


#### 步骤 3：从编解码器信息中获取位置链接


在“<ruby> 编解码器信息 <rt>  Codec Information </rt></ruby>”下，我们会得到当前播放视频的位置链接。要打开编解码器信息，你可以使用快捷键 `CTRL + J` 或者你会在“<ruby> 工具 <rt>  Tools </rt></ruby>”菜单下找到编解码器信息选项。


![click on tools and then codec information](/data/attachment/album/202207/03/100815nupwwrgbwr44yywm.png)


它将带来有关当前流媒体视频的详细信息。但我们需要的是“<ruby> 位置 <rt>  Location </rt></ruby>”。你只需复制位置链接，我们的任务就完成了 90%。


![copy location link](/data/attachment/album/202207/03/100815lheros60kheg8y66.png)


#### 步骤 4：将位置链接粘贴到新选项卡


打开任何你喜欢的浏览器，并将复制的位置链接粘贴到新选项卡，它将开始在浏览器中播放该视频。


现在，右键单击播放视频，你将看到“将视频另存为”的选项。


![click on save](/data/attachment/album/202207/03/100815tijfififfgzi71lg.jpg)


它将打开文件管理器并询问你是否要在本地保存此视频。你还可以重命名该文件，默认情况下它将被命名为 “videoplayback.mp4”。


![showing file in folder](/data/attachment/album/202207/03/100816iqjlcqys2q4q34ls.png)


### 结论


如果你有互联网连接问题，或者如果你想保存一些视频以供将来观看，下载 YouTube 视频是有意义的。


当然，我们不鼓励盗版。此方法仅用于合理使用，请确保视频的创建者已允许该视频进行合理使用，并确保在将其用于其他地方之前将其归属于视频的原始所有者。




---


via: <https://itsfoss.com/download-youtube-videos-vlc/>


作者：[Community](https://itsfoss.com/author/itsfoss/) 选题：[lkxed](https://github.com/lkxed) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

[VLC](https://www.videolan.org/vlc/?ref=itsfoss.com) is one of the [most popular video players for Linux](https://itsfoss.com/video-players-linux/) and other platforms.

It’s not just a video player. It provides a number of multimedia and network-related features among other things. You’ll be surprised to [learn what VLC is capable of](https://itsfoss.com/vlc-pro-tricks-linux/).

I’ll demonstrate a simple VLC feature and that is to download YouTube videos with it.

Yes. You can play YouTube videos in VLC and download them too. Let me show you how.

## Download YouTube videos with VLC Media Player

Now, there are ways to [download YouTube videos](https://itsfoss.com/download-youtube-videos-ubuntu/). Use a browser extension or use dedicated websites or tools for it.

But if you don’t want to use anything additional, the already installed VLC player can be used for this purpose.

**Important: **Before copying the link from YouTube, make sure to choose desired video quality from the YouTube player because we will get the same quality in which the video was streaming while copying the link.

### Step 1: Get the Video link of your desired video

You can use any of your favorite browsers and copy the video link from the address bar.

![copy youtube link](https://itsfoss.com/content/images/wordpress/2022/06/copy-Youtube-link-800x190.jpg)

### Step 2: Paste copied Link to Network Stream

The option of Network stream lies under Media which is the first option of our top menu bar. Just click on Media and you will get the option of “Open Network Stream”. You can also use the shortcut to open Network Stream CTRL + N.

![click on media and select network stream](https://itsfoss.com/content/images/wordpress/2022/06/click-on-media-and-select-network-stream.png)

Now, you just have to paste copied YouTube video link and click on the play button. I know it just plays video in our VLC but there is a little extra step that will allow us to download currently streaming video.

![paste video link](https://itsfoss.com/content/images/wordpress/2022/06/paste-video-link.png)

### Step 3: Get Location Link from Codec Information

Under the codec information prompt, we will get a location link for the currently playing video. To open the Codec Information prompt, you can use the shortcut CTRL + J or you’ll find the option for Codec Information under “Tools”.

![click on tools and then codec information](https://itsfoss.com/content/images/wordpress/2022/06/click-on-tools-and-then-codec-information-800x249.png)

It will bring detailed info about currently streaming video. But what we need is ‘Location’. You just have to copy the location link and 90% of our task is complete.

![copy location link](https://itsfoss.com/content/images/wordpress/2022/06/copy-location-link.png)

### Step 4: Paste Location Link to New Tab

Open any of your favorite browsers and paste copied location link to the new tab and it will start playing the exact video in the browser.

Now, right-click on playing video and you will get an option for “Save Video As”.

![click on save](https://itsfoss.com/content/images/wordpress/2022/06/click-on-save-800x424.jpg)

It will open the file manager and ask you whether you want to save this video locally or not. You can also rename that file as by default it will be named “videoplayback.mp4”

![showing file in folder](https://itsfoss.com/content/images/wordpress/2022/06/showing-file-in-folder-800x263.png)

## Conclusion

Don't just stop here. VLC can do a lot more.

[Make VLC More Awesome With These Simple TipsVLC is one of the best open source video players, if not the best. What most people don’t know about it is that it is a lot more than just a video player. You can do a lot of complex tasks like broadcasting live videos, capturing devices etc. Just](https://itsfoss.com/simple-vlc-tips/)![](https://itsfoss.com/content/images/wordpress/2019/12/VLC_TIPS.png)


![](https://itsfoss.com/content/images/wordpress/2019/12/VLC_TIPS.png)

If you have internet connection issues or if you want to save some video for future viewing, downloading the YouTube video makes sense.

Of course, we don’t encourage piracy. This method is just for fair use please make sure that the creator of the video has allowed the video for fair usage and also make sure to give credit to the original owner of the video before using it somewhere else.