macOS: frames never extract — brew's yt-dlp has no impersonation targets (403 on video, captions still work)

Author: amobe464Created Jul 26, 2026Updated Sep 21, 2026

What happens

On macOS, /watch returns a transcript but never any frames. Video download fails with HTTP Error 403: Forbidden while subtitle download succeeds in the same run, so at first glance the failure looks unrelated to yt-dlp.

[info] Writing video subtitles to: .../video.en.vtt
[download] 100% of 318.57KiB
ERROR: unable to download video data: HTTP Error 403: Forbidden

Root cause

Earlier in the same output, yt-dlp emits this as a warning, not an error, so it scrolls past:

WARNING: The extractor specified to use impersonation for this download,
but no impersonate target is available.

Homebrew's yt-dlp formula does not depend on curl_cffi, so a brew-installed yt-dlp has zero impersonation targets:

$ brew deps yt-dlp | grep -c curl_cffi
0
$ ls $(brew --prefix)/Cellar/yt-dlp/*/libexec/lib/python*/site-packages/ | grep curl_cffi
(nothing)

YouTube validates the client's TLS fingerprint on video stream endpoints but not on the caption endpoint — which is exactly the split observed. setup.py runs brew install yt-dlp on macOS and then only checks that the binary exists (REQUIRED_BINARIES), so this passes preflight and fails silently at runtime. The README's "zero config to start" path is the one that breaks.

Reproduce

bash
brew install yt-dlp
yt-dlp --list-impersonate-targets    # empty
yt-dlp -f "best[height<=480]" https://youtu.be/<any-id>    # 403

Fix that worked

python3.13 -m venv ~/.local/share/yt-dlp-venv
~/.local/share/yt-dlp-venv/bin/pip install "yt-dlp[default,curl-cffi]"
ln -s ~/.local/share/yt-dlp-venv/bin/yt-dlp ~/.local/bin/yt-dlp

--list-impersonate-targets then lists Chrome-133/136 and Safari-17.2/18.0/18.4, and frames extract normally.

Note: Python 3.13, not 3.14 — there are no cp314 ARM wheels for curl_cffi yet, and Homebrew's python3 currently points at 3.14.

Suggested change

Two options, both small:

  1. In setup.py, after confirming the binary exists, also check that yt-dlp --list-impersonate-targets is non-empty, and warn (or install the pip version) if it isn't.
  2. Or on macOS install via pipx install "yt-dlp[default,curl-cffi]" instead of brew install yt-dlp.

Option 1 seems safer since it doesn't change how existing installs get their binary — it just turns a silent runtime failure into a clear preflight message.

Happy to send a PR for either if useful. Thanks for building this — it's a great skill and this was the only thing standing between it and working perfectly on macOS.

Source: bradautomates/claude-video