[FFmpeg-trac] #2828(avformat:new): HLS segment MPEGTS continuity counter is being incorrectly set to 0 on each segment

FFmpeg trac at avcodec.org
Sat Sep 28 15:08:32 CEST 2013


#2828: HLS segment MPEGTS continuity counter is being incorrectly set to 0 on each
segment
-------------------------------------+------------------------------------
             Reporter:  dlevinson5   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:  hls mpegts   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by dlevinson5):

 => command-line to replicate (as noted in the original report)

 ffmpeg -i <source> -c copy -map 0 -vbsf h264_mp4toannexb -initial_offset
 10 -segment_list_type m3u8 -flags +global_header -f segment
 -segment_list_flags +live -segment_list_type m3u8 -segment_list
 \"{1}.m3u8\" -segment_time 10 -segment_format mpegts <output>_%d.ts

 => version of ffmpeg used => fmpeg version v2.0 /  N-54901-g55db06a /
 Win32/64

 => to validate the segment continuity I used tstools available from the
 link below. I used the tsreport -cnt <pid> <.ts file> which generates a
 continuity counter file. If you run this for each segment created from the
 prior command like you will see that each starts at 0 when it should
 continue from the prior segment which is the same as if you I was to use
 ffmpeg to create a full length mpeg2 file.

 http://code.google.com/p/tstools/

 You could also use ffprobe to dump out the continuity counter for each
 frame but you would need to modify the ffprobe source to output this value
 since I could not find a way to do this via the command-line.

 => This issue was raised by Apple engineers and from what I understand
 ffmpeg does not produce HLS complaint iOS content due to this break in the
 mpeg-ts specification.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2828#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list