Answer the question
In order to leave comments, you need to log in
ffmpeg how not to lose record on unexpected shutdown?
The camera is recorded using ffmpeg: ffmpeg -i "rtsp://ip/video.mp4" output.mp4
If you stop the recording process manually (ctrl + c), then everything is saved normally and opens accordingly.
But if the computer is turned off from the power supply or, for example, the terminal is closed, then the file is not received correctly and does not open.
How can I record a stream from the camera (it is in mjpeg), so that when the light is turned off, the recording file remains alive?
Dividing the file into fragments is not an option, since the last fragment will also be lost.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question