Tell the ffmpeg restart script when the Internet is broken, here’s the launch line:
ffmpeg -analyzeduration 0 -i входной поток -c:v libx264 -deinterlace -timecode 01:02:03:04 -s 500x300 -r 25 -vb 220k -profile:v baseline -preset:v superfast -tune zerolatency -c:a libmp3lame -b:a 11k -ac 2 -ar 11025 -f flv "rtmp://выходной поток flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) authmod=llnw live=1 playpath="
If a short-term Internet breakdown occurs or there are some problems with the network, ffmpeg hangs, and when you turn on the Internet, it still hangs and does not resume coding, but you need to restart it and continue its work