Opened 8 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: Bela B 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 Bela B 8 years ago.
ffmpeg -report output
ffmpeg-20160419-213857.log (715.9 KB ) - added by Bela B 8 years ago.
ffmpeg -report #2

Download all attachments as: .zip

Change History (5)

by Bela B, 8 years ago

Attachment: ffmpeg-20160419-170723.log added

ffmpeg -report output

comment:1 by Carl Eugen Hoyos, 8 years ago

Please test current FFmpeg git head.

comment:2 by Bela B, 8 years ago

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

by Bela B, 8 years ago

Attachment: ffmpeg-20160419-213857.log added

ffmpeg -report #2

comment:3 by mkver, 3 years ago

Setting individual_header_trailer to 0 will (probably) achieve what you want.

Note: See TracTickets for help on using tickets.