From 18b0840e6ba5aa09cadc9a7afb53f097f9764bbd Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 9 Nov 2022 14:38:54 -0700 Subject: [PATCH] Get ffprobe for multiple inputs --- frigate/http.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index 48fb614f6..9d7eb9166 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -624,12 +624,18 @@ def ffprobe(camera_name): if len(config.ffmpeg.inputs) > 1: # user has multiple streams - ffprobe_cmd = [ - "ffprobe", - "-rtsp_transport", - "tcp", - config.ffmpeg.inputs[0].path, - ] + output = "" + + for input in config.ffmpeg.inputs: + output += f"{input.roles}\n" + ffprobe = ffprobe_stream(input.path) + + if output: + output += f"{ffprobe}\n" + else: + output += "error getting stream\n" + + return output else: # user has single stream ffprobe = ffprobe_stream(config.ffmpeg.inputs[0].path)