Jump to content

HDR tone mapping with AMD GPU


burrsg101

Recommended Posts

burrsg101

My apologies if this has been answered elsewhere, but I have been searching everywhere without a definitive answer on this. I am running Emby server in Ubuntu server 22.04 which is running in esxi on an HP ML350 Gen9 with twin E5-2697 v4 CPUs and an AMD MI25 GPU. When I select Enable "hardware accelerated tone mapping" it still falls back to my CPU when it encounters an HDR video file that needs transcoding. The following is a screenshot of my settings:

image.png.8c5d4b4a898f465a1dd82fa1ee7e1b7c.png

image.thumb.png.bca5808fe4195818965ba18d6098f3e7.png

 

I was perusing through my transcoding logs and noticed it attempts to use the GPU but has this string of errors before giving up and falling back to my CPU:

 

01:07:01.882 [AVHWDeviceContext @ 0x3148b40] Failed to get number of OpenCL platforms: -1001.
01:07:01.882 [hwmap@f2 @ 0x24f4f40] Failed to created derived device context: -19.
01:07:01.882 [hwmap@f2 @ 0x24f4f40] Failed to configure output pad on hwmap@f2
01:07:01.890 Error reinitializing filters!
01:07:01.890 Failed to inject frame into filter network: No such device
01:07:01.890 Error while processing the decoded data for stream #0:0
01:07:01.906 Conversion failed!
 
I've been getting conflicting answers about whether or not tone mapping is supported with AMD in a Linux environment, the last I saw mentioned it might be possible with openCL of which I have the ROCr runtime package installed alongside the amdgpu drivers.
 
I'd really like to avoid having to use my CPUs for this given that they're terribly inefficient comparatively, and not using tone mapping at all produces terrible picture quality.
 
I attached a transcoding log example as well as my latest server log.
Thanks in advance!

ffmpeg-transcode-d14eba47-9a25-4b1c-8e9b-5f0dcc5215ae_1.txt embyserver.txt

  • Like 1
Link to comment
Share on other sites

Hi, You have an AMD Radeon Graphics and there's no hardware tone mapping support for AMD GPUs.

Link to comment
Share on other sites

burrsg101

Is this something that is going to be implemented in the future by chance? I see many of the competitor options to Emby do fully support transcoding with AMD GPUs including tone mapping. I've been enjoying Emby a lot, but this is a bit of a deal-breaker to be honest.

Either way thanks for the answer!

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

HI, yes it's something we plan to improve in future updates. Thanks.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
dave10au

I'm interested in this as well, any ETA on a potential implementation? Not that keen on moving to jelly.

  • Like 1
Link to comment
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
×
×
  • Create New...