mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Only include hwaccel args if detect is being used
This commit is contained in:
parent
088a0fb4a5
commit
65f8b83803
@ -1225,7 +1225,7 @@ class CameraConfig(FrigateBaseModel):
|
||||
cmd = (
|
||||
[self.ffmpeg.ffmpeg_path]
|
||||
+ global_args
|
||||
+ hwaccel_args
|
||||
+ (hwaccel_args if "detect" in ffmpeg_input.roles else [])
|
||||
+ input_args
|
||||
+ ["-i", escape_special_characters(ffmpeg_input.path)]
|
||||
+ ffmpeg_output_args
|
||||
|
||||
Loading…
Reference in New Issue
Block a user