2024-03-01, 10:49 AM 
(This post was last modified: 2024-03-06, 02:33 PM by creylon. Edited 1 time in total.)
		
	
	
		Hi,
I can't get tonemapping to work on my setup. I use an AMD GPU with VA-API for transcoding inside a docker container. All of it works fine. When I enable Tonemapping, however, I cannot play any media. I followed the setup guide in the docs for docker and AMD. Installation of OpenCL ROCm is successful, however, when running the command to confirm it I get the following error:
My setup:
Docker Image: jellyfin/jellyfin:10.8.13-1
FFmpeg: jellyfin-ffmpeg6 (6.0.1-3-bullseye)
GPU:
VA-API codecs:
Vulkan runtime status:
Thanks
	  
	
	
I can't get tonemapping to work on my setup. I use an AMD GPU with VA-API for transcoding inside a docker container. All of it works fine. When I enable Tonemapping, however, I cannot play any media. I followed the setup guide in the docs for docker and AMD. Installation of OpenCL ROCm is successful, however, when running the command to confirm it I get the following error:
Code:
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'opencl'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option init_hw_device (initialise hardware device) with argument opencl.
[AVHWDeviceContext @ 0x55af253a3d40] 1 OpenCL platforms found.
[AVHWDeviceContext @ 0x55af253a3d40] No devices found on platform "AMD Accelerated Parallel Processing".
[AVHWDeviceContext @ 0x55af253a3d40] No matching devices found.
Device creation failed: -19.
Failed to set value 'opencl' for option 'init_hw_device': No such device
Error parsing global options: No such deviceMy setup:
Docker Image: jellyfin/jellyfin:10.8.13-1
FFmpeg: jellyfin-ffmpeg6 (6.0.1-3-bullseye)
GPU:
Code:
      description: VGA compatible controller
      product: Navi 14 [Radeon RX 5500/5500M / Pro 5500M]
      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
      physical id: 0
      bus info: pci@0000:03:00.0
      version: c5
      width: 64 bits
      clock: 33MHz
      capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
      configuration: driver=amdgpu latency=0
      resources: irq:77 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:f000(size=256) memory:fcc00000-fcc7ffff memory:fcc80000-fcc9ffffVA-API codecs:
Code:
Trying display: drm
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.20.0)
vainfo: Driver version: Mesa Gallium driver 23.2.1 for AMD Radeon Graphics (renoir, LLVM 13.0.1, DRM 3.49, 6.1.63-1-lts)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main              : VAEntrypointVLD
      VAProfileH264Main              : VAEntrypointEncSlice
      VAProfileH264High              : VAEntrypointVLD
      VAProfileH264High              : VAEntrypointEncSlice
      VAProfileHEVCMain              : VAEntrypointVLD
      VAProfileHEVCMain              : VAEntrypointEncSlice
      VAProfileHEVCMain10            : VAEntrypointVLD
      VAProfileHEVCMain10            : VAEntrypointEncSlice
      VAProfileJPEGBaseline          : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                  : VAEntrypointVideoProcVulkan runtime status:
Code:
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'vulkan'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option init_hw_device (initialise hardware device) with argument vulkan.
[AVHWDeviceContext @ 0x55d93e6e9dc0] Supported validation layers:
[AVHWDeviceContext @ 0x55d93e6e9dc0] VK_LAYER_MESA_device_select
[AVHWDeviceContext @ 0x55d93e6e9dc0] VK_LAYER_MESA_overlay
[AVHWDeviceContext @ 0x55d93e6e9dc0] GPU listing:
[AVHWDeviceContext @ 0x55d93e6e9dc0]    0: AMD Radeon Graphics (RADV RENOIR) (integrated) (0x1638)
[AVHWDeviceContext @ 0x55d93e6e9dc0] Device 0 selected: AMD Radeon Graphics (RADV RENOIR) (integrated) (0x1638)
[AVHWDeviceContext @ 0x55d93e6e9dc0] Queue families:
[AVHWDeviceContext @ 0x55d93e6e9dc0]    0: graphics compute transfer sparse (queues: 1)
[AVHWDeviceContext @ 0x55d93e6e9dc0]    1: compute transfer sparse (queues: 4)
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_KHR_push_descriptor
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_KHR_sampler_ycbcr_conversion
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_KHR_synchronization2
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_KHR_external_memory_fd
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_EXT_external_memory_dma_buf
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_EXT_image_drm_format_modifier
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_KHR_external_semaphore_fd
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device extension VK_EXT_external_memory_host
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using device: AMD Radeon Graphics (RADV RENOIR)
[AVHWDeviceContext @ 0x55d93e6e9dc0] Alignments:
[AVHWDeviceContext @ 0x55d93e6e9dc0]    optimalBufferCopyRowPitchAlignment: 1
[AVHWDeviceContext @ 0x55d93e6e9dc0]    minMemoryMapAlignment:              4096
[AVHWDeviceContext @ 0x55d93e6e9dc0]    minImportedHostPointerAlignment:    4096
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using queue family 0 (queues: 1) for graphics
[AVHWDeviceContext @ 0x55d93e6e9dc0] Using queue family 1 (queues: 4) for compute transfers
Successfully parsed a group of options.
Hyper fast Audio and Video encoderThanks



