Error: Non-monotonous DTS in output stream 0:0; previous: 4951970, current: 4951659; changing to 4951971. This may result in incorrect timestamps in the output file.
I am using AWS Chime streaming then passing there data stream to FFMPEG and then going live with that data stream using AWS IVS(Interactive video service). I am using ffmpeg for changing aspects of video on live streaming and brightness and contrast. But when we turn off camera and after some time reopen it we facing the above mention error. I have read about concat but we don't have input file actually we are passing data stream is ffmpeg that's why its not working.
Here is my ffmpeg command
ffmpeg=ffmpeg.spawn('ffmpeg', [
'-i', '-' ,
// '-f', 'concat',
// '-segment_time_metadata','1',
// '-use_wallclock_as_timestamps', '1',
'-c:v', 'libx264',
'-b:v', '2567k',
'-maxrate', '6000K',
'-preset', 'ultrafast',
'-profile:v', 'baseline',
'-level', '3.0',
// '-aspect', '9:16',
'-force_key_frames', 'expr:gte(t,n_forced*2)',
'-movflags', 'faststart',
'-fflags', 'nobuffer',
'-tune', 'zerolatency',
'-acodec', 'aac',
'-ab', '160k',
'-ar', '44100',
'-f', 'flv',
'rtmps-url/secret-key-replaced'
])
I have tried this command -use_wallclock_as_timestamps', '1'
but it does nothing to error.