feat(jellyfin): Add hardware-accelerated video decoding support for Jellyfin #2040
+8
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… server by mapping required GPU device nodes (/dev/dri, /dev/vcsm, /dev/vchiq, and /dev/video*) in the Docker Compose configuration.
Context:
The current Docker Compose configuration for the Jellyfin server does not include hardware-accelerated video decoding capabilities. This feature is essential for improving media playback performance, especially for high-definition video streams, by leveraging GPU-based transcoding.
Proposed Changes:
Modify the
docker-compose.yml
to include the following device mappings:/dev/dri
: Enables Direct Rendering Infrastructure (DRI) for GPU access./dev/vcsm
and/dev/vchiq
: Facilitates GPU memory and communication, particularly for Raspberry Pi systems./dev/video10
,/dev/video11
,/dev/video12
: Grants access to video device nodes for hardware-based video encoding/decoding.Benefits:
Steps to Validate:
docker-compose.yml
file with the proposed changes.docker exec <container_name> ls -l /dev/
to verify the container has access to the mapped devices.Notes: