Jellyfin Forum
Windows 11 with AMD AMF - 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: Windows 11 with AMD AMF (/t-windows-11-with-amd-amf)

Pages: 1 2


Windows 11 with AMD AMF - chicri - 2024-01-14

hi guys just need some info if this configuration is supported? I have a 7800xt with windows 11 and trying to run it with AMD AMF. I'm getting this error if I use the AMD AMF option. Videos wont play on my phone and browser, if I turn off acceleration it does work but its using the cpu 100% =/

EDIT: I think its something with HEVC and/or HDR videos I wanted to play. Other videos without HEVC or HDR does work.

Quote:ffmpeg version 5.1.4-Jellyfin Copyright © 2000-2023 the FFmpeg developers
  built with gcc 12-win32 (GCC)
  configuration: --prefix=/opt/ffmpeg --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lfftw3f -lstdc++' --extra-cflags=-DCHROMAPRINT_NODLL --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --disable-w32threads --enable-pthreads --enable-shared --enable-lto --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-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-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      57. 28.100 / 57. 28.100
  libavcodec    59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter    8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample  4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[AVHWDeviceContext @ 000002b20e9f8800] Using device 1002:747e (AMD Radeon RX 7800 XT).
[AVHWDeviceContext @ 000002b20e9fb800] 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: Windows 11 with AMD AMF - TheDreadPirate - 2024-01-14

Follow this guide. There are additional steps after installing Jellyfin to get transcoding to work properly.

https://jellyfin.org/docs/general/administration/hardware-acceleration/amd/#windows-setups


RE: Windows 11 with AMD AMF - chicri - 2024-01-15

I did try to follow this prior to posting. Nevertheless I tried again the steps.

Clean install latest drivers
Use hardware graphics adapters for all Remote Desktop Services sessions - Disabled
Reboot
Enable AMD AMF in Jellyfin

I got this popup message after playing a video on the browser

Playback Error
This client isn't compatible with the media and the server isn't sending a compatible media format.

and same error as above


.txt   Log.txt (Size: 11.84 KB / Downloads: 19)


RE: Windows 11 with AMD AMF - TheDreadPirate - 2024-01-15

Can you show me screenshots of Dashboard > Playback? What codecs are checked?


RE: Windows 11 with AMD AMF - chicri - 2024-01-16

attaching screenshot


RE: Windows 11 with AMD AMF - TheDreadPirate - 2024-01-16

AMF should work in Windows, but as a workaround what happens when you select VAAPI?


RE: Windows 11 with AMD AMF - chicri - 2024-01-17

Its just using the cpu 100% if I use VAAPI


RE: Windows 11 with AMD AMF - nyanmisaka - 2024-01-17

Can you run these commands and share the output?

1. clinfo

2. ffmpeg -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11 (in Jellyfin server folder)


RE: Windows 11 with AMD AMF - chicri - 2024-01-17

PS C:\Program Files\Jellyfin\Server> clinfo
Number of platforms:                            1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 2.1 AMD-APP (3584.0)
  Platform Name:                                AMD Accelerated Parallel Processing
  Platform Vendor:                              Advanced Micro Devices, Inc.
  Platform Extensions:                          cl_khr_icd cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_amd_event_callback cl_amd_offline_devices


  Platform Name:                                AMD Accelerated Parallel Processing
Number of devices:                              1
  Device Type:                                  CL_DEVICE_TYPE_GPU
  Vendor ID:                                    1002h
  Board name:                                    AMD Radeon RX 7800 XT
  Device Topology:                              PCI[ B#12, D#0, F#0 ]
  Max compute units:                            30
  Max work items dimensions:                    3
    Max work items[0]:                          1024
    Max work items[1]:                          1024
    Max work items[2]:                          1024
  Max work group size:                          256
  Preferred vector width char:                  4
  Preferred vector width short:                  2
  Preferred vector width int:                    1
  Preferred vector width long:                  1
  Preferred vector width float:                  1
  Preferred vector width double:                1
  Native vector width char:                      4
  Native vector width short:                    2
  Native vector width int:                      1
  Native vector width long:                      1
  Native vector width float:                    1
  Native vector width double:                    1
  Max clock frequency:                          2254Mhz
  Address bits:                                  64
  Max memory allocation:                        14588628172
  Image support:                                Yes
  Max number of images read arguments:          128
  Max number of images write arguments:          64
  Max image 2D width:                            16384
  Max image 2D height:                          16384
  Max image 3D width:                            2048
  Max image 3D height:                          2048
  Max image 3D depth:                            2048
  Max samplers within kernel:                    16
  Max size of kernel argument:                  1024
  Alignment (bits) of base address:              2048
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                                    Yes
    Quiet NaNs:                                  Yes
    Round to nearest even:                      Yes
    Round to zero:                              Yes
    Round to +ve and infinity:                  Yes
    IEEE754-2008 fused multiply-add:            Yes
  Cache type:                                    Read/Write
  Cache line size:                              64
  Cache size:                                    16384
  Global memory size:                            17163091968
  Constant buffer size:                          14588628172
  Max number of constant args:                  8
  Local memory type:                            Scratchpad
  Local memory size:                            65536
  Max pipe arguments:                            16
  Max pipe active reservations:                  16
  Max pipe packet size:                          1703726284
  Max global variable size:                      13129765120
  Max global variable preferred total size:      17163091968
  Max read/write image args:                    64
  Max on device events:                          1024
  Queue on device max size:                      8388608
  Max on device queues:                          1
  Queue on device preferred size:                262144
  SVM capabilities:
    Coarse grain buffer:                        Yes
    Fine grain buffer:                          Yes
    Fine grain system:                          No
    Atomics:                                    No
  Preferred platform atomic alignment:          0
  Preferred global atomic alignment:            0
  Preferred local atomic alignment:              0
  Kernel Preferred work group size multiple:    32
  Error correction support:                      0
  Unified memory for Host and Device:            0
  Profiling timer resolution:                    1
  Device endianess:                              Little
  Available:                                    Yes
  Compiler available:                            Yes
  Execution capabilities:
    Execute OpenCL kernels:                      Yes
    Execute native function:                    No
  Queue on Host properties:
    Out-of-Order:                                No
    Profiling :                                  Yes
  Queue on Device properties:
    Out-of-Order:                                Yes
    Profiling :                                  Yes
  Platform ID:                                  00007FFE0EE33000
  Name:                                          gfx1101
  Vendor:                                        Advanced Micro Devices, Inc.
  Device OpenCL C version:                      OpenCL C 2.0
  Driver version:                                3584.0 (PAL,LC)
  Profile:                                      FULL_PROFILE
  Version:                                      OpenCL 2.0 AMD-APP (3584.0)
  Extensions:                                    cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_copy_buffer_p2p cl_amd_planar_yuv


PS C:\Program Files\Jellyfin\Server> .\ffmpeg.exe -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11
ffmpeg version 5.1.4-Jellyfin Copyright © 2000-2023 the FFmpeg developers
  built with gcc 12-win32 (GCC)
  configuration: --prefix=/opt/ffmpeg --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lfftw3f -lstdc++' --extra-cflags=-DCHROMAPRINT_NODLL --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --disable-w32threads --enable-pthreads --enable-shared --enable-lto --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-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-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      57. 28.100 / 57. 28.100
  libavcodec    59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter    8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample  4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[AVHWDeviceContext @ 0000014c305e6f80] Using device 1002:747e (AMD Radeon RX 7800 XT).
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


RE: Windows 11 with AMD AMF - mikesulsenti - 2024-01-17

(2024-01-16, 09:08 AM)chicri Wrote: attaching screenshot

This isn't a solution for your current issue really but the RX 7800 XT does not have support for decoding all those codecs

It can do H264, HEVC + 10bit, VP9 + 10bit, and AV1

MPEG-2 and VC-1 are not supported in AMD VCN 4.0