[FFmpeg-trac] #5696(avformat:new): ffmpeg broken for AES-encrypted HLS stream with Accept-Encoding header

FFmpeg trac at avcodec.org
Fri Jul 8 15:00:08 EEST 2016


#5696: ffmpeg broken for AES-encrypted HLS stream with Accept-Encoding header
----------------------------------+------------------------------------
             Reporter:  yan12125  |                    Owner:
                 Type:  defect    |                   Status:  new
             Priority:  normal    |                Component:  avformat
              Version:  3.0.2     |               Resolution:
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+------------------------------------

Comment (by yan12125):

 Same on git-master N-80924-gb450b82:
 {{{
 $ ffmpeg -loglevel debug -headers "Accept-Encoding: gzip, deflate" -i
 https://d2sazdeahkz1yk.cloudfront.net/episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p.m3u8 -c copy -f mp4 -bsf:a aac_adtstoasc output.mp4
 ffmpeg version N-80924-gb450b82 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 6.1.1 (GCC) 20160602
   configuration: --prefix=/usr --disable-debug --disable-static --enable-
 avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-
 gpl --enable-ladspa --enable-libass --enable-libbluray --enable-
 libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug
 --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb
 --enable-libopenjpeg --enable-libopus --enable-libfdk-aac --enable-
 libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex
 --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab
 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxvid --enable-nonfree --enable-shared
 --enable-version3 --enable-x11grab
   libavutil      55. 28.100 / 55. 28.100
   libavcodec     57. 48.103 / 57. 48.103
   libavformat    57. 41.100 / 57. 41.100
   libavdevice    57.  0.102 / 57.  0.102
   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
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 Reading option '-headers' ... matched as AVOption 'headers' with argument
 'Accept-Encoding: gzip, deflate'.
 Reading option '-i' ... matched as input file with argument
 'https://d2sazdeahkz1yk.cloudfront.net/episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p.m3u8'.
 Reading option '-c' ... matched as option 'c' (codec name) with argument
 'copy'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'mp4'.
 Reading option '-bsf:a' ... matched as option 'bsf' (A comma-separated
 list of bitstream filters) with argument 'aac_adtstoasc'.
 Reading option 'output.mp4' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set logging level) with argument debug.
 Successfully parsed a group of options.
 Parsing a group of options: input file
 https://d2sazdeahkz1yk.cloudfront.net/episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p.m3u8.
 Successfully parsed a group of options.
 Opening an input file:
 https://d2sazdeahkz1yk.cloudfront.net/episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p.m3u8.
 [https @ 0x55b97035e480] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [https @ 0x55b97035e480] No trailing CRLF found in HTTP header.
 [https @ 0x55b97035e480] request: GET /episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p.m3u8 HTTP/1.1
 User-Agent: Lavf/57.41.100
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: d2sazdeahkz1yk.cloudfront.net
 Icy-MetaData: 1
 Accept-Encoding: gzip, deflate


 [hls,applehttp @ 0x55b97035db20] Format hls,applehttp probed with
 size=2048 and score=100
 [hls,applehttp @ 0x55b97035db20] HLS request for url
 'https://d2sazdeahkz1yk.cloudfront.net/episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p00000.ts', offset 0, playlist 0
 [https @ 0x55b97068f820] request: GET /episodes/S01E03-loading-view-
 controllers/hls_key HTTP/1.1
 User-Agent: Lavf/57.41.100
 Accept: */*
 Connection: close
 Host: talk.objc.io
 Icy-MetaData: 1
 Accept-Encoding: gzip, deflate


 [https @ 0x55b97068f820] inflate return value: -3, invalid code lengths
 set
     Last message repeated 1 times
 Unable to read key file https://talk.objc.io/episodes/S01E03-loading-view-
 controllers/hls_key
 [AVIOContext @ 0x55b970562a80] Statistics: 0 bytes read, 0 seeks
 [https @ 0x55b970916980] request: GET /episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p00000.ts HTTP/1.1
 User-Agent: Lavf/57.41.100
 Accept: */*
 Connection: close
 Host: d2sazdeahkz1yk.cloudfront.net
 Icy-MetaData: 1
 Accept-Encoding: gzip, deflate


 [hls,applehttp @ 0x55b97035db20] Error when loading first segment
 'https://d2sazdeahkz1yk.cloudfront.net/episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p00000.ts'
 [AVIOContext @ 0x55b97074f240] Statistics: 1050944 bytes read, 0 seeks
 [AVIOContext @ 0x55b9704777a0] Statistics: 4997 bytes read, 0 seeks
 https://d2sazdeahkz1yk.cloudfront.net/episodes/1b888bc4-d261-481d-a8ba-
 28c02b31eaab/1/1080p.m3u8: Invalid data found when processing input
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5696#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list