How to enable cookies in ffmpeg HLS

你说的曾经没有我的故事 提交于 2019-12-01 06:40:46

问题


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.


回答1:


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




回答2:


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"


来源:https://stackoverflow.com/questions/16105929/how-to-enable-cookies-in-ffmpeg-hls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!