Closed Seketh closed 10 months ago
Also having this issue, not sure if it ever worked for me however...
Sigh, well at least AMF isn't randomly crashing the whole process this time...
Can you open the properties page of C:\windows\system32\amfrt64.dll and post the Details tab?
For reference, mine:
Here you go:
Can confirm this issue on my RX Vega 64 as well with the latest release build of Sunshine. I made a post on the Discord back in July for it as well. Seems like the AMF encoder is broken on all pre-RDNA GPUs when using drivers after 23.5.2.
I also encountered the same problem when I updated to the merged version of #1530. The version of amfrt64.dll
of this machine is 1.4.30.0
.
I also encountered the same problem when I updated to the merged version of #1530. The version of
amfrt64.dll
of this machine is1.4.30.0
.
@wwqgtxx Is there a nightly version that was working for you on Adrenalin versions newer than 15.3.2?
I root-caused the issue to a bug in the AMD AMF driver/runtime on pre-RDNA cards. The "ultralowlatency" usage preset that Sunshine uses by default is broken on pre-RDNA cards in the current drivers. I filed a bug on the AMF project for AMD to address the issue in a future driver update.
As a workaround, you can set the Usage value on the AMF Encoder configuration page to "lowlatency" instead of "ultralowlatency" as shown below (as is probably obvious, latency may suffer from using this workaround):
But I want to know why the nightly version before the merge AV1 branch does not trigger this problem under the same version of the GPU driver, and the "ultralow latency" is also selected in the settings.
In my case, the official release (v0.20) didn't work either on my RX 480 card with 23.8.1 drivers, so it wasn't specific to any recent nightly build. It's possible there are multiple issues that can prevent AMF from initializing properly, and your issue may be different than mine.
The only way to know for sure is to see the output from the AMF encoder on your system. Sunshine doesn't currently capture the FFmpeg logs properly, so you will need to run this build https://github.com/LizardByte/Sunshine/suites/15424075562/artifacts/880730463 from #4384 (must be signed in on GitHub for the link to work)
To collect logs:
sunshine.log and the moonlight shown:
Failed to initialize video capture/encoding.
the lastest work build is https://github.com/LizardByte/Sunshine/actions/runs/5912820381
Yeah, your issue is different. Your logs don't have the Error: Could not open codec [h264_amf]: Internal bug, should not have happened
message that the my logs and the original report has.
Can you attach your sunshine.conf
file and what version of GPU drivers your host is running?
Yeah, your issue is different. Your logs don't have the
Error: Could not open codec [h264_amf]: Internal bug, should not have happened
message that the my logs and the original report has.Can you attach your
sunshine.conf
file and what version of GPU drivers your host is running?
sunshine.conf
:
resolutions = [
352x240,
480x360,
858x480,
1280x720,
1920x1080,
2560x1080,
3440x1440,
1920x1200,
3860x2160,
3840x1600
]
gamepad = x360
min_log_level = 2
hevc_mode = 3
av1_mode = 3
and my host GPU driver version is Non-WHQL-Radeon-Software-Adrenalin-2020-21.12.1-Win10-Win11-64Bit-Dec3
Your particular issue is caused by setting av1_mode = 3
on a GPU and driver that doesn't support AV1. av1_mode = 3
tells Sunshine that you're requiring the encoder to have AV1 Main 10-bit support. As a result, the AMF encoder fails the constraints you have set and isn't used.
This behavior isn't really intuitive, so I have posted a PR to change to avoid a codec requirements issue from disqualifying the entire encoder.
Your particular issue is caused by setting
av1_mode = 3
on a GPU and driver that doesn't support AV1.av1_mode = 3
tells Sunshine that you're requiring the encoder to have AV1 Main 10-bit support. As a result, the AMF encoder fails the constraints you have set and isn't used.This behavior isn't really intuitive, so I have posted a PR to change to avoid a codec requirements issue from disqualifying the entire encoder.
Thanks, I did get back to normal after I removed this setting. I didn’t expect that the entire AMF encoder would be disabled because it doesn’t support AV1. It seems that it is indeed inconsistent with the problem reported in this issue.
@cgutman Thanks for debugging the issue and the 'lowlatency' suggestion, that seems to have worked on my RX Vega. I did notice something interesting when using ffmpeg directly though. I get an error encoding with ultralowlatency with h264, but hevc seems to work fine (This is with Adrenalin 23.8.1)
Encoding to H.264:
PS C:\Users\mihir> ffmpeg -i C:\Users\mihir\Desktop\Big_Buck_Bunny_1080_10s_30MB.mp4 -codec:v h264_amf -usage ultralowlatency out.mp4
ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\mihir\Desktop\Big_Buck_Bunny_1080_10s_30MB.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Big Buck Bunny, Sunflower version
artist : Blender Foundation 2008, Janus Bager Kristensen 2013
composer : Sacha Goedegebure
encoder : Lavf57.63.100
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
genre : Animation
Duration: 00:00:10.00, start: 0.000000, bitrate: 24563 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24559 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
File 'out.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_amf))
Press [q] to stop, [?] for help
[h264_amf @ 0000026422c58d40] encoder->Init() failed with error 3
[vost#0:0/h264_amf @ 0000026422c58a40] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
With HEVC (no error):
PS C:\Users\mihir> ffmpeg -i C:\Users\mihir\Desktop\Big_Buck_Bunny_1080_10s_30MB.mp4 -codec:v hevc_amf -usage ultralowlatency out.mp4
ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\mihir\Desktop\Big_Buck_Bunny_1080_10s_30MB.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Big Buck Bunny, Sunflower version
artist : Blender Foundation 2008, Janus Bager Kristensen 2013
composer : Sacha Goedegebure
encoder : Lavf57.63.100
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
genre : Animation
Duration: 00:00:10.00, start: 0.000000, bitrate: 24563 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24559 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
File 'out.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_amf))
Press [q] to stop, [?] for help
Output #0, mp4, to 'out.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Big Buck Bunny, Sunflower version
artist : Blender Foundation 2008, Janus Bager Kristensen 2013
composer : Sacha Goedegebure
genre : Animation
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
encoder : Lavf60.3.100
Stream #0:0(und): Video: hevc (hev1 / 0x31766568), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2000 kb/s, 30 fps, 15360 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 hevc_amf
frame= 300 fps=153 q=-0.0 Lsize= 2508kB time=00:00:09.96 bitrate=2061.6kbits/s speed=5.09x
video:2506kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.096142%
Is that a mistake in the way I'm calling the HEVC encoder that isn't triggering the ultralowlatency
preset (and therefore not failing like it should)? I'm wondering if it might be possible to still leverage ultralowlatency
with HEVC in Sunshine while AMD works on sorting out the issue with H.264.
Is that a mistake in the way I'm calling the HEVC encoder that isn't triggering the
ultralowlatency
preset (and therefore not failing like it should)? I'm wondering if it might be possible to still leverageultralowlatency
with HEVC in Sunshine while AMD works on sorting out the issue with H.264.
No, you're calling it correctly. The bug only affects the H.264 encoder.
It would be possible to expose a separate latency present for H.264 vs. HEVC and AV1, but I'd really rather not start adjusting the config UI or adding bespoke logic to the encoder probing code to work around what is clearly a driver bug. Our primary focus should be on getting AMD to fix the bug.
To that end, please use the AMD Bug Report Tool to report this issue directly to AMD. You can include the link to the AMF bug https://github.com/GPUOpen-LibrariesAndSDKs/AMF/issues/410 to help them better understand the issue.
I root-caused the issue to a bug in the AMD AMF driver/runtime on pre-RDNA cards. The "ultralowlatency" usage preset that Sunshine uses by default is broken on pre-RDNA cards in the current drivers. I filed a bug on the AMF project for AMD to address the issue in a future driver update.
As a workaround, you can set the Usage value on the AMF Encoder configuration page to "lowlatency" instead of "ultralowlatency" as shown below (as is probably obvious, latency may suffer from using this workaround):
I have fps regression on my pre-RDNA GPU (rx580) when using drivers after 23.5.2 of about 25-30 fps using h.264 codec. Your workaround help me and now i have 60fps! Thank you.
We have implemented a workaround of retrying AMF initialization using the lowlatency
preset for H.264 if ultralowlatency
fails, at the cost of higher encoding latency if we have to fall back to lowlatency
.
As mentioned above, ultralowlatency
still works for HEVC, so this should have little impact for most clients that prefer HEVC over H.264.
hi, i'm still having issues with getting amf to work (both h264 and hevc). I recently updated to adrenalin 24.1.1 (but the previous last version still had this issue) and amf is just not working with sunshine.
what i've tried:
I also tried the solution @cgutman mentioned to no avail
None of these changes have made a difference. My gpu is an RX480 8GB. I've noticed in the logs that sunshine checks for h264_amf even if i explicitly force hevc, is that the expected behavior?
thanks
logs:
[2024:01:27:10:44:09]: Error: nvprefs: NvAPI error: NVAPI_API_NOT_INITIALIZED
[2024:01:27:10:44:09]: Error: nvprefs: NvAPI_DRS_CreateSession() failed
[2024:01:27:10:44:09]: Info: Sunshine version: 0.21.0
[2024:01:27:10:44:09]: Info: Compiling shaders...
[2024:01:27:10:44:09]: Info: System tray created
[2024:01:27:10:44:09]: Info: Compiled shaders
[2024:01:27:10:44:10]: Warning: Couldn't setup connection to ViGEm for gamepad support [E0000001]
[2024:01:27:10:44:10]: Info: Trying encoder [amdvce]
[2024:01:27:10:44:10]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:01:27:10:44:10]: Info: Set GPU preference: 1
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info: SDR color coding [Rec. 601]
[2024:01:27:10:44:10]: Info: Color depth: 8-bit
[2024:01:27:10:44:10]: Info: Color range: [JPEG]
[2024:01:27:10:44:10]: Error: [h264_amf @ 00000217a198e980] encoder->Init() failed with error 3
[2024:01:27:10:44:10]: Error: Could not open codec [h264_amf]: Internal bug, should not have happened
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info: SDR color coding [Rec. 601]
[2024:01:27:10:44:10]: Info: Color depth: 8-bit
[2024:01:27:10:44:10]: Info: Color range: [JPEG]
[2024:01:27:10:44:10]: Error: [h264_amf @ 00000217a198e580] encoder->Init() failed with error 3
[2024:01:27:10:44:10]: Error: Could not open codec [h264_amf]: Internal bug, should not have happened
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info: SDR color coding [Rec. 601]
[2024:01:27:10:44:10]: Info: Color depth: 8-bit
[2024:01:27:10:44:10]: Info: Color range: [JPEG]
[2024:01:27:10:44:10]: Error: [h264_amf @ 00000217a198f480] encoder->Init() failed with error 3
[2024:01:27:10:44:10]: Error: Could not open codec [h264_amf]: Internal bug, should not have happened
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info: SDR color coding [Rec. 601]
[2024:01:27:10:44:10]: Info: Color depth: 8-bit
[2024:01:27:10:44:10]: Info: Color range: [JPEG]
[2024:01:27:10:44:10]: Error: [h264_amf @ 00000217a198e980] encoder->Init() failed with error 3
[2024:01:27:10:44:10]: Error: Could not open codec [h264_amf]: Internal bug, should not have happened
[2024:01:27:10:44:10]: Info: Encoder [amdvce] failed
[2024:01:27:10:44:10]: Error: Couldn't find any working encoder matching [amdvce]
[2024:01:27:10:44:10]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:01:27:10:44:10]: Info: Trying encoder [nvenc]
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info: Encoder [nvenc] is not supported on this GPU
[2024:01:27:10:44:10]: Info: Trying encoder [quicksync]
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info: Encoder [quicksync] is not supported on this GPU
[2024:01:27:10:44:10]: Info: Trying encoder [software]
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info:
Device Description : Radeon (TM) RX 480 Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x000067DF
Device Video Mem : 8135 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8173 MiB
Feature Level : 0x0000B100
Capture size : 2560x1080
Offset : 0x0
Virtual Desktop : 2560x1080
[2024:01:27:10:44:10]: Info: Active GPU has HAGS disabled
[2024:01:27:10:44:10]: Info: Using realtime GPU priority
[2024:01:27:10:44:10]: Info: Desktop resolution [2560x1080]
[2024:01:27:10:44:10]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:01:27:10:44:10]: Info: Display refresh rate [75Hz]
[2024:01:27:10:44:10]: Info: Requested frame rate [60fps]
[2024:01:27:10:44:10]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.651367,0.332031]
Green Primary : [0.306641,0.630859]
Blue Primary : [0.150391,0.0595703]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:01:27:10:44:10]: Info: SDR color coding [Rec. 601]
[2024:01:27:10:44:10]: Info: Color depth: 8-bit
[2024:01:27:10:44:10]: Info: Color range: [JPEG]
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] profile High, level 4.2, 4:2:0, 8-bit
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] frame I:1 Avg QP: 6.60 size: 1221
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] mb I I16..4: 100.0% 0.0% 0.0%
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] 8x8 transform intra:0.0%
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] i16 v,h,dc,p: 94% 4% 1% 0%
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 0% 50% 25% 25% 0% 0% 0% 0% 0%
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 0% 50% 50% 0% 0% 0% 0% 0% 0%
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] i8c dc,h,v,p: 100% 0% 0% 0%
[2024:01:27:10:44:10]: Info: [libx264 @ 00000217a198e840] kb/s:586.08
[2024:01:27:10:44:10]: Info:
[2024:01:27:10:44:10]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:01:27:10:44:10]: Info:
[2024:01:27:10:44:10]: Info: Found H.264 encoder: libx264 [software]
[2024:01:27:10:44:10]: Info: Configuration UI available at [https://localhost:47990]
[2024:01:27:10:44:11]: Info: Registered Sunshine mDNS service
hi, i'm still having issues with getting amf to work (both h264 and hevc). I recently updated to adrenalin 24.1.1 (but the previous last version still had this issue) and amf is just not working with sunshine.
Can you manually install AMF framework from: https://gpuopen.com/advanced-media-framework/ and make test again ... what are the results ?
Please try the latest nightly release which contains a workaround for the bug: https://github.com/LizardByte/Sunshine/releases/nightly-dev
@cgutman Confirmed that installing this nightly resolved the lagging issue I was experiencing using RX480. Smooth as butter now. Cheers
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the nightly release?
Describe the Bug
AMD AMF not working.
It was working with v0.20.0 back on release, but no longer. AMD drivers were installed after using Display Driver Uninstaller (DDU).
Expected Behavior
No response
Additional Context
No response
Host Operating System
Windows
Operating System Version
Windows 11 Pro
Architecture
64 bit
Sunshine commit or version
0.20.0.a84dea386273ada1f9e7539ea6394a4b2b2ddc47
Package
Windows - installer
GPU Type
AMD
GPU Model
RX 580
GPU Driver/Mesa Version
Adrenalin 23.7.2
Capture Method (Linux Only)
No response
Config
Apps
No response
Relevant log output