[FFmpeg-user] continuous streaming even if streaming source isn't available
Lars Uhlmann
usenet at lars-uhlmann.de
Wed May 24 19:03:00 EEST 2017
I use the following command to save a camera stream to disk:
$ ffmpeg -t 3600 -vcodec copy -acodec copy \
-i rtsp://<IP:Port>/live.sdp \
current.mp4
Now if the network connection is lost or the camera is unavailable,
»ffmeg« stops recording and exits with an error.
Is there a away, to let »ffmeg« continuously try to reconnect to the stream
source and only end if either the record duration is reached or a kill signal
received?
thanks
Lars
More information about the ffmpeg-user
mailing list