Plugin that adds transcode profiles which use vaapi for hardware acceleration
For more information on vaapi and hardware acceleration:
- https://jellyfin.org/docs/general/administration/hardware-acceleration.html#enabling-hardware-acceleration
- https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Comparison_tables
Official PeerTube Docker images do not ship with the required libraries for hardware transcoding.
To enable VAAPI hardware acceleration, you must use the custom image provided by this repository.
- Intel Gen 8 and newer → use the ihd image tag
- Intel Gen 7 and older → use the i965 image tag
Replace chocobozzz/peertube:production-trixie with ghcr.io/althafvly/peertube-vaapi:production-trixie-ihd or ghcr.io/althafvly/peertube-vaapi:production-trixie-i965
The container must be added to the host render group.
You need to provide the numeric ID of this group.
You can retrieve it with the following command:
``bash`
grep "$(ls -l /dev/dri/renderD128 | awk '{print($4)}')" /etc/group | cut -d':' -f3
`yaml
# usual peertube configuration
# ...
# add these keys
group_add:
-
devices:
# VAAPI Devices
- /dev/dri:/dev/dri
``