Jump to content

Recommended Posts

Posted (edited)

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
  • 5 months later...
Posted

up this topic!

 

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

Posted

up this topic!

 

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

 

Try 'addgroup'

  • 2 weeks later...
Posted

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

 

Which version are you on?

Posted

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?

Posted

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.

Posted

Thanks for the feedback.

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...