User Agents

Web browsers and everyday web tech, explained

Play Online Videos in VLC: How-To & Troubleshooting

· 5 min read · Extensions

In this article
  1. Why Use VLC for Online Videos?
  2. How to Open an Online Video in VLC (Step-by-Step)
  3. Finding the Direct Video URL
  4. Common Problems and How to Fix Them
  5. Comparing VLC with Browser Playback
  6. Is It Safe and Legal?
  7. Frequently Asked Questions

Yes, VLC media player can play online videos directly from URLs, and it also supports streaming protocols like HLS and RTSP. This article explains the exact steps to open a video from a web link, how to handle common issues, and what to do when a stream won't play.

Why Use VLC for Online Videos?

VLC is a free, open-source media player that handles a wide range of formats without needing extra codecs. For online videos, it offers several benefits over a browser:

  • Direct URL playback: Paste a direct link to a video file (e.g., .mp4, .webm) and VLC streams it without downloading the whole file first.
  • Network protocols: Supports HTTP, HTTPS, FTP, RTSP, MMS, and HLS (m3u8) streams, which are common for live broadcasts and IP cameras.
  • Buffer control: You can adjust the network cache to reduce stuttering on slow connections.
  • Playlist support: Load multiple URLs at once and play them sequentially or shuffled.

However, VLC cannot play videos that are embedded on a webpage with DRM protection (like Netflix or Amazon Prime), because those streams are encrypted and require special decryption keys.

How to Open an Online Video in VLC (Step-by-Step)

  1. Copy the video URL: Right-click the video link on a webpage and select "Copy link address" (or similar). For live streams, you may need to find the .m3u8 URL from the page source.
  2. Open VLC: Launch the application.
  3. Open the Network Stream dialog: Click Media in the top menu, then select Open Network Stream (or press Ctrl+N on Windows/Linux, Cmd+N on macOS).
  4. Paste the URL: In the "Please enter a network URL" field, paste the copied link.
  5. Click "Play": VLC will attempt to connect and start buffering. The video should appear in a new window.

You can also use the command line: vlc "https://example.com/video.mp4" on Windows or vlc --network-caching=5000 "URL" to set a larger buffer.

Finding the Direct Video URL

Many websites don't provide a direct link to the video file. Instead, they use an embedded player that loads a stream. To get the actual URL:

  • Inspect the page: Right-click the video area and select "Inspect" (or press F12). Look for a <video> tag; the src attribute contains the direct link.
  • Use browser extensions: Extensions like "Video DownloadHelper" (for Firefox) or "Video Downloader" (for Chrome) can reveal the underlying stream URL.
  • Check for .m3u8: Live streams often use HLS, which is a playlist file ending in .m3u8. You can find it in the Network tab of the developer tools (filter by "media").

Be aware that some sites obfuscate URLs or use tokens that expire quickly, so the link may only work for a short time.

Common Problems and How to Fix Them

Even with the correct URL, you may encounter issues. Here are the most frequent ones:

  • "VLC cannot open the MRL" – The URL is invalid, the server is down, or the protocol is not supported. Double-check the link and try a different browser.
  • Video plays but no sound – The stream may use an audio codec VLC doesn't support, or the audio track is separate. Try switching audio tracks via Audio menu.
  • Buffering or stuttering – Increase the network cache: go to Tools > Preferences, show "All" settings, then under Input/Codecs, increase "Network caching (ms)" to 3000 or more.
  • Black screen with audio – The video codec might be unsupported. Update VLC to the latest version, or try a different player.
  • Cannot play YouTube links – YouTube uses DRM and dynamic URLs; VLC cannot play them directly. Use a tool to extract the direct video URL, but note that YouTube's terms of service may restrict this.

Comparing VLC with Browser Playback

When should you use VLC instead of just watching in a browser?

  • Browser advantages: Simpler, no extra software, and handles embedded players with DRM.
  • VLC advantages: Better for unstable connections (adjustable buffer), supports more formats, allows frame-by-frame playback, and can record or capture streams.

For most casual viewing, a browser is fine. But if you need to watch a raw video file from a server or a live stream that doesn't work in the browser, VLC is a reliable alternative.

Using VLC to play online videos is safe if you only open URLs from trusted sources. Malicious URLs could potentially exploit vulnerabilities, though VLC is generally secure when updated. As for legality, streaming content without permission may violate copyright, but the act of using VLC itself is not illegal. Always respect the terms of service of the website you are using.

Frequently Asked Questions

Can VLC play YouTube videos?

Not directly. YouTube uses dynamic URLs and DRM, so pasting a YouTube link into VLC will not work. You would need to extract the direct video URL using a third-party tool, but this may violate YouTube's terms.

How do I play a live stream in VLC?

Find the .m3u8 or RTSP URL of the live stream (often available from the site's source code or a network inspector). Then use Media > Open Network Stream and paste that URL. VLC will play it as a continuous stream.

Why does VLC buffer a lot?

Increase the network caching value in Preferences > Input/Codecs. Also, ensure your internet connection is stable. A higher cache (e.g., 5000 ms) stores more data before playback, reducing interruptions.

Can I download a video using VLC?

VLC can record a stream while playing it. Go to View > Advanced Controls (or press Ctrl+R) to show the record button. However, this only works for streams that are not DRM-protected, and recording may violate copyright.

What protocols does VLC support?

VLC supports HTTP, HTTPS, FTP, RTSP, MMS, and HLS (m3u8). It also supports UDP and RTP for local network streams.