[FFmpeg-trac] #6733(avformat:new): libavformat/http: no duration and totally wrong offset for hls videostream

FFmpeg trac at avcodec.org
Tue Jan 2 00:36:02 EET 2018


#6733: libavformat/http: no duration and totally wrong offset for hls videostream
-------------------------------------+-------------------------------------
             Reporter:  CoRoNe       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  http hls     |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by tmm1):

 It appears like this server does not react well to Range requests,
 returning conflicting sizes as part of the 206 response:

 < Content-Length: 11069
 < Content-Range: bytes 0-10588/10589

 The size of the data returned is 11069, even though the range says
 otherwise.

 The hls demuxer sets seekable=0 on outgoing requests already to avoid
 problems like this. However, this option does not get set on the initial
 m3u8 url which is opened before the hls demuxer is invoked.

 A workaround is to pass "-seekable 1" or "-seekable 0" yourself, which
 will endure the entire playlist is downloaded and it doesn't get mistaken
 for a live playlist (which is missing an ENDLIST tag).

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


More information about the FFmpeg-trac mailing list