[FFmpeg-trac] #4392(avformat:new): Reconnect on lost connection for TCP based protocols

FFmpeg trac at avcodec.org
Wed Mar 25 22:18:35 CET 2015

#4392: Reconnect on lost connection for TCP based protocols
             Reporter:  liquider  |                     Type:  enhancement
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  unspecified
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
 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

 This seems to have been discussed before:

 A pair of options like `-reconnect` and `-disconnect_exit` would make
 sense for TCP-based protocols?

Ticket URL: <https://trac.ffmpeg.org/ticket/4392>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list