[FFmpeg-user] Help with error: "Non-monotonous DTS in output stream"

avirex avirex112 at hotmail.com
Mon May 13 18:31:18 CEST 2013


Hello.

I am re-streaming a Live H264/AAC stream using ffmpeg (windows).  After
about 1 hour I'm getting the following error in the console:
 
Non-monotonous DTS in output stream 0:0; previous: 38226576, current:
31954543; 
changing to 38226576. This may result in incorrect timestamps in the output
file.

Here is the command I am using:

ffmpeg.exe -threads 0 -i "$rurl playpath=$rplaypath swfUrl=$rswfurl
pageUrl=$rpageurl live=1 " -map_metadata -1 -loglevel info -f flv -acodec
copy -vcodec copy -r 15 -aspect 16:9 -bufsize 12000k
"rtmp://localhost/$dapp/$dstream"  2> F:\Streams\$dstream.log
 

Any idea what this error message means and how to mitigate?  Here is a bit
more detail from the log, when the error actually starts...

negative cts, previous timestamps might be wrong
DTS 4294905094, next:4418668000 st:0 invalid dropping
PTS 4294905094, next:4418668000 invalid dropping st:0
frame=110408 fps= 25 q=-1.0 size=  326675kB time=01:13:38.89 bitrate=
605.6kbits/s    
frame=110526 fps= 25 q=-1.0 size=  327025kB time=01:13:43.61 bitrate=
605.6kbits/s    
negative cts, previous timestamps might be wrong
[flv @ 0000000004a72a60]
Non-monotonous DTS in output stream 0:0; previous: 4423587, current: -52282;
changing to 4423587. This may result in incorrect timestamps in the output
file.
[flv @ 000000000039f900]
negative cts, previous timestamps might be wrong
[flv @ 0000000004a72a60]
Non-monotonous DTS in output stream 0:0; previous: 4423587, current: -52202;
changing to 4423587. This may result in incorrect timestamps in the output
file.


So you can see at that point the the DTS/PTS status message is completed
replaced by the "Non-monotonous DTS" error.  Also notice the "current" value
is negative and then climbs back to positive value.


Thanks for any insight.



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Help-with-error-Non-monotonous-DTS-in-output-stream-tp4659052.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list