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

如何在 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上找到一个类似的问题

发表评论

后才能评论