mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +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 = (
|
cmd = (
|
||||||
[self.ffmpeg.ffmpeg_path]
|
[self.ffmpeg.ffmpeg_path]
|
||||||
+ global_args
|
+ global_args
|
||||||
+ hwaccel_args
|
+ (hwaccel_args if "detect" in ffmpeg_input.roles else [])
|
||||||
+ input_args
|
+ input_args
|
||||||
+ ["-i", escape_special_characters(ffmpeg_input.path)]
|
+ ["-i", escape_special_characters(ffmpeg_input.path)]
|
||||||
+ ffmpeg_output_args
|
+ ffmpeg_output_args
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user