Emby Hardware Acceleration working on j5005 with tweak


4 posts in this topic Last Reply

Recommended Posts

The instructions here enabled hardware decoding on my j5005 board (UHD Graphics 605/Gemini Lake) but encoding produced garbled output.


I assumed it had something to do with Unraid or the 4.19 kernel but apparently not - it's solved by forcing Emby to use the container's i965_drv_video.so instead of iHD_drv_video.so.


NOTE 1: As of Emby 4.6.* which includes an iHD driver with fixes for Gemini Lake it's no longer necessary to disable iHD, so I've struck through the instructions below.


NOTE 2: if you're getting video-related freezes with unRAID 6.9 as I was - adding a dummy HDMI plug to my headless setup and updating Syslinux configuration as below seems to solve it:

label Unraid OS
  menu default
  kernel /bzimage
  append initrd=/bzroot intel_iommu=on,igfx_off


Here's how to do that:


# Launch an EmbyServer shell:

docker exec -it EmbyServer /bin/sh

# Inside the shell disable iHD_drv_video.so

cd lib/dri/
mv iHD_drv_video.so iHD_drv_video.so.disabled


# Restart EmbyServer


Now both hardware decode and encode should work.


NOTE: You must add intel_iommu=igfx_off to your syslinux.cfg (see this post for details)

NOTE: I'm using the official EmbyServer release in Community Apps

Edited by CS01-HS
Link to post
  • 2 weeks later...

Since this patch is required whenever the container's reinstalled I wrote a quick script for the User Scripts plugin.



# Verify it's running
running=`docker container ls | grep EmbyServer | wc -l`
if [ "${running}" != "0" ]; then
  docker exec EmbyServer /bin/sh -c "mv /lib/dri/iHD_drv_video.so /lib/dri/iHD_drv_video.so.disabled" 2>/dev/null

  if [[ $? -eq 0 ]]; then 
    echo "EmbyServer: Detected iHD driver. Disabling and restarting EmbyServer..."
    docker restart EmbyServer
    echo "Done."

exit 0


Edited by CS01-HS
tweak script
Link to post
  • 4 months later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.