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.
There's no cookie support in ffmpeg. You'll need to implement that part on your own or perhaps use mplayer which supports cookies.
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