Get ffprobe for multiple inputs

This commit is contained in:
Nick Mowen 2022-11-09 14:38:54 -07:00
parent aadc8a8d3d
commit 18b0840e6b

View File

@ -624,12 +624,18 @@ def ffprobe(camera_name):
if len(config.ffmpeg.inputs) > 1: if len(config.ffmpeg.inputs) > 1:
# user has multiple streams # user has multiple streams
ffprobe_cmd = [ output = ""
"ffprobe",
"-rtsp_transport", for input in config.ffmpeg.inputs:
"tcp", output += f"{input.roles}\n"
config.ffmpeg.inputs[0].path, ffprobe = ffprobe_stream(input.path)
]
if output:
output += f"{ffprobe}\n"
else:
output += "error getting stream\n"
return output
else: else:
# user has single stream # user has single stream
ffprobe = ffprobe_stream(config.ffmpeg.inputs[0].path) ffprobe = ffprobe_stream(config.ffmpeg.inputs[0].path)