-reconnect
Reconnect automatically when disconnected before EOF is hit.
-reconnect_at_eof
If set then eof is treated like an error and causes reconnection, this is useful for live / endless streams.
-reconnect_on_network_error
Reconnect automatically in case of TCP/TLS errors during connect.
-reconnect_on_http_error
A comma separated list of HTTP status codes to reconnect on. The list can include specific status codes (e.g. ’503’) or the strings ’4xx’ / ’5xx’.
-reconnect_streamed
If set then even streamed/non seekable streams will be reconnected on errors.
-reconnect_delay_max
Set the maximum delay in seconds after which to give up reconnecting.
-reconnect_max_retries
Set the maximum number of times to retry a connection. Default unset.
-reconnect_delay_total_max
Set the maximum total delay in seconds after which to give up reconnect
https://ffmpeg.org/ffmpeg-protocols.html