sunshine icon indicating copy to clipboard operation
sunshine copied to clipboard

Unable to use amdvce - Windows 10 - RX580

Open ademlabs opened this issue 3 years ago • 6 comments

Running sunshine in administrator mode from a console, set encoder to amdvce and amd_preset. It says amd_preset is not a recognized option?

I have an RX580 with latest drivers. What could be the issue?

[encoder] -- [amdvce]
[origin_web_ui_allowed] -- [lan]
[origin_pin_allowed] -- [lan]
Warning: Unrecognized configurable option [amd_preset]
[2021:10:31:11:20:52]: Info: Compiling shaders...
[2021:10:31:11:20:52]: Info: Compiled shaders
[2021:10:31:11:20:52]: Info: //////////////////////////////////////////////////////////////////
[2021:10:31:11:20:52]: Info: //                                                              //
[2021:10:31:11:20:52]: Info: //   Testing for available encoders, this may generate errors.  //
[2021:10:31:11:20:52]: Info: //   You can safely ignore those errors.                        //
[2021:10:31:11:20:52]: Info: //                                                              //
[2021:10:31:11:20:52]: Info: //////////////////////////////////////////////////////////////////
[2021:10:31:11:20:52]: Info: Trying encoder [amdvce]
[2021:10:31:11:20:52]: Info:
Device Description : Radeon RX 580 Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000067DF
Device Video Mem   : 7826 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16346 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2021:10:31:11:20:52]: Error: Failed to create input shader resource view [0x80070057]
[2021:10:31:11:20:52]: Info:
Device Description : Radeon RX 580 Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000067DF
Device Video Mem   : 7826 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16346 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2021:10:31:11:20:52]: Error: Failed to create input shader resource view [0x80070057]
[2021:10:31:11:20:52]: Info:
Device Description : Radeon RX 580 Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000067DF
Device Video Mem   : 7826 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16346 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2021:10:31:11:20:52]: Error: Failed to create input shader resource view [0x80070057]
[2021:10:31:11:20:52]: Info:
Device Description : Radeon RX 580 Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000067DF
Device Video Mem   : 7826 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16346 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2021:10:31:11:20:52]: Error: Failed to create input shader resource view [0x80070057]
[2021:10:31:11:20:52]: Info: Encoder [amdvce] failed
[2021:10:31:11:20:52]: Info:
[2021:10:31:11:20:52]: Info: //////////////////////////////////////////////////////////////
[2021:10:31:11:20:52]: Info: //                                                          //
[2021:10:31:11:20:52]: Info: // Ignore any errors mentioned above, they are not relevant //
[2021:10:31:11:20:52]: Info: //                                                          //
[2021:10:31:11:20:52]: Info: //////////////////////////////////////////////////////////////
[2021:10:31:11:20:52]: Info:
[2021:10:31:11:20:52]: Fatal: Couldn't find any encoder matching [amdvce]```

ademlabs avatar Oct 31 '21 07:10 ademlabs

Not sure if it's actually the problem, but in some instances updating the Graphics Card from the AMD website (not the Windows Update one - which are much older) can help. Keep in mind that it can also happen that Windows would overwrite the AMD drivers to use the older Windows one

TheElixZammuto avatar Nov 01 '21 13:11 TheElixZammuto

I'm using the latest Adrenalin drivers from the AMD Website. I'll try to clean up with DDU and reinstall to see if this fixes the problem. Thanks for the pointers, I'll report back on how it went.

ademlabs avatar Nov 02 '21 06:11 ademlabs

I realise I forgot to update my findings here. I cleaned up my drivers with DDU and made sure Windows Update is not pulling anything. I even disconnected from the internet. When the drivers are installed, I didn't reboot and immediately tested sunshine. It found the amdvce drivers and used them. However, when I reboot, sunshine doesn't find them. I'm sure my drivers haven't been overwritten by Windows Updates and cross-checked with driver file versions and AMD control centre. The weird thing here is that other apps can find the AMD encoders fine (like OBS) and use them. Any idea what is going on here?

ademlabs avatar Nov 21 '21 07:11 ademlabs

GPU encoding not working

Error: Could not open codec [h264_amf]: Internal bug, should not have happened
  • https://github.com/loki-47-6F-64/sunshine/commit/e4c9c292e57d39136df2d46d1e9b66eba53f3bd3, built on MSYS2 updated with pacman -Syu
  • Windows 11 21H2 22000.348
  • AMD Radeon RX580, driver 20.45.01.31, released 10.12.2020 (yes, it is famous WSLg driver)
  • Parsec GPU H.264/H.265 working fine, Steam Streaming GPU H.264/H.265 working fine, AMD Link GPU H.264/H.265 working fine
  • Vulkan games is working, using Vulkan to access GPU encoding is so rare, I can't even think how to check that

h264_amf_fail_debug_stdout_stderr.log h264_amf_fail_info_stdout_stderr.log h264_amf_fail_verbose_stdout_stderr.log

Basically only verbose log is useful, but not much, it basically says that Vulkan access to GPU encoding is not working. Well, it may be, on this preview drivers. It is WDDM 2.7 drivers with partial support for WDDMv3.0.

galeksandrp avatar Nov 27 '21 20:11 galeksandrp

Same issue here. Windows 11 & AMD 6900XT. Can only use software encoding. log info: "Encoder [amdvce failed]"

syq7970 avatar Jun 26 '22 14:06 syq7970

same... R9 270x Could not open codec [h264_amf]: Internal bug, should not have happened

artslay avatar Jul 07 '22 09:07 artslay