mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Get ffprobe for multiple inputs
This commit is contained in:
parent
9b2a0faa03
commit
3077ff07fc
@ -619,12 +619,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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user