[FFmpeg-user] How to pass cookies to ffmpeg to download aes-128 protected .ts?

Han Jiang oglops at gmail.com
Tue Mar 4 09:43:17 CET 2014

hi all , i've been using ffmpeg for a while with this syntax :

ffmpeg -i "http://x:1935/vod/yyyy" -c copy -absf aac_adtstoasc  out.mp4

but suddenly from today, i found that when i ran it, the following error

[tls @ 0000000000305a40] Error in the push function.
Unable to open key file https://xxxxx/yyyy.php?wowzasessionid=222333444
[hls,applehttp @ 0000000002c986a0] Error when loading first segment '
http://xxx:1935/vod/yyy.mp4: Invalid data found when processing input

how ever i still managed to get the m3u8 file


then of course i can get hold of the chunklist_222333444.m3u8 file


in this case how do i use ffmpeg to download the stream ?

i have account on this website, how to tell it i have the key ?
like this ?

ffmpeg -y -cookies "Cookie:  name=value; name1=value1; \r\n" -i "
http://xxx:1935/vod/xxx/mp4:xxx.mp4/playlist.m3u8" -c copy -absf
aac_adtstoasc - o out.mp4

tried but does not work, still same error:
Unable to open key file

More information about the ffmpeg-user mailing list