[FFmpeg-trac] #6908(ffmpeg:new): Concatenating mpegts files into stream longer than timestamp wrap can produce non-monotonic timestamps
FFmpeg
trac at avcodec.org
Mon Dec 11 13:04:09 EET 2017
#6908: Concatenating mpegts files into stream longer than timestamp wrap can
produce non-monotonic timestamps
-------------------------------------+-------------------------------------
Reporter: calwilson | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: git-
Keywords: concatdec | master
mpegts | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When concatenating multiple mpeg transport stream assets into a continuous
mpeg transport stream, ffmpeg reports errors of non-monotonic timestamps.
These timestamps are then changed to old_timestamp + 1 which produces an
invalid stream.
As far as I can tell it seems to be some interplay between the concat
demuxer and the timestamp wrapping logic. If the timestamp is within 60s
before the the max timestamp at a file inpoint, it triggers the subtract
offset timestamp wrap logic which produces negative timestamps.
I include the asset and playlist, and the ffmpeg logs.
How to reproduce:
{{{
% ffmpeg -report -nostdin -hide_banner -loglevel trace -nostats -probesize
1000000 -analyzeduration 5000000 -max_delay 0 -fflags +genpts -async 1 -f
concat -y -i tears_playlist.ffmpeg -map 0 -c copy -copy_unknown -f mpegts
-muxrate 1 -pcr_period 30 -pes_payload_size 50 -metadata
service_provider=test -metadata service_name=test
-mpegts_original_network_id 31303 -mpegts_transport_stream_id 1
-mpegts_flags +system_b -tables_version 0 /dev/null
ffmpeg version git master
built on Ubuntu 16.04 LTS 64bit
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6908>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list