diff --git a/ffmpeger.py b/ffmpeger.py index 1cd8f93..65e1be4 100644 --- a/ffmpeger.py +++ b/ffmpeger.py @@ -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)