RX580 Tonemapping Crashes - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: RX580 Tonemapping Crashes (/t-rx580-tonemapping-crashes) |
RX580 Tonemapping Crashes - corigne - 2023-12-17 Hello! Hopefully someone can help me solve my tone mapping errors. I recently picked up an AMD RX580 to use for HW transcoding, and I wanted to try tone mapping for HDR content. I got the HW encoding/decoding working correctly, but the OpenCL tone mapping doesn't work. The OpenCL tone mapping attempts on requests from any client type crash with something similar to "free(): invalid pointer". I have tested HW transcode without tonemapping and I have registered activity on radeontop. The logs are pretty clear that the tonemapping device can't be found. Is the RX580 not compatible with OpenCL? I have been trying to figure out what I'm doing wrong to no avail. Any help you might be able to offer! I'm sorry if this is a stupid question and I missed something in the docs, but I tried my best to make sure I wasn't missing anything. I am following this documentation to enable HW transcoding and tone mapping: https://jellyfin.org/docs/general/administration/hardware-acceleration/amd Jellyfin version: 10.8.13 Install Mehod: linux docker (jellyfin/jellyfin@latest) OS: Ubuntu 22.04 LTS OpenCL and FFMpeg versions on the docker image: rocm-opencl-runtime/focal,now 6.0.0.60000-91~20.04 amd64 ffmpeg version 5.1.4-Jellyfin Docker Image hash: - sha256:544d674913bc396256f62e1540b88bfa0ed49714b941007c658e04018dea36da My compose file: Code: version: '3' Here's the relevant crashpoint in the transcode log: Code: -libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi -War.2018.UHD.BluRay.2160p.TrueHD.Atmos.7.1.HEVC.REMUX-FraMeSToR.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_vaapi -rc_mode VBR -b:v 85846142 -maxrate 85846142 -bufsize 171692284 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -flags:v -global_header -filter_complex "[0:4]scale=s=3840x2160:flags=fast_bilinear[sub];[0:0]setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,hwdownload,format=p010le,hwupload=derive_device=opencl,tonemap_opencl=format=nv12:p=bt709:t=bt709:m=bt709:tonemap=bt2390:peak=100:desat=0,hwdownload,format=nv12[main];[main][sub]overlay=eof_action=pass:shortest=1:repeatlast=0,hwupload_vaapi" -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/transcodes/7ea90931776835a4a85b9f8c86972a1a%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/7ea90931776835a4a85b9f8c86972a1a.m3u8" and here's verifying the opencl runtime, a similar effect: Code: ❯ docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device opencl |