diff --git a/frigate/api/app.py b/frigate/api/app.py index 11fba80ab..c4f689320 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -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={ diff --git a/frigate/config/camera/ffmpeg.py b/frigate/config/camera/ffmpeg.py index 8e374576b..507945ab7 100644 --- a/frigate/config/camera/ffmpeg.py +++ b/frigate/config/camera/ffmpeg.py @@ -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, diff --git a/web/public/locales/en/config/cameras.json b/web/public/locales/en/config/cameras.json index 4968327ee..c90d6d99f 100644 --- a/web/public/locales/en/config/cameras.json +++ b/web/public/locales/en/config/cameras.json @@ -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." diff --git a/web/public/locales/en/config/global.json b/web/public/locales/en/config/global.json index 72f2979bf..f0b57165f 100644 --- a/web/public/locales/en/config/global.json +++ b/web/public/locales/en/config/global.json @@ -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."