Answer the question
In order to leave comments, you need to log in
How to reconnect in ffmpeg and continue recording?
Good afternoon, the task is to record video from a camera from flv to mp4, sometimes, as I understand it, there is some kind of internet microlag, and ffmpeg freezes and does not output anything, perhaps because of timeout -1
I don’t know how to solve the problem, so that he tries to restore the connection and continues recording, and does not rewrite the file again.
Tell me please
Answer the question
In order to leave comments, you need to log in
The mp4 container is not designed to record streaming video, it will always crash if the streaming video data network fails.
Change the target container, in your case mp4, for example to mkv, and after the end of the recording, convert to mp4.
mp4 - in your case - this is exactly the container, and not the codec that encodes the video data - these concepts should be distinguished.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question