Reconnect on lost connection for TCP based protocols
|Reported by:||liquider||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
ffmpeg doesn't reconnect when streaming to a remote server (e.g. rtmp://, tcp://) if the connection is lost.
When running e.g.
$ ffmpeg -i ... -f flv rtmp://...
if the connection drops for some reason (e.g.
ifdown eth0, network cable unplugged), ffmpeg doesn't reestablish the session when the connection becomes available again. In fact nothing happens, the process just hangs.
-loglevel debug doesn't report anything, the
RTMP_SendPacket just stops.
This seems to have been discussed before:
A pair of options like
-disconnect_exit would make sense for TCP-based protocols?