[FFmpeg-trac] #9070(avformat:new): HLS (EXT-X-BYTERANGE) -and Transfer-Encoding=chunked

FFmpeg trac at avcodec.org
Wed Jan 20 12:40:24 EET 2021


#9070: HLS (EXT-X-BYTERANGE) -and Transfer-Encoding=chunked
-------------------------------------+-------------------------------------
             Reporter:  e2iplayer    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:
             Keywords:  hsl          |  unspecified
  byterange chunked                  |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 ffmpeg has problem when HLS segment with byterange format are served by
 server using Transfer-Encoding=chunked.

 In problematic case server response looks like:Status=OK - 200

 {{{
 Server=nginx/1.16.1
 Date=Wed, 20 Jan 2021 10:30:40 GMT
 Content-Type=video/mp2t
 Transfer-Encoding=chunked
 Connection=keep-alive
 Access-Control-Allow-Origin=*
 Access-Control-Allow-Methods=GET,OPTIONS
 Access-Control-Allow-Headers=*
 Expires=2021-01-21 10:30:40.437227315 +0000 UTC
 Cache-Control=public, max-age=86400, no-transform
 Content-Disposition=attachment; filename=untitled.ts
 }}}

 there is no "Content-Range" in server response, what causes
 http_connect(...) error:
 err = (off == s->off) ? 0 : -1;

 off is not set during headers parsing because "Content-Range" is not in
 server response.
 According to http spec "Content-Range" should not be set when Transfer-
 Encoding=chunked i used.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/9070>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list