[FFmpeg-user] ffmpeg hls and 3 cookies
Georg Stein SMC
georg at steinmc.com
Sun Jan 1 20:57:54 EET 2017
Sorry for that,
here the head info of the log:
ffmpeg -headers 'Cookie:
CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9yZXBsYXkucGVyaXNjb3BlLnR2L3JaXzhYbk5yeVhWVnA3M2JKbG1OVlZ3RldkS0lDbTBNbHdyaGRPelBZMFY4b3lUM2ZfWl9nbkdiRVJ6NGhERDhzT3NsSFE1WEZTaUdySmFla1lXTVpnKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ4MzM0NDIzNn19fV19;CloudFront-Key-Pair-Id=APKAIHCXHHQVRTVSFRWQ;CloudFront-Signature=PiLhDHXFD~VbDd3qKKeafwntyvBWITmt3sAmv46z~DmgHl8vRYruodYj3iwh8Sjm2PqD1Dp4TqMCp498fxrpEt~MtI8EbuYQc~w5-iQR3lp8fHGN7aHybJghpCZn2ac-J0ujdOZyz0uQuKmeck8EwvMpJhhfQm3RMsi4Zonu3X0Hl0GYCoqM3AFTlLc8FAkBmqRaw~lRoud6GqepptGPcnMgL~aM5vzXGkbPLmnWmB6UUKFOQFfSo1xHVMz3FbOEsg2GN0CkKKKGKQcj4nf7jYEZpehOPu9SA1H~tVfASQxNiMLGdFgy7W72pMeI2bU2odmOek6eoRjAWauQIffNyg__;'
-i
'https://replay.periscope.tv/rZ_8XnNryXVVp73bJlmNVVwFWdKICm0MlwrhdOzPY0V8oyT3f_Z_gnGbERz4hDD8sOslHQ5XFSiGrJaekYWMZg/playlist_1482892547484600267.m3u8'
-c copy test.ts -v debug
ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (SUSE Linux)
configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg
--extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g' --optflags='-fmessage-length=0
-grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g' --disable-htmlpages
--enable-pic --disable-stripping --enable-shared --disable-static
--enable-runtime-cpudetect --enable-gpl --disable-openssl
--enable-avresample --enable-libcdio --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libcelt --enable-libcdio
--enable-libdc1394 --enable-libfreetype --enable-libgsm
--enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-netcdf
--enable-pic --enable-pthreads --enable-vaapi --enable-vdpau
--disable-encoders --disable-decoders --disable-muxers
--disable-demuxers
--disable-decoder='mpeg1video,mpeg2video,mpeg4,h264,vc1'
--enable-encoder='apng,ass,ayuv,bmp,ffv1,ffvhuff,flac,gif,huffyuv,jpegls,libgsm,libopenjpeg,libopus,libschroedinger,libspeex,libtheora,libvorbis,libvpx_vp8,libvpx_vp9,libwebp,libwebp_anim,mjpeg,pam,pbm,pcm_alaw,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,pcm_s24be,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le_planar,pcm_s8,pcm_s8_planar,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,pcx,pgm,pgmyuv,png,ppm,sgi,srt,ssa,sunrast,targa,text,tiff,v210,v308,v408,v410,vorbis,xbm,xwd,y41p,yuv4,zlib,'
--enable-decoder='ansi,apng,ass,ayuv,bmp,dirac,exr,ffv1,ffvhuff,ffwavesynth,flac,gif,gsm,huffyuv,libcelt,libgsm,libopenjpeg,libopus,libschroedinger,libspeex,libvorbis,libvpx_vp8,libvpx_vp9,mjpeg,,,,opus,pam,pbm,pcm_alaw,pcm_bluray,pcm_dvd,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,pcm_s24be,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le_planar,pcm_s8,pcm_s8_planar,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,pcx,pgm,pgmyuv,pgssub,png,ppm,rawvideo,sgi,srt,ssa,sunrast,targa,text,theora,tiff,v210,v210x,v308,v408,v410,vorbis,vp3,vp5,vp6,vp6a,vp6f,vp8,vp9,webp,xbm,xwd,y41p,yuv4,zlib,'
--enable-muxer='aac,ac3,adts,aiff,apng,asf,ass,au,avi,crc,data,dirac,ffm,ffmetadata,flac,framecrc,framemd5,gif,h264,hevc,ico,ilbc,image2,image2pipe,matroska,matroska_audio,md5,mjpeg,mov,mpegts,mp3,mp4,mkvtimestamp_v2,null,ogg,opus,pcm_alaw,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16le,pcm_s24be,pcm_s24le,pcm_s32be,pcm_s32le,pcm_s8,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,rawvideo,singlejpeg,sox,srt,tee,truehd,uncodedframecrc,vc1,wav,webm,webm_chunk,webp,webvtt,'
--enable-demuxer='aac,ac3,adts,aiff,apng,asf,ass,au,avi,concat,data,dirac,dts,dv,flac,flv,ffm,ffmetadata,gif,gsm,h264,hevc,ico,iff,ilbc,image2,image2pipe,image_bmp_pipe,image_exr_pipe,image_j2k_pipe,image_jpeg_pipe,image_png_pipe,image_sgi_pipe,image_sunrast_pipe,image_tiff_pipe,image_webp_pipe,ivf,matroska,mjpeg,mov,mp3,mp4,mpegps,mpegts,mpegtsraw,mpegvideo,ogg,pcm_alaw,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16le,pcm_s24be,pcm_s24le,pcm_s32be,pcm_s32le,pcm_s8,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,rawvideo,rm,sln,sox,srt,truehd,tta,tty,v210,v210x,vc1,vobsub,wav,webvtt,'
--enable-x11grab
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Am 01.01.2017 um 17:59 schrieb Moritz Barsnick:
> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
--
Stein Micro Computer
Georg P. Stein
Tel.: 06898-63880
Fax: 06898-63820
Mobil: 0172-3538379
georg at steimc.com
https://www.steinmc.com
More information about the ffmpeg-user
mailing list