mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
improve wording
This commit is contained in:
parent
3777f1d906
commit
8dd05a6cb4
@ -201,7 +201,7 @@ def ffmpeg_presets():
|
||||
"""Return available ffmpeg preset keys for config UI usage."""
|
||||
|
||||
# Whitelist based on documented presets in ffmpeg_presets.md
|
||||
hwaccel_presets = {
|
||||
hwaccel_presets = [
|
||||
"preset-rpi-64-h264",
|
||||
"preset-rpi-64-h265",
|
||||
"preset-vaapi",
|
||||
@ -211,8 +211,8 @@ def ffmpeg_presets():
|
||||
"preset-jetson-h264",
|
||||
"preset-jetson-h265",
|
||||
"preset-rkmpp",
|
||||
}
|
||||
input_presets = {
|
||||
]
|
||||
input_presets = [
|
||||
"preset-http-jpeg-generic",
|
||||
"preset-http-mjpeg-generic",
|
||||
"preset-http-reolink",
|
||||
@ -222,15 +222,15 @@ def ffmpeg_presets():
|
||||
"preset-rtsp-restream-low-latency",
|
||||
"preset-rtsp-udp",
|
||||
"preset-rtsp-blue-iris",
|
||||
}
|
||||
record_output_presets = {
|
||||
]
|
||||
record_output_presets = [
|
||||
"preset-record-generic",
|
||||
"preset-record-generic-audio-copy",
|
||||
"preset-record-generic-audio-aac",
|
||||
"preset-record-mjpeg",
|
||||
"preset-record-jpeg",
|
||||
"preset-record-ubiquiti",
|
||||
}
|
||||
]
|
||||
|
||||
return JSONResponse(
|
||||
content={
|
||||
|
||||
@ -53,23 +53,23 @@ class FfmpegConfig(FrigateBaseModel):
|
||||
)
|
||||
global_args: Union[str, list[str]] = Field(
|
||||
default=FFMPEG_GLOBAL_ARGS_DEFAULT,
|
||||
title="FFmpeg global args",
|
||||
description="Global args passed to FFmpeg processes by default.",
|
||||
title="FFmpeg global arguments",
|
||||
description="Global arguments passed to FFmpeg processes.",
|
||||
)
|
||||
hwaccel_args: Union[str, list[str]] = Field(
|
||||
default="auto",
|
||||
title="Hardware acceleration args",
|
||||
description="Hardware acceleration arguments for FFmpeg (auto or provider-specific).",
|
||||
title="Hardware acceleration arguments",
|
||||
description="Hardware acceleration arguments for FFmpeg. Provider-specific presets are recommended.",
|
||||
)
|
||||
input_args: Union[str, list[str]] = Field(
|
||||
default=FFMPEG_INPUT_ARGS_DEFAULT,
|
||||
title="Input args",
|
||||
description="Input arguments applied to FFmpeg input streams by default.",
|
||||
title="Input arguments",
|
||||
description="Input arguments applied to FFmpeg input streams.",
|
||||
)
|
||||
output_args: FfmpegOutputArgsConfig = Field(
|
||||
default_factory=FfmpegOutputArgsConfig,
|
||||
title="Output args",
|
||||
description="Default output args used for different FFmpeg roles such as detect and record.",
|
||||
title="Output arguments",
|
||||
description="Default output arguments used for different FFmpeg roles such as detect and record.",
|
||||
)
|
||||
retry_interval: float = Field(
|
||||
default=10.0,
|
||||
|
||||
@ -155,20 +155,20 @@
|
||||
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")."
|
||||
},
|
||||
"global_args": {
|
||||
"label": "FFmpeg global args",
|
||||
"description": "Global args passed to FFmpeg processes by default."
|
||||
"label": "FFmpeg global arguments",
|
||||
"description": "Global arguments passed to FFmpeg processes."
|
||||
},
|
||||
"hwaccel_args": {
|
||||
"label": "Hardware acceleration args",
|
||||
"description": "Hardware acceleration arguments for FFmpeg (auto or provider-specific)."
|
||||
"label": "Hardware acceleration arguments",
|
||||
"description": "Hardware acceleration arguments for FFmpeg. Provider-specific presets are recommended."
|
||||
},
|
||||
"input_args": {
|
||||
"label": "Input args",
|
||||
"description": "Input arguments applied to FFmpeg input streams by default."
|
||||
"label": "Input arguments",
|
||||
"description": "Input arguments applied to FFmpeg input streams."
|
||||
},
|
||||
"output_args": {
|
||||
"label": "Output args",
|
||||
"description": "Default output args used for different FFmpeg roles such as detect and record.",
|
||||
"label": "Output arguments",
|
||||
"description": "Default output arguments used for different FFmpeg roles such as detect and record.",
|
||||
"detect": {
|
||||
"label": "Detect output args",
|
||||
"description": "Default output args for detect role streams."
|
||||
|
||||
@ -562,20 +562,20 @@
|
||||
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")."
|
||||
},
|
||||
"global_args": {
|
||||
"label": "FFmpeg global args",
|
||||
"description": "Global args passed to FFmpeg processes by default."
|
||||
"label": "FFmpeg global arguments",
|
||||
"description": "Global arguments passed to FFmpeg processes."
|
||||
},
|
||||
"hwaccel_args": {
|
||||
"label": "Hardware acceleration args",
|
||||
"description": "Hardware acceleration arguments for FFmpeg (auto or provider-specific)."
|
||||
"label": "Hardware acceleration arguments",
|
||||
"description": "Hardware acceleration arguments for FFmpeg. Provider-specific presets are recommended."
|
||||
},
|
||||
"input_args": {
|
||||
"label": "Input args",
|
||||
"description": "Input arguments applied to FFmpeg input streams by default."
|
||||
"label": "Input arguments",
|
||||
"description": "Input arguments applied to FFmpeg input streams."
|
||||
},
|
||||
"output_args": {
|
||||
"label": "Output args",
|
||||
"description": "Default output args used for different FFmpeg roles such as detect and record.",
|
||||
"label": "Output arguments",
|
||||
"description": "Default output arguments used for different FFmpeg roles such as detect and record.",
|
||||
"detect": {
|
||||
"label": "Detect output args",
|
||||
"description": "Default output args for detect role streams."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user