mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Update hardware_acceleration.md
Just an update with some of my personal experiences using Frigate with a Raspberry Pi 4 and an Intel Celeron N5100 system.
This commit is contained in:
parent
305323c9e9
commit
8c14cf7dcd
@ -14,23 +14,29 @@ Ensure you increase the allocated RAM for your GPU to at least 128 (raspi-config
|
|||||||
ffmpeg:
|
ffmpeg:
|
||||||
hwaccel_args: preset-rpi-64-h264
|
hwaccel_args: preset-rpi-64-h264
|
||||||
```
|
```
|
||||||
|
##### H.264 and H.265 support
|
||||||
|
**NOTICE**: Raspberry Pi 3 does not support hardware acceleration of H.265. H.265 can use a large amount of compute resources on the Raspberry Pi 3 and 4, in some cases it might be better to use H.264 streams.
|
||||||
|
```yaml
|
||||||
|
ffmpeg:
|
||||||
|
hwaccel_args: -hwaccel drm
|
||||||
|
```
|
||||||
|
|
||||||
### Intel-based CPUs
|
### Intel-based CPUs
|
||||||
|
|
||||||
#### Via VAAPI
|
#### Via VA-API
|
||||||
|
|
||||||
VAAPI supports automatic profile selection so it will work automatically with both H.264 and H.265 streams. VAAPI is recommended for all generations of Intel-based CPUs if QSV does not work.
|
VA-API (Open Source Video Acceleration API) supports automatic profile selection so it will work automatically with both H.264 and H.265 streams. VA-API is recommended for all generations of Intel CPUs. Dedicated Quick Sync Video hardware for hardware-accelerated video encoding and decoding is supported with VA-API where available.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
hwaccel_args: preset-vaapi
|
hwaccel_args: preset-vaapi
|
||||||
```
|
```
|
||||||
|
|
||||||
**NOTICE**: With some of the processors, like the J4125, the default driver `iHD` doesn't seem to work correctly for hardware acceleration. You may need to change the driver to `i965` by adding the following environment variable `LIBVA_DRIVER_NAME=i965` to your docker-compose file or [in the frigate.yml for HA OS users](advanced.md#environment_vars).
|
**NOTICE**: With some of the processors, like the J4125, the default driver `iHD` doesn't seem to work correctly for hardware acceleration. You may need to change the driver to `i965` by adding the following environment variable `LIBVA_DRIVER_NAME=i965` to your docker-compose file or [in the frigate.yml for HA OS users](advanced.md#environment_vars). You can use ```ls /dev/dri``` to check available drivers.
|
||||||
|
|
||||||
#### Via Quicksync (>=10th Generation only)
|
#### Via Quicksync (>=10th Generation only)
|
||||||
|
|
||||||
QSV must be set specifically based on the video encoding of the stream.
|
QSV must be set specifically based on the video encoding of the stream. If you are experiencing any errors please try using VA-API instead.
|
||||||
|
|
||||||
##### H.264 streams
|
##### H.264 streams
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user