Ticket #1242 (closed defect: fixed)
Remuxing Matroska to MPEG transport stream with -copyts errors out with non monotonically increasing dts
|Reported by:||chucks||Owned by:|
|Version:||git-master||Keywords:||av_interleaved_write_frame mkv copyts|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||no|
I am using http://serviio.org/ as a media server to a media device not supporting Matroska container formats, ffmpeg errors out with "Application provided invalid, non monotonically increasing dts to muxer in stream ...".
After testing differences between the frozen source version that the Serviio project distributes, there appears to be a regression between the working ffmpeg version 0.9 distributed by Serviio as a source tarball built on x86_64, the non-working ffmpeg versions 0.9.1-54 and 0.10.2-54 distributed by http://atrpms.net/ as Fedora 16 x86_64 RPMs, and the git sources from git://source.ffmpeg.org/ffmpeg.git as of commit b21ba20cc83c80fe56192fee3626a8087f37d806 on Sun Apr 22 03:47:53 2012 +0200.
Past experience has shown that omitting the -copyts may cause Matroska remuxed to MPEGts without -copyts may cause video and audio losing synchronization when rendering the resulting files on the client devices.
Attached are ffmpeg report logs and sample media file.
- Keywords av_interleaved_write_frame mkv added; matroska mpegts non-monotonic dts removed