From 93b9d586d26679b9dd1228bf25ec4a4a70a11d35 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 12 Dec 2020 08:46:12 -0600 Subject: [PATCH] handle empty string args --- frigate/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/config.py b/frigate/config.py index 7b8570b83..03d8ac3ea 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -668,12 +668,14 @@ class CameraConfig(): if len(ffmpeg_output_args) == 0: return None - return (['ffmpeg'] + + cmd = (['ffmpeg'] + ffmpeg_input.global_args + ffmpeg_input.hwaccel_args + ffmpeg_input.input_args + ['-i', ffmpeg_input.path] + ffmpeg_output_args) + + return [part for part in cmd if part != ''] def _set_zone_colors(self, zones: Dict[str, ZoneConfig]): # set colors for zones