add 'stream_loop' for file source

This commit is contained in:
pavel.muhortov 2022-09-15 09:28:47 +03:00
parent 0ee2adfdf2
commit ac203e5de4

View File

@ -91,7 +91,7 @@ class FFmpeg:
elif 'rtsp' in src:
src = ' '.join(['-rtsp_transport tcp -i', src])
else:
src = ' '.join(['-i', src])
src = ' '.join(['-stream_loop -1 -re -i', src])
list_sources.append(src)
return ' '.join(list_sources)