Jump to content

Hardware acceleration fails on Raspberry Pi 4


PalfiZsolt
Go to solution Solved by PalfiZsolt,

Recommended Posts

PalfiZsolt

Hi,

I purchased the Emby Premiere right now to have hardware acceleration encoding on my Raspberry Pi 4 emby server. It seems the activation was successful, because based on the log it already  tries to use the GPU, but the ffmpeg always failes:

00:35:55.101 [h264_v4l2m2m @ 0x3f487460] VIDIOC_STREAMON failed on output context
00:35:55.101 Video encoding failed
00:35:55.116 [libmp3lame @ 0x3f51b710] 3 frames left in the queue on closing
00:35:55.118 Conversion failed!

Then it falls back immediatelly to software encoding. I attached the full log for more details.

Any recommendation how to fix the issue?

Thanks,

Zsolt

ffmpeg-transcode-aeed8e92-07e3-47b2-bc7d-aa35bf9c2cb2_1.txt

Link to comment
Share on other sites

  • Solution
PalfiZsolt

Hi,

Finally I found the root cause: the gpu mem size was too low, and likely it was not enough for higher quality videos. If you face similar problem, just increase the value of the gpu_mem config to higher value in the /boot/config.txt. For me the original 32 MB was not enough, but the 64 MB worked.

Regards,

Zsolt

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...