How do I use curl impersonate with mpv? #16898
mikeyaworski
started this conversation in
General
Replies: 1 comment 1 reply
-
No. And I doubt it will ever be supported in ffmpeg. (It still doesn't support HTTP 2/3.) @kasper93 thoughts? Adding native curl to mpv would solve this, support newer versions of HTTP, and also fix #3373. At the current state, there are multiple easy ways for video servers to completely block ffmpeg/mpv from streaming any video. Considering that most ffmpeg users only use the demuxer and codec parts of it while using other libraries for networking, I think there is not enough motivation for a ffmpeg implementation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Some sites put Cloudflare in front of their HLS segments, so I need to use some impersonation to circumvent the TLS fingerprinting that Cloudflare does.
My yt-dlp environment uses curl_cffi to do just that, and it's no issue if I use yt-dlp.
When I use mpv, I get 403 errors from ffmpeg. If I look at the logs, it's something like:
So I have a few questions:
Less ideal workaround that I have at the moment:
I can run yt-dlp manually and pipe the output to mpv, which works, except that mpv has no concept of the fact that it's an HLS stream and therefore doesn't know the length of the stream, etc.
Note: This is similar to #16684, but not the same solution since in my case, the individual segments are also protected behind Cloudflare.
Beta Was this translation helpful? Give feedback.
All reactions