How to pump a remote thread if the loss of connection?

Use nginx-rtmp-module+ ffmpeg.
rtmp {

 server {

 listen 1935;

 chunk_size 4000;

 application hls {
 live on;
 hls on;
 hls_path /usr/local/nginx/html/hls;
 hls_fragment 5s;

 wait_key on;

}
}
}

I will relay a stream with a m3u8 playlist with nginx
ffmpeg -re -i "http://xxx.ru/index.m3u8" -c:v copy-c:a aac-b:a 128k -ac 2 -strict -2 -stimeout 10000000-loglevel debug-v verbose -f flv rtmp://localhost:1935/hls/home1

20-30 minutes in that one moment, everything freezes. The number of frames is always the same. I do not understand what is the reason
frame=30157 fps=9.7 q=-1.0 size= 532864kB time=06:59:46.80 bitrate= 173.3 kbits/s speed=8.14 x
frame=30157 fps=9.7 q=-1.0 size= 532864kB time=06:59:46.80 bitrate= 173.3 kbits/s speed=8.14 x
frame=30157 fps=9.7 q=-1.0 size= 532864kB time=06:59:46.80 bitrate= 173.3 kbits/s speed=8.13 x
frame=30157 fps=9.7 q=-1.0 size= 532864kB time=06:59:46.80 bitrate= 173.3 kbits/s speed=8.13 x
^Came=30157 fps=9.4 q=-1.0 size= 532864kB time=06:59:46.80 bitrate= 173.3 kbits/s speed=7.82 x
April 19th 20 at 12:28
0 answer

Find more questions by tags FFmpeg