mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Add ability to select GPU for ffmpeg (#20455)
* Add ability to set selected GPU for ffmpeg * Cleanup * Cleanup * Improve handling
This commit is contained in:
@@ -235,6 +235,7 @@ class CameraConfig(FrigateBaseModel):
|
||||
self.detect.fps,
|
||||
self.detect.width,
|
||||
self.detect.height,
|
||||
self.ffmpeg.gpu,
|
||||
)
|
||||
or ffmpeg_input.hwaccel_args
|
||||
or parse_preset_hardware_acceleration_decode(
|
||||
@@ -242,6 +243,7 @@ class CameraConfig(FrigateBaseModel):
|
||||
self.detect.fps,
|
||||
self.detect.width,
|
||||
self.detect.height,
|
||||
self.ffmpeg.gpu,
|
||||
)
|
||||
or camera_arg
|
||||
or []
|
||||
|
||||
Reference in New Issue
Block a user