[FFmpeg-trac] #5988(avformat:new): hls muxer: missing EXT-X-DISCONTINUITY tag after playlist append

FFmpeg trac at avcodec.org
Fri Dec 2 20:37:33 EET 2016

#5988: hls muxer: missing EXT-X-DISCONTINUITY tag after playlist append
             Reporter:  pero         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:  3.2.1
             Keywords:  hls          |               Blocked By:
  DISCONTINUITY                      |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
 I'd like to stream an ip camera picture as a HLS stream. I run ffmpeg in a
 bash script in an infinite loop. When the connection to the camera fails,
 ffmpeg exits and because of the infinite loop ffmpeg tries to reconnect.
 When it successfully reconnect I want it to append new segments to the
 existing m3u8 playlist:

 ffmpeg -rtsp_transport tcp -i "rtsp://x.x.x.x:554" -an -c:v h264_nvenc
 -b:v 900k -r 25 -g 100 -no-scenecut 1 -strict_gop 1 -profile:v main
 -pixel_format yuv420p -preset default -f hls -hls_time 4 -hls_list_size
 2700 -hls_flags +delete_segments -hls_flags +append_list -hls_flags
 +omit_endlist -hls_flags +discont_start vp20.m3u8

 When ffmpeg exits it should omit EXT-X-ENDLIST tag. It's working great
 with the "omit_endlist" hls_flag
 When ffmpeg reconnects successfully it should add EXT-X-DISCONTINUITY tag
 to the end of the playlist, and after that it should append the new
 segments. But EXT-X-DISCONTINUITY tag is not added.
 Because of the missing EXT-X-DISCONTINUITY tag JWplayer and VideoJS has
 problems to play the stream after a ffmpeg reconnect.


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

More information about the FFmpeg-trac mailing list