[FFmpeg-user] Using ffmpeg with youtube-dl: Non-monotonous DTS in output stream

Moritz Barsnick barsnick at gmx.net
Sat Dec 15 15:49:18 EET 2018


On Sat, Dec 15, 2018 at 01:45:44 +0000, Tefl Zuren wrote:
> youtube-dl https://www.tntdrama.com/movies/a-christmas-story

Unfortunately, probably for geographical reasons, I can't access that
video.

> [TBS] 4b2d9001ea25d41c9ff0d15c6c9f899af96d333f: Downloading m3u8 information
> [download] Destination: A Christmas Story.mp4

This this is an MPEG-TS m3u8, can you try downloading the raw file?

$ youtube-dl --hls-prefer-native --hls-use-mpegts --no-part --fixup never https://www.tntdrama.com/movies/a-christmas-story

This *should* grab the original MPEG-TS segments and only reassemble
them by concatenation, without remuxing.

(youtube-dl will give the file the suffix .mp4, but it's actually an
MPEG-TS.)

Then see if you can play that file successfully beyond the 20:26 point.

OTOH, remuxing that file with ffmpeg should show the same issues as you
reported. Gyan's suggestion may help.

Moritz


More information about the ffmpeg-user mailing list