[FFmpeg-user] Problematic RTSP re-streaming

George Andguladze gandguladze at hotmail.com
Fri Aug 24 22:46:48 EEST 2018


> Please test "-af asetpts=PTS/60", this improves the situation here, 
> you can probably test with actual people talking;-)

Tested this for 2 hours. The ffmpeg session lasts longer (35-45 mins) , there are still "Non-monotonous DTS in output stream" warnings and eventually the session exits with no error message. Also, the audio is about 10 seconds ahead of the video when people are talking. (this was not the case when changing the container format to avi)

Last several lines of the output:

[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240002, current: 964148; changing to 27240003. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240003, current: 976388; changing to 27240004. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240004, current: 988628; changing to 27240005. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240005, current: 1000868; changing to 27240006. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240006, current: 1013344; changing to 27240007. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240007, current: 1025584; changing to 27240008. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240008, current: 1037824; changing to 27240009. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240009, current: 1050064; changing to 27240010. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Non-monotonous DTS in output stream 0:1; previous: 27240010, current: 1062304; changing to 27240011. This may result in incorrect timestamps in the output file.
[hls @ 00000212a239db00] Opening 'D:\wamp\www\stream\stream1C9.ts' for writing
[hls @ 00000212a239db00] Opening 'D:\wamp\www\stream\stream1C.m3u8.tmp' for writing
    Last message repeated 1 times
frame=89694 fps= 20 q=-1.0 Lsize=N/A time=01:14:45.08 bitrate=N/A speed=   1x
video:1098228kB audio:23428kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[aac @ 00000212a23aaa00] Qavg: 65399.098


George A.


More information about the ffmpeg-user mailing list