Hi everyone. Running into a wee issue here. I'm trying to use an rtmp stream as an input and then outputting it to twitch. ffmpeg -re -i rtmp://localhost:1935/live/ -f flv -c:v libx264 -c:a aac rtmp://mad01.contribute.live-video.net/app//stream_key (i have more params but this is enough to get the idea across)
On a NodeJS Script, I am constantly sending files to the RTMP stream (whenever the video ends, it reruns the script with another file)
The only issue with this, is that, after the rtmp transfer ends, and it restarts with another file, it causes this script to output Non-monotonous DTS in output stream 0:1; previous: 10006, current: timestamp; changing to 10006
This plays the first video fine, but anything after that just stops working.
I believe this would be a fine fix, if it wasn't for the fact that previous and current were ALWAYS the same value (the length of the video sent to the rtmp stream in ms). This should be the reason as of why it just stops outputting, because the current timestamp isn't incrementing at all. The example I gave was for a 10 second video sent to the rtmp stream. This issue disappears if the first video was like 10 seconds, and the second one is 20, and it reaches the 10s mark on the second video.
I've tried searching quite literally everywhere but couldn't even find someone with the same issue I have. Appreciate any kind of help
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
FFmpeg error: non-monotonous DTS in output stream
By Hakunamatata67 in forum Video ConversionReplies: 1Last Post: 30th Jan 2022, 07:07 -
FFMPEG Save video from rtsp stream to hls stream
By Wisperrio in forum Video Streaming DownloadingReplies: 2Last Post: 26th Aug 2021, 22:38 -
ffmpeg throwing “Non-monotonous DTS in output stream”
By cwinthrop in forum Video ConversionReplies: 15Last Post: 27th Jun 2019, 11:25 -
ffmpeg “Non-monotonous DTS in output stream” concatenating .ts files
By Wayneos in forum Video ConversionReplies: 21Last Post: 19th Jan 2019, 15:56 -
FFMpeg "non-monotonous DTS in output stream" error
By CursedLemon in forum Video ConversionReplies: 4Last Post: 26th Aug 2018, 09:56