Opened 3 years ago

Last modified 3 years ago

#5452 new defect

ssegment muxer reset continuity counters on each segment regardless of reset_timestamps option value

Reported by: doubleb Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: segment, ssegment
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
ssegment muxer reset first continuity counters to zero in each segment regardless of reset_timestamps option value, but it should not do this. The continuity counters should be counted seamlessly in case of reset_timestamps value being 0.

How to reproduce:

% ffmpeg -f lavfi -i testsrc -t 120 -f ssegment -segment_format mpegts -reset_timestamps 0  -segment_list out.csv sout%d.ts

Then inspect sout1.ts and sout2.ts with tsreport:
% tsreport -cnt 256 sout1.ts

The last line of output is:
CC: first: 0, last: 11; duplicate packets: 0

(or see the content of continuity_counter.txt)

tsreport -cnt 256 sout2.ts

The last line of output is:
CC: first: 0, last: 15; duplicate packets: 0
(or see the content of continuity_counter.txt)

But it shoud be something like:
CC: first: 12, last: ...

the full output of commandline of "ffmpeg -report ..." is enclosed as attachment.

Attachments (2)

ffmpeg-20160419-170723.log (548.1 KB) - added by doubleb 3 years ago.
ffmpeg -report output
ffmpeg-20160419-213857.log (715.9 KB) - added by doubleb 3 years ago.
ffmpeg -report #2

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by doubleb

ffmpeg -report output

comment:1 Changed 3 years ago by cehoyos

Please test current FFmpeg git head.

comment:2 Changed 3 years ago by doubleb

I have done. The result is as bad as earlier. The new full command line output is enclosed as attachment.

Changed 3 years ago by doubleb

ffmpeg -report #2

Note: See TracTickets for help on using tickets.