Jump to content
Sign in to follow this  
zeroidea

QNAP + docker + iGPU hwaccel

Recommended Posts

zeroidea

Just migrated to a new QNAP (TVS-951X) and there was an issue getting vaapi working in my emby docker container.

 

In QTS 4.3.6.0875 there are no default system groups (like video) and the /dev/dri folder is owned by admin:administrators with restrictive permissions, which are reset upon reboot.

 

It was necessary to create an autorun.sh script to set things up for docker use.

#!/bin/bash
chown admin:video /dev/dri
chmod 775 /dev/dri
chown admin:video /dev/dri/*
chmod 660 /dev/dri/*

The docker needs to run as a user assigned to the video group (or have the video group's GID listed in GIDLIST), run in privileged mode, and have /dev/dri passed through as a device.

 

This enables vaapi for me - qsv's a no-go.

 

Edit: Something like this is (probably only) needed when running the docker as a non-root user. 

Edited by zeroidea

Share this post


Link to post
Share on other sites
Luke

Hi @@zeroidea that is great, thanks for the info !

Share this post


Link to post
Share on other sites
lowfi

up this topic!

 

Did you create the videogroup in the gui? groupadd isnt available on qnap in cli...

Share this post


Link to post
Share on other sites
zeroidea

up this topic!

 

Did you create the videogroup in the gui? groupadd isnt available on qnap in cli...

 

Try 'addgroup'

Share this post


Link to post
Share on other sites
lowfi

I didnt work for me when using 775. Im on beta FW 4.4.1.

 

Which version are you on?

Share this post


Link to post
Share on other sites
Luke

I didnt work for me when using 775. Im on beta FW 4.4.1.

 

Which version are you on?

 

What does "didn't work" mean? What happened?

Share this post


Link to post
Share on other sites
lowfi

HW accel didnt work for me using 775. Tried it using ipad, to stream 1080p on the lfy transcoding tot 720p 3mbs. When i use 777 it works.

 

Im using a qnap with celeron j1900 cpu.

Share this post


Link to post
Share on other sites
Luke

Thanks for the feedback.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...