Jump to content


Photo

QNAP + docker + iGPU hwaccel

docker hardwareacceleration vaapi

  • Please log in to reply
7 replies to this topic

#1 zeroidea OFFLINE  

zeroidea

    Member

  • Members
  • 10 posts
  • Local time: 12:19 AM

Posted 08 March 2019 - 11:32 PM

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, 18 March 2019 - 12:43 AM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138272 posts
  • Local time: 03:19 AM

Posted 09 March 2019 - 12:14 AM

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



#3 lowfi OFFLINE  

lowfi

    Member

  • Members
  • 20 posts
  • Local time: 09:19 AM
  • LocationThe Netherlands

Posted 11 August 2019 - 10:18 AM

up this topic!

 

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



#4 zeroidea OFFLINE  

zeroidea

    Member

  • Members
  • 10 posts
  • Local time: 12:19 AM

Posted 11 August 2019 - 02:11 PM

up this topic!

 

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

 

Try 'addgroup'



#5 lowfi OFFLINE  

lowfi

    Member

  • Members
  • 20 posts
  • Local time: 09:19 AM
  • LocationThe Netherlands

Posted 19 August 2019 - 05:01 PM

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

 

Which version are you on?



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138272 posts
  • Local time: 03:19 AM

Posted 19 August 2019 - 05:53 PM

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?



#7 lowfi OFFLINE  

lowfi

    Member

  • Members
  • 20 posts
  • Local time: 09:19 AM
  • LocationThe Netherlands

Posted 22 August 2019 - 06:59 AM

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.



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138272 posts
  • Local time: 03:19 AM

Posted 22 August 2019 - 12:45 PM

Thanks for the feedback.







Also tagged with one or more of these keywords: docker, hardwareacceleration, vaapi

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users