[FFmpeg-devel] [PATCH] fftools/ffmpeg: Disable copy_ts on timestamp wraparound

Aleksey Skripka caspy at undev.ru
Thu May 9 15:40:17 EEST 2019


Greetings!

> On 3 May 2019, at 18:36, Michael Niedermayer <michael at niedermayer.cc> wrote:
> 
> This allows handling more than 26.5h of mpeg* input
> 
> Fixes: Ticket 7876
> 

not sure how this correlated, but facing my '26.5 hours problem' i found next:

running on plain ts-file is ok:
./ffmpeg -copyts -i 27hours.ts -c copy -f null -

but if this ts-file is wrapped in m3u8, any of this commands:
./ffmpeg  -i 27hours.m3u8 -c copy -f null -
./ffmpeg -copyts -i 27hours.m3u8 -c copy -f null -

fails with:
[mpegts @ 0x2cf6680] DTS 788 < 8589931780 out of order
[hls @ 0x2cf3400] DTS 788 < 8589931780 out of order
[null @ 0x2e28980] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8589805780 >= -125212
[null @ 0x2e28980] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8589805780 >= -121612


$ cat 27hours.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:97200
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF: 97200,
27hours.ts
#EXT-X-ENDLIST


ps: ffmpeg = git-master + patch from this mail
-- 
Aleksey Skripka




More information about the ffmpeg-devel mailing list