[FFmpeg-trac] #7461(ffmpeg:new): Application provided invalid, non monotonically increasing dts to muxer
FFmpeg
trac at avcodec.org
Sun Sep 30 03:24:53 EEST 2018
#7461: Application provided invalid, non monotonically increasing dts to muxer
-------------------------------------+-------------------------------------
Reporter: Anuskuss | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version:
Keywords: non, | Blocked By:
monotonically, increasing, dts, | Reproduced by developer: 0
to, muxer |
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
I'm trying to stretch an AC3 audio file to match the frame rate of a video
file but it gives me the error mentioned in the title:
{{{
$ ffmpeg -i input.ac3 -af "atempo=0.95904" output.ac3
[ac3 @ 0000020faaca1b40] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 58808576 >= 744704
}}}
I tried to find the broken part...
{{{
ffmpeg -t 1175.072 -i input.ac3 -af "atempo=0.95904" part1.ac3
ffmpeg -ss 1175.264 -i input.ac3 -af "atempo=0.95904" part2.ac3
}}}
...and work around it (since it's silence anyway)
{{{
ffmpeg -i input.ac3 -f lavfi -i "anullsrc=r=48000:cl=5.1" -filter_complex
"[0:a]atrim=end=1175.072[P1];
[0:a]atrim=start=1175.264,asetpts=PTS-STARTPTS[P2];
[1:a]atrim=duration=0.192[S];
[P1][S][P2]concat=n=3:v=0:a=1[C];
[C]atempo=0.95904[F]"
-map "[F]" output.ac3
}}}
Still errors. I tried a number of things like `-fflags +igndts` or
encoding it twice (first without arguments and then with `-af atempo`) but
I'm trying to accomplish that with only one encoding if possible.
{{{
$ ffmpeg -version
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.1 (GCC) 20180722
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7461>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list