如何在 FFmpeg HLS 中启用 cookies : How to enable cookies in ffmpeg HLS

Anyone know how to enable cookie interaction in ffmpeg? I have an HLS stream who need save cookies from the server , but actually that doesn't happen.

 

14

You can send headers with FFmpeg

Linux

ffmpeg -i INPUT -headers $'Cookie: logged_in=yes; tracker=direct\r\n'
Windows

powershell ffmpeg -i INPUT -headers "Cookie: logged_in=yes; tracker=direct`r`n"

ok, I was reading about that but I want the posibility to save cookies between playlist calls. Actually my server need the cookies saved to calculate the next playlist m3u8 –
Rodrigo Amaro Reveco

There's no cookie support in ffmpeg. You'll need to implement that part on your own or perhaps use mplayer which supports cookies.

 

有人知道如何在 ffmpeg 中启用 cookie 交互吗?我有一个需要从服务器保存 cookie 的 HLS 流,但实际上这不会发生。

最佳答案

你可以发送
headers with
FFmpeg

Linux

ffmpeg -i INPUT -headers $'Cookie: logged_in=yes; tracker=direct\r\n'

视窗

powershell ffmpeg -i INPUT -headers "Cookie: logged_in=yes; tracker=direct`r`n"

 

ffmpeg中没有cookie支持。您需要自己实现该部分,或者使用支持cookie的mplayer。

关于cookies - 如何在 ffmpeg HLS 中启用 cookie,我们在Stack Overflow上找到一个类似的问题

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。