Hardware transcoding on Qnap TVS-672XT

Yea, Idk how well the UHD 630 does 1080>720 transcodes, but you really should investigate it, as it does 4K>1080 about 50% better than the quadro. No sense in adding the card if it will bring performance down.

Im all to familiar with family and friends resorting to the default 720p, so I have turned transcoding off entirely. That forces them to adjust the settings to max. I have fast enough internet anyways. I would like to have the options this Qnap provides though.

Well Im in Norway so buying it locally will probably be cheaper

haha yeah probably shipping would kill the deal. I just bought a EDL cable from Poland and shipping was almost as much as the cable :dizzy_face:
The TVS-672N is definitely a very nice NAS. I have 6x12TB in RAID6, so 48 usable TB. I also added two 250GB Samsung 970 Evo+ in RAID0 as cache drive and upgraded the RAM to 32GB. It is very good and has worked well. If you go with the XT model, you will get 10Gb NIC and maybe some other upgrades, I can’t remember what since I researched last year. The N model has 5Gb NIC onboard, plus two 1Gb NICs. I only have 1GB switches, but if I ever upgraded that would be nice to have available.

Yea. It has Thunderbolt 3 aswell which will be great with the new imac Im buying. And i love that the cpu is socketed so I can swap it for an i7 should I need more juice.

Hi Turbotastic , any chance on doing some testing ?

@fuuss yeah i did test with it. Sorry, forgot to report back.
I loaded Jumanji: Welcome to the Jungle 4k onto my qnap. I then updated my plex settings on my tv app to force 720p across my local LAN. I selected Jumanji and selected the 4k title as opposed to the 1080p, and started playing. I had my plex dashboard up on my computer while playing, and also in another window I had the hardware of the qnap open to view the usage of the gpu. The gpu remained at 0% usage, while the cpu usage in the plex dashboard shot up to 20%.

So even though I have plex pass and use hardware when available, plus the p2000 is now in QTS mode, it still does not perform the transcoding. At least as of this point. Bummer :disappointed:

Yeah Same like me .

So does anybody know where the problem come from , Config seems right driver seems right , it looks like Plex still use the wrong card .

If I may augment?

  1. The start script, plex.sh, looks for:
    a. The card to be available in the gpu_hal list
    b. QNAP’s drivers to be loaded and listed as available by the gpu_hal app.
    c. The card to be in QTS mode

  2. If those three requirements are not met, I will not add the libraries to the PMS startup info.

  3. Further, if the drivers are not Nvidia 418.30 or higher (QNAP bumped them a lot higher at my request) then Plex won’t be able to talk to it.

DEBUG log files, capturing the start of a playback session, will show us what is found / not found.

1 Like

Hi ChuckPa

Thx for the reply , let me try to get you the needed informations

  1. a)

gpuhal_app -l
0:Intel Corporation:8th Gen Core Processor Gaussian Mixture Model:internal:2
1:NVIDIA Corporation:GP106GL [Quadro P2000]:external:7

So cards seems do be listed

b)

gpuhal_app -s 1
active_status=2,real_status=2,driverqpkg=NVIDIA_GPU_DRV**,driver_installed=1**,in_used=none,transcode=1,display=1,pcie_slot=1,pcie_vp=1

Looks like drivers are ok no ?

c)

So Point 1 should be good no ?

so point 2 should be fine too

Ok so here are the debug logs
Hope you can help in some way Thank you for your time in advance
Plex Media Server.zip (104.9 KB)

I wonder if editing the Preferences.xml :

HardwareDevicePath="/dev/dri/card1"

or whatever the equivilant on QNAP is.

Hi yes indeed this seems to work
I added HardwareDevicePath="/dev/dri/renderD129"

1 Like

Thank you very much. This additional config in the Preferences.xml from Plex was the resolution for my problem on an QNAP TVS-872XT with an PNY P2000 which was not used for transcoding.

@ChuckPa Is this a bug or a common workaround for this kind of configuration? Can you fix this in one of the next releases? And is this config causing any side effects/problems?

1 Like

Hi @fuuss - how did you fix the problem? Sorry, I don’t know my way around qnap very well. If you could show me how you fixed yours I would greatly appreciate it.
Edit: I ssh’d into the qnap with putty, but am not seeing the directory I am thinking I should see. I am logged in with my admin credentials, and in my share i see the CACHEDEV1_DATA. But from what I am reading I should see a .qpkg folder in there followed by PlexMediaServer. the only directories I see are Browser Station, homes, lost+found, Media, Public, and Web. I went back to the qnap and verified that these directories are what I can see using the file station. So I must be doing something wrong somewhere.

If I need to guess you just typed ls in that directory without the option flags -la?
You need to type “ls -la” to see all directories.

@ChuckPa: After last Plex update my HW Transcoding is again not working. So I do need to add again this parameter in the mentioned configuration file from @pl_5309

Once the manual options are put in your Preferences.xml, you don’t need to do anything again unless you perform a cold reinstallation.

If you’re using the PlexData share,

PlexData/Plex Media Server/Preferences.xml (Open in the QNAP text editor) will show you the file’s contents.

You are correct @Deejay2k1 thank you for putting me on the right path. I added the line that @fuuss indicated to the preferences.xml and I am seeing GPU activity now when plex is transcoding. There is very little memory usage, and the GPU only goes to a few percentage every now and again, but it is definitely being used. Right now I have a user transcoding a 1080p movie down to 720 (likely because they can’t figure out how to change their remote settings to original). I may have to add a 4k title again and force it down to 720p.

@turbotastic I would not suggest to force transcoding from 4k to 720p. Image Quality would suffer and also big waste of transcoding performance


Oh definitely agree. I was just curious to see what sort of load it would put on the P2000.

I am not using any GPU, only the processor on my 872XT, and this works flawlessly on Plex Server 1.16.6.1592 qpkg from QNAP., but once I upgrade to the current version 1.20.1.3252 by downloading it from the Plex site, it quits working completely. I tried both preferences.xml edits as suggested but still doesn’t work:

HardwareDevicePath=“/dev/dri/renderD128”
and
HardwareDevicePath=“/dev/dri/card0”

ls -l /dev/dri/
total 0
crw------- 1 admin administrators 226, 0 2020-09-24 11:18 card0
crw------- 1 admin administrators 226, 128 2020-09-24 11:18 renderD128
[/share/docker/appdata/linuxserver-plex/config] #

Anyone else have any ideas how to get the transcoder working on the stock CPU?

Thanks.

May I have the DEBUG log files please, captured right after attempting a transcoded session start? (Play for 15 seconds then stop. Wait another 20 seconds then download the logs ZIP. Attach the ZIP file)