![]() |
Cannot use hardware transcoding help - 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: Cannot use hardware transcoding help (/t-cannot-use-hardware-transcoding-help) |
Cannot use hardware transcoding help - pacitojelly - 2025-06-04 I've been using Jellyfin for many years now, and everything has been working perfectly, even the hardware transcoding. I could use my 5600g and AMD AMF to transcode video and it worked just fine, until recently. I don't know what I did, but suddenly hardware transcoding no longer seems to work. I can play movies using Findroid or the Integrated Player in Jellyfin Android, but using the web based player and trying to play HEVC, transcoding fails, showing 'playback failed, fatal error'. Disabling hardware acceleration by selection 'none', I can play hevc movies, but that of course uses the cpu. I've tried using VAAPI, and that works too, but also pins my cpu at 100% usage Here's what I've tried: Reinstall Jellyfin (completely wiped everything and reinstall using Basic settings) Update my AMD drivers to latest 25.5.1 Disable remote desktop, and change group policy to disable using hardware acceleration for rdp sessions Here is the ffmpeg log when trying to transcode a h264 movie to a lower bitrate : https://pastebin.com/DZCteHsZ Here is the ffmpeg log when trying to play an hevc movie using the web player: https://pastebin.com/gdVhT3eM It always shows : [AVHWDeviceContext @ 000001afd04e5ec0] Using device 1002:1638 (AMD Radeon Graphics). [AVHWDeviceContext @ 000001afd054ce40] No matching devices found. Device creation failed: -19. Failed to set value 'opencl=ocl@dx11' for option 'init_hw_device': No such device Error parsing global options: No such device I found this thread which shows a similar error, and tried using these two commands in my jellyfin server install folder 1) clinfo 2) ffmpeg -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11 (in Jellyfin server folder) And the restuls are : 1) https://pastebin.com/p08JScVT 2) https://pastebin.com/kjsUxVPU Which, similar to that post, shows that ffmpeg can find that device when using cmd, but Jellyfin cannot use it? The solution listen there is to reinstall Jellyfin using the 'Basic settings'; however I tried that and it didn't work for me. Any help is appreciated. I'm using an AMD Ryzen 5 5600G CPU with integrated graphics, with no other display adapters installed in the PC. Everything used to work fine, until now. RE: Cannot use hardware transcoding help - Re4mstr - 2025-06-04 I am having this issue as well as of.. a couple of days ago. Thank you for reporting this, as I myself think this is actually a bug. Running the Jellyfin.service on Arch, dedicated baremetal machine with intel GPU (A750). Getting the same error as you, but after a few days of troubleshooting, jumped to Emby (for the time being), until this issue is fixed. RE: Cannot use hardware transcoding help - Ted Hinklater - 2025-06-05 Same Code: ffmpeg -analyzeduration 200M -probesize 1G -f matroska -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11 -filter_hw_device ocl -hwaccel d3d11va -hwaccel_output_format d3d11 -noautorotate -i file:"G:\Shows\King of the Hill (1997)\Season 1\King of the Hill (1997) - S01E09 - Peggy the Boggle Champ (480p DVD x265 r00t).mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_amf -quality speed -rc cbr -qmin 0 -qmax 32 -b:v 4336400 -maxrate 4336400 -bufsize 8672800 -profile:v:0 high -level 51 -g:v:0 60 -keyint_min:v:0 60 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,hwmap=derive_device=opencl:mode=read,scale_opencl=format=nv12,hwmap=derive_device=d3d11va:mode=write:reverse=1,format=d3d11" -codec:a:0 libfdk_aac -ac 2 -ab 192000 -ar 48000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "C:\ProgramData\Jellyfin\Server\cache\transcodes\f47cebadee028363cd4b06045dc7eaff-1.mp4" -start_number 0 -hls_segment_filename "C:\ProgramData\Jellyfin\Server\cache\transcodes\f47cebadee028363cd4b06045dc7eaff%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\cache\transcodes\f47cebadee028363cd4b06045dc7eaff.m3u8" RE: Cannot use hardware transcoding help - nyanmisaka - 2025-06-06 (2025-06-04, 12:22 PM)Re4mstr Wrote: I am having this issue as well as of.. a couple of days ago. You are using Linux. The error logs in this post are specific to Windows, they cannot possibly be related. RE: Cannot use hardware transcoding help - nyanmisaka - 2025-06-06 Guess it's stupid Windows that performs GPU driver auto-update, thus screwing up the OpenCL runtime. It is recommended to use DDU to wipe all cached drivers and install fresh from AMD's official website. https://www.wagnardsoft.com/content/Download-Display-Driver-Uninstaller-DDU-18113 https://jellyfin.org/docs/general/post-install/transcoding/hardware-acceleration/amd#configure-on-windows-host RE: Cannot use hardware transcoding help - Ted Hinklater - 2025-06-06 (2025-06-06, 10:50 AM)nyanmisaka Wrote: It is recommended to use DDU to wipe all cached drivers and install fresh from AMD's official website. Eyyy that worked thanks Nyanmisaka |