HDR Tone mapping - force software transcoding

Dual channel operation has limits.

It’s very much like the promises of H.265 reducing H.264 by 50% – NEVER HAPPENED.

I benchmarked this with dedicated code.

Single channel vs dual channel yields 15-16% observed performance increase in memory intensive operations. You’ll see that 15-16% at the application level.

What dual channel provides us is the “striping” effect in the RAM. We’re still limited by the bus / memory controller limits but hard “wait” states while RAM cycles is greatly reduced.

If CPU or disk I/O bound – no gain.

Thanks for your response. Got it!

For some users out there this might help:

I have upgraded my NAS from Debian 9 to Debian 10 (Strech to Buster): after the upgrade it’s working. Hooray!

Best regards

plex2

Hi ChuckPa,

you said red hat does not have native support.
My PMS is running on Centos 8 and it looks like hw accelerated hdr tone mapping is working (cpu load around 50 -60%) and this without installing OpenCL libs. If i install opencl cpu load is around 80 -90% so even worse then without OpenCL. How can that be?

image

Ah ok, I updated my Plex app on my Synology NAS (1019) and I have the option for Tone Mapping within settings, however it stutters every couple of seconds. Are you saying eventually it will support it and play back smoother once you guys get round to updating all the required dependencies? I can be patient :blush:

Thank you :+1:

It’s ok, did some more research. It’ll come when it comes and if impatient, installer the above mentioned docker image. Thank you.

It will be supported in the native app too. All we ask is patience.

There was so much work to do which took longer than originally scheduled but the launch date had already been cast in stone.

Piggy-backing docker onto PMS (so it uses your existing server) works very well.

You get the up to date libraries, uses your account and existing server info.

Doing this does take a little hand crafting because QNAP does not grant access to /dev/dri:/dev/dri in container station. :roll_eyes:

Sorry to be a pain here, is there a simple guide on how to piggy back the docker as you suggested?

I have got the native app working perfectly on my Synology 1019 and don’t want to mess it all up. If I can piggy back it to use short term until native app is updated to support tone mapping then great.

If not, I can be patient and wait. :blush::+1:

Thank you in advance.

I will try and create one.

It’s not very difficult.

The requirements essentially are:

  1. map /config to /volumeX/Plex/Library/Application Support
  2. map /dev/dri to /dev/dri
  3. map /volume1 to /volume1 (so Plex finds the media on /volume1)
  4. map other volumes as needed.
  5. (here’s the tricky part)
    a. SSH into the Syno and grep plex /etc/passwd
    b. Get the User id (900-something or 1000-something) and the Group ID (100)
    c. Set PUID=<UserID> and PGID=100

Be advised, all this changes in DSM 7.

I can only give you this hint “Amusement Park” :rofl:

Legend; we are currently watching a film using Watch Together. I’ll give this a try tomorrow.

Afraid you lost me with the Amusement Park hint :grinning_face_with_smiling_eyes:

When you see DSM 7, it will be painfully obvious :rofl:

@ChuckPa any information regarding tone mapping for thumbnails? Will it come when the feature will be backed in the native apps?

Out of curiosity, what is changing with dsm 7.0? I found hardly any info about its docker engine.

I suspect thumbnails will be resolved automatically when we have support in the native apps. It makes sense to be. Right now, things are a bit ‘duct tape’ held together in this “basic feature launch”.

We’re doing some internal toolchain work to make all of this better. I have no info about it beyond “working on it” and “native tonemapping when the libraries are built natively for all the hosts” (which implies completion of that work as well).

DSM 7 beta is closed at this point. The testers see it and we see it.
I can only tell you:

  1. You’ll have no trouble navigating around the familiar DSM.
  2. Apps have completely changed in how they are implemented.
  3. Apps no longer have free reign in the box. Everything we used to do broke with DSM 7.
  4. The DSM 7 SPK file and the DSM 6 SPK file are not cross-version compatible. To us, this is equivalent to developing support for a new vendor.
  5. I’ve changed how PMS is installed and managed in DSM 7.
    a. I am now using the Synology UI wizard you see some other apps use
    b. I’ve managed to make a lot of the transition to DSM 7 seamless with ONE exception and there is no easy way around it.
    c. I will present everything in the Forum Preview thread I’ll be opening after we get word back from Synology on our latest SPK updates to them / DSM 7 becomes “Public Beta” status.

hw accelerated hdr tone mapping is not working on an intel i7-8565U on centos 8.
Does anybody know which packages for centos are requiered to get opencl running correctly and hw accelerated hdr tone mapping working? Installing ocl-icd made it even worse.

@Chef83

  1. I am working on making that happpen now for RPMs.

  2. Here’s where I am at in the development effort for the new packaging which also has this in it.

    # Beignet installed?
    [ "$(rpm -qa | grep -i ^beignet-opencl-icd)" != "" ] && HaveBeignet=1

    # OpenCL installed
    [ "$(rpm -qa | grep -i ocl-icd)" != "" ] && HaveOpenCL=1

Both are required to make OpenCL tone mapping work properly. (for now)

1 Like

thanks for the response!

Where can i find beignet-opencl-icd rpm? I was not able to find it anywhere. Found a lot of articles saying beignet was deprecated and replaced by intel neo opencl

Hi! I am seeing a 55-60% CPU usage. Is there any limitation that it can’t go higher? I was testing in my VM with 2 cores and 4 cores an it load each core exactly between 50-60%. I have hw accel working, but 4k HDR->1080pSDR@8Mbit is already struggling in my i5 8400.

Chef,

You’re dead on target with that. It’s deprecated.

Because it’s deprecated (in conjunction with the Fedora team not having passed a build in a long time ), the transcoder team is taking everything to the new Intel Compute-Runtime libraries now.

Worse case scenario is you download, build, and install

@Sinholueiro

If you’re seeing CPU utilization that high then you’re not getting the GPU assist.
The load you show is consistent with falling back to software-only

The VM is most likely limiting you because of hardware access.

If I disable hw accel, it goes to 90%+ load, and with it enabled, I have the “(hw)” label in source and target, as seen here.