improve wording

This commit is contained in:
Josh Hawkins 2026-02-04 10:41:43 -06:00
parent 3777f1d906
commit 8dd05a6cb4
4 changed files with 30 additions and 30 deletions

View File

@ -201,7 +201,7 @@ def ffmpeg_presets():
"""Return available ffmpeg preset keys for config UI usage.""" """Return available ffmpeg preset keys for config UI usage."""
# Whitelist based on documented presets in ffmpeg_presets.md # Whitelist based on documented presets in ffmpeg_presets.md
hwaccel_presets = { hwaccel_presets = [
"preset-rpi-64-h264", "preset-rpi-64-h264",
"preset-rpi-64-h265", "preset-rpi-64-h265",
"preset-vaapi", "preset-vaapi",
@ -211,8 +211,8 @@ def ffmpeg_presets():
"preset-jetson-h264", "preset-jetson-h264",
"preset-jetson-h265", "preset-jetson-h265",
"preset-rkmpp", "preset-rkmpp",
} ]
input_presets = { input_presets = [
"preset-http-jpeg-generic", "preset-http-jpeg-generic",
"preset-http-mjpeg-generic", "preset-http-mjpeg-generic",
"preset-http-reolink", "preset-http-reolink",
@ -222,15 +222,15 @@ def ffmpeg_presets():
"preset-rtsp-restream-low-latency", "preset-rtsp-restream-low-latency",
"preset-rtsp-udp", "preset-rtsp-udp",
"preset-rtsp-blue-iris", "preset-rtsp-blue-iris",
} ]
record_output_presets = { record_output_presets = [
"preset-record-generic", "preset-record-generic",
"preset-record-generic-audio-copy", "preset-record-generic-audio-copy",
"preset-record-generic-audio-aac", "preset-record-generic-audio-aac",
"preset-record-mjpeg", "preset-record-mjpeg",
"preset-record-jpeg", "preset-record-jpeg",
"preset-record-ubiquiti", "preset-record-ubiquiti",
} ]
return JSONResponse( return JSONResponse(
content={ content={

View File

@ -53,23 +53,23 @@ class FfmpegConfig(FrigateBaseModel):
) )
global_args: Union[str, list[str]] = Field( global_args: Union[str, list[str]] = Field(
default=FFMPEG_GLOBAL_ARGS_DEFAULT, default=FFMPEG_GLOBAL_ARGS_DEFAULT,
title="FFmpeg global args", title="FFmpeg global arguments",
description="Global args passed to FFmpeg processes by default.", description="Global arguments passed to FFmpeg processes.",
) )
hwaccel_args: Union[str, list[str]] = Field( hwaccel_args: Union[str, list[str]] = Field(
default="auto", default="auto",
title="Hardware acceleration args", title="Hardware acceleration arguments",
description="Hardware acceleration arguments for FFmpeg (auto or provider-specific).", description="Hardware acceleration arguments for FFmpeg. Provider-specific presets are recommended.",
) )
input_args: Union[str, list[str]] = Field( input_args: Union[str, list[str]] = Field(
default=FFMPEG_INPUT_ARGS_DEFAULT, default=FFMPEG_INPUT_ARGS_DEFAULT,
title="Input args", title="Input arguments",
description="Input arguments applied to FFmpeg input streams by default.", description="Input arguments applied to FFmpeg input streams.",
) )
output_args: FfmpegOutputArgsConfig = Field( output_args: FfmpegOutputArgsConfig = Field(
default_factory=FfmpegOutputArgsConfig, default_factory=FfmpegOutputArgsConfig,
title="Output args", title="Output arguments",
description="Default output args used for different FFmpeg roles such as detect and record.", description="Default output arguments used for different FFmpeg roles such as detect and record.",
) )
retry_interval: float = Field( retry_interval: float = Field(
default=10.0, default=10.0,

View File

@ -155,20 +155,20 @@
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")." "description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")."
}, },
"global_args": { "global_args": {
"label": "FFmpeg global args", "label": "FFmpeg global arguments",
"description": "Global args passed to FFmpeg processes by default." "description": "Global arguments passed to FFmpeg processes."
}, },
"hwaccel_args": { "hwaccel_args": {
"label": "Hardware acceleration args", "label": "Hardware acceleration arguments",
"description": "Hardware acceleration arguments for FFmpeg (auto or provider-specific)." "description": "Hardware acceleration arguments for FFmpeg. Provider-specific presets are recommended."
}, },
"input_args": { "input_args": {
"label": "Input args", "label": "Input arguments",
"description": "Input arguments applied to FFmpeg input streams by default." "description": "Input arguments applied to FFmpeg input streams."
}, },
"output_args": { "output_args": {
"label": "Output args", "label": "Output arguments",
"description": "Default output args used for different FFmpeg roles such as detect and record.", "description": "Default output arguments used for different FFmpeg roles such as detect and record.",
"detect": { "detect": {
"label": "Detect output args", "label": "Detect output args",
"description": "Default output args for detect role streams." "description": "Default output args for detect role streams."

View File

@ -562,20 +562,20 @@
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")." "description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")."
}, },
"global_args": { "global_args": {
"label": "FFmpeg global args", "label": "FFmpeg global arguments",
"description": "Global args passed to FFmpeg processes by default." "description": "Global arguments passed to FFmpeg processes."
}, },
"hwaccel_args": { "hwaccel_args": {
"label": "Hardware acceleration args", "label": "Hardware acceleration arguments",
"description": "Hardware acceleration arguments for FFmpeg (auto or provider-specific)." "description": "Hardware acceleration arguments for FFmpeg. Provider-specific presets are recommended."
}, },
"input_args": { "input_args": {
"label": "Input args", "label": "Input arguments",
"description": "Input arguments applied to FFmpeg input streams by default." "description": "Input arguments applied to FFmpeg input streams."
}, },
"output_args": { "output_args": {
"label": "Output args", "label": "Output arguments",
"description": "Default output args used for different FFmpeg roles such as detect and record.", "description": "Default output arguments used for different FFmpeg roles such as detect and record.",
"detect": { "detect": {
"label": "Detect output args", "label": "Detect output args",
"description": "Default output args for detect role streams." "description": "Default output args for detect role streams."