# How to watch YouTube in a Mac video player

> How to stream YouTube in a native Mac video player using yt-dlp. Save battery life, avoid browser bloat, and play web video with hardware decoding.

Published 2026-10-16 · Streaming & torrents · https://www.hazenstudio.com/maclc/blog/youtube-in-a-mac-video-player/

## In short

- yt-dlp is an open-source command-line tool that finds the direct video and audio streams behind a web link.
- Streaming YouTube inside a native desktop video player bypasses browser overhead, saving memory and extending laptop battery life.
- VLC removed its broken YouTube script in version 3.0.24, after years of breakage each time YouTube changed its player.
- MacLC uses yt-dlp to play web links with Command-U and has a YouTube section in its sidebar for subscriptions and history.

You can watch YouTube in a native desktop video player on a Mac by pairing your player with yt-dlp, an open-source extraction tool that resolves direct video streams from web links. This allows you to play online videos with hardware-accelerated decoding while bypassing heavy browser memory usage and battery drain.

Modern web browsers like Chrome, Safari, and Arc are capable tools, but a video page also runs the site's scripts, comments, recommendations and ads alongside the video. Watching the same stream in a desktop video player skips all of that and gives you player features like equalizers, subtitle styling and frame interpolation.

## What is yt-dlp and how does it work?

To understand how desktop players play web video, you first need to understand why pasting a web link into a media player is not straightforward. When you copy a link like `https://www.youtube.com/watch?v=...`, that URL does not point to an MP4 or MKV video file. It points to an HTML webpage containing thousands of lines of JavaScript, tracking scripts, comment sections, and dynamic layout elements.

The actual video and audio data are delivered across separate, chunked adaptive bitstreams (such as MPEG-DASH or HLS) hosted on content delivery networks (CDNs). Furthermore, video platforms use obfuscated JavaScript tokens—known as signature ciphers—to verify that requests originate from an approved web player.

This is where `yt-dlp` comes in. Hosted on [GitHub](https://github.com/yt-dlp/yt-dlp) and released into the public domain under The Unlicense, `yt-dlp` is a command-line media extraction utility actively maintained by an open-source community. 

When you pass a web link to `yt-dlp`, it performs several automated tasks in fractions of a second:

1. It downloads and parses the webpage metadata.
2. It works out the real stream addresses, which for YouTube means running parts of YouTube's own player code.
3. It identifies all available video resolutions (from 360p to 4K and 8K) and audio bitrates.
4. It hands the clean, direct stream URLs to your desktop media player's playback engine.

*How desktop media players resolve YouTube streams*

Because `yt-dlp` hands over the direct media stream, your video player decodes it like any file. Where the Mac has a hardware decoder for the codec (H.264 on every Apple Silicon Mac, AV1 on M3 and newer), the CPU stays mostly idle, so the Mac runs cooler and the battery lasts longer.

## How do you install and update yt-dlp on macOS?

The official, recommended method to install `yt-dlp` on a Mac is through Homebrew, the standard package manager for macOS.

To install `yt-dlp`:

1. Open the **Terminal** app on your Mac (located in Applications › Utilities).
2. If you do not have Homebrew installed, follow the one-line setup on [brew.sh](https://brew.sh/). (The [yt-dlp formula page](https://formulae.brew.sh/formula/yt-dlp) lists the current version.)
3. Type the following command and press Return:

```bash
brew install yt-dlp
```

On Apple Silicon Macs (M1, M2, M3, M4), Homebrew installs the binary into `/opt/homebrew/bin/yt-dlp`. On older Intel Macs, it installs into `/usr/local/bin/yt-dlp`.

Because online video platforms frequently update their underlying website code and signature ciphers, an older version of `yt-dlp` may eventually fail to extract streams. Upgrading `yt-dlp` takes a single command in Terminal:

```bash
brew upgrade yt-dlp
```

`yt-dlp` is actively maintained, and breakages after platform changes are usually fixed quickly.

## Why did VLC stop playing YouTube links reliably?

For over a decade, tech blogs routinely instructed users to "play YouTube in VLC" by choosing Open Network (Media › Open Network Stream on Windows) and pasting a URL. However, in recent years, this feature failed for the vast majority of Mac users, returning an ambiguous error: "Your input can't be opened."

The failure stemmed from architectural limitations. VLC historically relied on a lightweight, static Lua script (`youtube.luac`) to parse YouTube video pages. This script lacked a full JavaScript engine. Whenever YouTube updated its player JavaScript code or altered the mathematical calculation required to unscramble the video stream's signature cipher (the `n` parameter), VLC broke instantly.

Users were forced to search internet forums, download updated `.lua` scripts manually, and paste them deep inside macOS application support directories. In VLC 3.0.24, VideoLAN removed the broken script; the [release notes](https://code.videolan.org/videolan/vlc/-/blob/3.0.x/NEWS) say "Remove broken youtube.lua plugin". VLC doesn't use `yt-dlp` either, so YouTube links no longer play in VLC without workarounds.

## How do you stream web video and YouTube on a Mac?

Rather than relying on fragile internal scripts or forcing users into the command line, MacLC bridges desktop video playback with `yt-dlp`.

MacLC, the free player we make, plays web links through yt-dlp (a free helper you install once) with ⌘U. It also has a YouTube section in the sidebar with Home, Subscriptions, History, Watch Later, Liked Videos, playlists and search, all in a native window.

The player provides two convenient ways to watch online video:

- **Open Web Video (`⌘U`):** Select **File › Open Web Video** or press **⌘U**. Paste a video URL from YouTube, Vimeo or another site yt-dlp supports and press Return. MacLC runs `yt-dlp` behind the scenes and plays the result; at equal size, it prefers the codec your Mac decodes in hardware.
- **YouTube in the sidebar:** the sidebar has a **YouTube** section where you can browse **Home**, your **Subscriptions**, **History**, **Watch Later**, **Liked Videos**, playlists and channels, and search, in the native AppKit interface.

*Open Web Video window and YouTube sidebar section on macOS*

Sign-in is optional and private: if you sign in to see your subscriptions, the session stays on your Mac. MacLC has no analytics or tracking of its own.

Furthermore, watching web video inside the player provides access to dedicated audio and motion controls. You can apply Voice Boost to make quiet podcast audio clear, engage the 10-band equalizer to adjust acoustic balance, or enable frame interpolation up to your display's refresh rate. To compare player architectures, read our breakdown of the [best video players for Mac](/maclc/blog/best-video-player-for-mac/).

## A note on respecting creators and YouTube terms

When using extraction utilities like `yt-dlp` to watch online video outside of a standard browser, it is important to understand the legal and ethical landscape.

[YouTube's Terms of Service](https://www.youtube.com/static?template=terms) restrict accessing, downloading or displaying content other than as the service expressly allows, or with permission from YouTube and the rights holders.

In the United States, the Supreme Court held in *Sony Corp. of America v. Universal City Studios* (1984) that a technology capable of "substantial non-infringing uses" is not unlawful in itself. Tools like `yt-dlp` are widely utilized by computer scientists, digital archivists, media researchers, and viewers accessing public domain films or Creative Commons educational media. For a guide to finding open-license films, see our directory of [public domain movies](/maclc/blog/public-domain-movies/). This summary is for informational purposes and does not constitute legal advice.

Ethically, streaming video outside an official app bypasses the display advertisements that fund online video creators and infrastructure. If you regularly watch independent creators through a desktop player, consider supporting them directly through channel memberships, Patreon subscriptions, or creator merchandise, or subscribing to YouTube Premium to ensure your favorite channels continue to thrive.

## How to get the smoothest playback from web streams

To ensure your web video streams play smoothly without buffering hiccups:

1. **Keep yt-dlp updated:** Run `brew upgrade yt-dlp` once or twice a month to ensure full compatibility with the latest video platform revisions.
2. **Match the resolution to your screen:** a stream sharper than your display just costs bandwidth. To understand how video data buffers over Wi-Fi, explore our guide to [how video streaming works](/maclc/blog/how-video-streaming-works/).
3. **Let the hardware do the work:** when a stream uses a codec your Mac decodes in hardware, playback stays cool and quiet, from short tutorials to three-hour documentaries. [MacLC is free](/maclc/donate/) if you want to try it.

## Questions people ask

### What is yt-dlp and why do Mac video players need it?

yt-dlp is a public-domain media extraction tool that parses web video pages to find the direct underlying video and audio streams. Video players use it to stream YouTube content without loading a heavy web browser engine.

### How do I install yt-dlp on an Apple Silicon Mac?

The standard installation method is via Homebrew. Open Terminal and run 'brew install yt-dlp'. On Apple Silicon Macs, Homebrew places the executable in /opt/homebrew/bin/yt-dlp.

### Why did VLC stop playing YouTube links?

VLC relied on an internal Lua script that broke whenever YouTube modified its signature cipher or streaming endpoints. In VLC 3.0.24, VideoLAN officially removed the broken script rather than maintaining it.

### Is using yt-dlp to watch YouTube videos legal?

The tool itself has many lawful uses, such as public-domain and Creative Commons videos or your own uploads. YouTube's Terms of Service, however, restrict accessing content other than as the service allows, and copyright still applies to what you watch. Rules differ by country; this is not legal advice.

---
MacLC is a free, open-source video player for Apple Silicon Macs: https://www.hazenstudio.com/maclc/ · download: https://www.hazenstudio.com/maclc/donate/
