[FFmpeg-user] rw_timeout for rtsp?
Antonio SJ Musumeci
trapexit at spawn.link
Thu Feb 6 04:16:57 EET 2025
Hello. I've got a number of cameras which offer RTSP and RTMP streams. When using RTMP I'm able to have ffmpeg exit if the stream dies for some reason such as the camera rebooting by setting -rw_timeout to some reasonable value. Otherwise it just sits there forever and I wasn't able to find any other option to get it to reconnect. For RTSP however it doesn't recognize -rw_timeout and similarly when the camera reboots ffmpeg just sits there forever not exiting or reconnecting.
Am I missing a better option to force reconnect or exit in this situation? '-reconnect*' settings seemed to make no difference.
Thanks
More information about the ffmpeg-user
mailing list