[FFmpeg-devel] FIX: HLS Discontinuity / Non-Monotonous DTS

Joe Koberg joe at koberg.us
Fri Mar 16 17:07:53 EET 2018


On Fri, Mar 16, 2018 at 10:48 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>
> 2018-03-16 14:58 GMT+01:00, Joe Koberg <joe at koberg.us>:
>
> > How to reproduce:
> >
> >   ffmpeg -i https://s3.amazonaws.com/playon-test-videos/discont_
> > test_new/discont_test.m3u8 -c copy -y output.mp4
>
> Is the issue only reproducible if you use hls input or is it also
> reproducible if you first concatenate the ts files and use the
> complete file as input?
>

Very interesting, this case seems to work perfectly with ffmpeg 3.4.2.
In previous versions, I don't think it did.

Any hints on getting that to apply to the HLS demuxer?


test concat file:

file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file '2befd3aa94_20180313T082811_000016.ts'
file '2befd3aa94_20180313T082811_000017.ts'
file '2befd3aa94_20180313T082811_000018.ts'
file '2befd3aa94_20180313T082811_000019.ts'
file '2befd3aa94_20180313T082811_000020.ts'
file '2befd3aa94_20180313T082811_000021.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file '2befd3aa94_20180313T082811_000022.ts'
file '2befd3aa94_20180313T082811_000023.ts'
file '2befd3aa94_20180313T082811_000024.ts'
file '2befd3aa94_20180313T082811_000025.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'
file 'b1dc7f03bcce8b554f5f840cf5018b0e_20171009T151157Z_000000.ts'



with command:
  $ ffmpeg -f concat -i test.concat -c copy -y outputconcat.mp4

----

Joe Koberg
jkoberg at gmail.com


More information about the ffmpeg-devel mailing list