[FFmpeg-user] ffmpeg hls and 3 cookies
Moritz Barsnick
barsnick at gmx.net
Sun Jan 1 18:59:10 EET 2017
On Sun, Jan 01, 2017 at 17:49:59 +0100, Georg Stein SMC wrote:
> this was the complete console output.
That's peculiar. Every ffmpeg (called with your options) has a banner
output such as this:
ffmpeg version N-82963-g9ec52a0 Copyright (c) 2000-2016 the FFmpeg developers
built with icc (ICC) 14.0.3 20140422
configuration: --prefix=/usr/new/tools/video/install/ffmpeg/2016-12-29 --cc=icc --cxx=icpc --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-gnutls --enable-libcdio --enable-libfreetype --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtwolame --enable-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 --enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --enable-libzvbi --enable-libtesseract --enable-libzmq
libavutil 55. 43.100 / 55. 43.100
libavcodec 57. 70.100 / 57. 70.100
libavformat 57. 61.100 / 57. 61.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 68.100 / 6. 68.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
with which I could check whether you are using a fairly recent version
of ffmpeg, and whether any changes to ffmpeg's handling of cookies may
have happened recently. What happened to that banner in your output?
> When i take out the CRLF, i get this message: [https @ 0x14c69e0] No
> trailing CRLF found in HTTP header.
That's a warning, and the missing CR/LF is appended (since quite some
time). I agree, that's confusing, because other warnings in the cookie
handling lead to total omission of the cookies (i.e. a failure case
with altered behavior).
> and ist only working with wget, not with ffmpeg
It certainly worked for me (also with conversion):
barsnick at sunshine:ffmpeg-build-2016-12-29 > ./ffmpeg_g -headers 'Cookie: CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9yZXBsYXkucGVya
XNjb3BlLnR2L3JaXzhYbk5yeVhWVnA3M2JKbG1OVlZ3RldkS0lDbTBNbHdyaGRPelBZMFY4b3lUM2ZfWl9nbkdiRVJ6NGhERDhzT3NsSFE1WEZTaUdySmFla1lXTVpnKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb
2NoVGltZSI6MTQ4MzM0NDIzNn19fV19; CloudFront-Key-Pair-Id=APKAIHCXHHQVRTVSFRWQ; CloudFront-Signature=PiLhDHXFD~VbDd3qKKeafwntyvBWITmt3sAmv46z~DmgHl8vRYruodYj3iwh8Sjm2PqD1Dp4TqMCp498f
xrpEt~MtI8EbuYQc~w5-iQR3lp8fHGN7aHybJghpCZn2ac-J0ujdOZyz0uQuKmeck8EwvMpJhhfQm3RMsi4Zonu3X0Hl0GYCoqM3AFTlLc8FAkBmqRaw~lRoud6GqepptGPcnMgL~aM5vzXGkbPLmnWmB6UUKFOQFfSo1xHVMz3FbOEsg2GN
0CkKKKGKQcj4nf7jYEZpehOPu9SA1H~tVfASQxNiMLGdFgy7W72pMeI2bU2odmOek6eoRjAWauQIffNyg__;' -i 'https://replay.periscope.tv/rZ_8XnNryXVVp73bJlmNVVwFWdKICm0MlwrhdOzPY0V8oyT3f_Z_gnGbERz4hD
D8sOslHQ5XFSiGrJaekYWMZg/playlist_1482892547484600267.m3u8'
ffmpeg version N-82963-g9ec52a0 Copyright (c) 2000-2016 the FFmpeg developers
built with icc (ICC) 14.0.3 20140422
configuration: --prefix=/usr/new/tools/video/install/ffmpeg/2016-12-29 --cc=icc --cxx=icpc --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-gnutls --enab
le-libcdio --enable-libfreetype --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtwolame --ena
ble-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 --enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --enable-libzvbi --enable-libtesseract --enable-libz
mq
libavutil 55. 43.100 / 55. 43.100 [0/662]
libavcodec 57. 70.100 / 57. 70.100
libavformat 57. 61.100 / 57. 61.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 68.100 / 6. 68.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[https @ 0xbf1c260] No trailing CRLF found in HTTP header.
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12154860, dts=12158550, size=303
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12154860, dts=12158550, size=317
[h264 @ 0xbff1ea0] Increasing reorder buffer to 1
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12162330, dts=12166020, size=175
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12162330, dts=12166020, size=189
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12169800, dts=12173490, size=255
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12169800, dts=12173490, size=269
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12177360, dts=12181050, size=308
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12177360, dts=12181050, size=322
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12184830, dts=12188520, size=267
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12184830, dts=12188520, size=281
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12192300, dts=12195990, size=252
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12192300, dts=12195990, size=266
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12199860, dts=12203550, size=240
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12199860, dts=12203550, size=254
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12207330, dts=12211020, size=223
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12207330, dts=12211020, size=237
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12214800, dts=12218490, size=240
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12214800, dts=12218490, size=254
[mpegts @ 0xbfc93e0] Invalid timestamps stream=1, pts=12222360, dts=12226050, size=441
[hls,applehttp @ 0xbf1bba0] Invalid timestamps stream=1, pts=12222360, dts=12226050, size=455
Input #0, hls,applehttp, from 'https://replay.periscope.tv/rZ_8XnNryXVVp73bJlmNVVwFWdKICm0MlwrhdOzPY0V8oyT3f_Z_gnGbERz4hDD8sOslHQ5XFSiGrJaekYWMZg/playlist_1482892547484600267.m3u8'
:
Duration: 02:33:48.17, start: 135.011000, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 0
Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 320x568, 24 tbr, 90k tbn, 180k tbc
Metadata:
variant_bitrate : 0
Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp
Metadata:
variant_bitrate : 0
At least one output file must be specified
Moritz
More information about the ffmpeg-user
mailing list