Jellyfin Forum
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"


ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with clang version 19.1.7
  configuration: --cc=clang --pkg-config-flags=--static --extra-cflags=-I/clang64/ffbuild/include --extra-ldflags=-L/clang64/ffbuild/lib --prefix=/clang64/ffbuild/jellyfin-ffmpeg --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --enable-lto=thin --enable-gpl --enable-version3 --enable-schannel --enable-iconv --enable-libxml2 --enable-zlib --enable-lzma --enable-gmp --enable-chromaprint --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libwebp --enable-libvpx --enable-libzimg --enable-libx264 --enable-libx265 --enable-libsvtav1 --enable-libdav1d --enable-libfdk-aac --enable-opencl --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      59.  8.100 / 59.  8.100
  libavcodec    61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample  5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[AVHWDeviceContext @ 0000026388400540] Using device 1002:73ff (AMD Radeon RX 6600).
[AVHWDeviceContext @ 00000263884d8680] 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



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.
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).

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