How to enable cookies in ffmpeg HLS

2020-03-05 06:40发布

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.

2条回答
可以哭但决不认输i
2楼-- · 2020-03-05 06:40

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"
查看更多
smile是对你的礼貌
3楼-- · 2020-03-05 06:55

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

查看更多
登录 后发表回答