mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Make ffprobe button show dialog with output and option to copy
This commit is contained in:
parent
1337c78ef8
commit
2bf706cf4b
@ -632,21 +632,21 @@ def ffprobe(camera_name):
|
||||
{
|
||||
"input_roles": input.roles,
|
||||
"return_code": ffprobe.returncode,
|
||||
"stderr": ffprobe.stderr,
|
||||
"stdout": ffprobe.stdout,
|
||||
"stderr": ffprobe.stderr.decode().strip(),
|
||||
"stdout": ffprobe.stdout.decode().strip(),
|
||||
}
|
||||
)
|
||||
|
||||
return jsonify(output)
|
||||
else:
|
||||
# user has single stream
|
||||
ffprobe = ffprobe_stream(config.ffmpeg.inputs[0].path)
|
||||
ffprobe: sp.CompletedProcess = ffprobe_stream(config.ffmpeg.inputs[0].path)
|
||||
return jsonify(
|
||||
{
|
||||
"input_roles": config.ffmpeg.inputs[0].roles,
|
||||
"return_code": ffprobe.returncode,
|
||||
"stderr": ffprobe.stderr,
|
||||
"stdout": ffprobe.stdout,
|
||||
"stderr": ffprobe.stderr.decode().strip(),
|
||||
"stdout": ffprobe.stdout.decode().strip(),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user