3

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.

Rodrigo Amaro Reveco
  • 4,932
  • 5
  • 22
  • 33

2 Answers2

17

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"
Zombo
  • 1
  • 62
  • 391
  • 407
-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.

vipw
  • 7,593
  • 4
  • 25
  • 48