I am trying to stream my webcams (32+ pcs) with
ffmpeg -hide_banner -y -v verbose -rtsp_transport tcp -fflags +genpts -i "{SOME RTSP URL}" -c:v copy -an -threads auto -f hls -hls_time 3 stream.m3u8>nul 2>{SOME LOGFILE}
to web via HLS. But ffmpeg stops randomly and unexpectedly after 1-3 min of working. Why can this happen?
With 1 cam the same outcome. However, ffplay with many cameras working perfectly.
Here's the log:
size=N/A time=00:14:56.63 bitrate=N/A speed=0.966x
size=N/A time=00:14:56.63 bitrate=N/A speed=0.965x
size=N/A time=00:14:56.63 bitrate=N/A speed=0.964x
size=N/A time=00:14:56.63 bitrate=N/A speed=0.964x
size=N/A time=00:14:56.63 bitrate=N/A speed=0.963x
size=N/A time=00:14:56.63 bitrate=N/A speed=0.963x
size=N/A time=00:14:56.63 bitrate=N/A speed=0.962x
[hls @ 0000021423bf8580] Opening '{SOME PATH}\stream89.ts' for writing
[hls @ 0000021423bf8580] Failed to open file '{SOME PATH}\stream89.ts'
[vost#0:0/copy @ 0000021425ed0400] Error submitting a packet to the muxer: No such file or directory
Last message repeated 1 times
[out#0/hls @ 0000021423bfd880] Error muxing a packet
[out#0/hls @ 0000021423bfd880] Task finished with error code: -2 (No such file or directory)
[out#0/hls @ 0000021423bfd880] Terminating thread with return code -2 (No such file or directory)