From ac203e5de42236169e236c04ae405bcc8c8d2b77 Mon Sep 17 00:00:00 2001 From: "pavel.muhortov" Date: Thu, 15 Sep 2022 09:28:47 +0300 Subject: [PATCH] add 'stream_loop' for file source --- ffmpeger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)