mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Get ffprobe for multiple inputs
This commit is contained in:
parent
aadc8a8d3d
commit
18b0840e6b
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user