mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #7291] [MERGED] Fix h264_v4l2m2m acceleration in Raspberry Pi 4 #11334
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/7291
Author: @aolszowka
Created: 2/9/2022
Status: ✅ Merged
Merged: 2/26/2022
Merged by: @crobibero
Base:
master← Head:aolszowka-EncodingHelperChanges📝 Commits (1)
ea7e5e6Fix h264_v4l2m2m acceleration in Raspberry Pi 4📊 Changes
1 file changed (+5 additions, -5 deletions)
View changed files
📝
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs(+5 -5)📄 Description
Changes
Fixed by replacing pixel format from NV21 to yuv420p.
Applied the suggestions that @nyanmisaka asked for in #7227
Issues
Error when enabling v4l acceleration in Raspberry Pi 4. I utilized the LinuxServer.io Nightly Container to test:
I attempted to play Big Buck Bunny (Creative Commons Licensed Video); specifically bbb_sunflower_1080p_30fps_normal.mp4 available from https://download.blender.org/demo/movies/BBB/
Logs:
Comments
I have tested this change on my Raspberry Pi by performing the following:
Pulled my git repository and switched to my branch
Built the Docker Image
Executed the Container
Configure to use V4L2

Attempted to replay by selecting something that required transcoding. Here's the log:
The performance is still pretty bad, making me wonder if this is even being hardware accelerated at all? Here's a non-hardware accelerated setting:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.