LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
15.62k stars 749 forks source link

arc A380 fails to encode #2540

Open dave-online opened 1 month ago

dave-online commented 1 month ago

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

it doesn't seem to see the arc A380 GPU ? on a win10 r7 5700G Info: Trying encoder [quicksync] [2024:05:12:20:36:45]: Error: Failed to locate an output device [2024:05:12:20:36:46]: Error: Failed to locate an output device [2024:05:12:20:36:46]: Info: Encoder [quicksync] failed

please fix the bug &patch moonlight to use the ARC A380 encoder etc as currently it just skips passed the Intel gpu in an amd r7 5700G machine, so fails to start encoding

Expected Behavior

should see encoder [quicksync] & use the arc cards

Additional Context

none

Host Operating System

Windows

Operating System Version

win10

Architecture

64 bit

Sunshine commit or version

v0.23.1

Package

Windows - installer

GPU Type

Intel

GPU Model

arc A380

GPU Driver/Mesa Version

31.0.101.5448

Capture Method (Linux Only)

window10

Config

upnp = enabled
controller = disabled
sunshine_name = Sunshine
global_prep_cmd = [{"do":"","undo":"","elevated":false}]

Apps

{
    "env": "",
    "apps": [
        {
            "name": "Desktop",
            "image-path": "desktop.png",
            "exclude-global-prep-cmd": "",
            "elevated": "",
            "auto-detach": "true",
            "wait-all": "true",
            "exit-timeout": "5"
        },
        {
            "name": "Steam Big Picture",
            "cmd": "steam:\/\/open\/bigpicture",
            "auto-detach": "true",
            "wait-all": "true",
            "image-path": "steam.png"
        }
    ]
}

Relevant log output

[2024:05:18:03:35:00]: Info: Sunshine version: v0.23.1
[2024:05:18:03:35:00]: Error: nvprefs: NvAPI error: NVAPI_API_NOT_INITIALIZED
[2024:05:18:03:35:00]: Error: nvprefs: NvAPI_DRS_CreateSession() failed
[2024:05:18:03:35:00]: Info: Compiling shaders...
[2024:05:18:03:35:00]: Info: Compiled shaders
[2024:05:18:03:35:00]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:05:18:03:35:00]: Info: Trying encoder [nvenc]
[2024:05:18:03:35:01]: Info: ddprobe.exe [1] [] returned: 0x887A0004
[2024:05:18:03:35:01]: Info: ddprobe.exe [2] [] returned: 0x00000000
[2024:05:18:03:35:01]: Info: Set GPU preference: 2
[2024:05:18:03:35:01]: Info: 
Device Description : Intel(R) Arc(TM) A380 Graphics
Device Vendor ID   : 0x00008086
Device Device ID   : 0x000056A5
Device Video Mem   : 6056 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16062 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2024:05:18:03:35:01]: Info: Active GPU has HAGS disabled
[2024:05:18:03:35:01]: Info: Using realtime GPU priority
[2024:05:18:03:35:01]: Info: Desktop resolution [1920x1080]
[2024:05:18:03:35:01]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:05:18:03:35:01]: Info: Display refresh rate [60Hz]
[2024:05:18:03:35:01]: Info: Requested frame rate [60fps]
[2024:05:18:03:35:01]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.654297,0.333008]
Green Primary      : [0.324219,0.576172]
Blue Primary       : [0.157227,0.0751953]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:05:18:03:35:01]: Info: Encoder [nvenc] is not supported on this GPU
[2024:05:18:03:35:01]: Info: Trying encoder [quicksync]
[2024:05:18:03:35:01]: Info: 
Device Description : Intel(R) Arc(TM) A380 Graphics
Device Vendor ID   : 0x00008086
Device Device ID   : 0x000056A5
Device Video Mem   : 6056 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16062 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2024:05:18:03:35:01]: Info: Active GPU has HAGS disabled
[2024:05:18:03:35:01]: Info: Using realtime GPU priority
[2024:05:18:03:35:01]: Info: Desktop resolution [1920x1080]
[2024:05:18:03:35:01]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:05:18:03:35:01]: Info: Display refresh rate [60Hz]
[2024:05:18:03:35:01]: Info: Requested frame rate [60fps]
[2024:05:18:03:35:01]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.654297,0.333008]
Green Primary      : [0.324219,0.576172]
Blue Primary       : [0.157227,0.0751953]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:05:18:03:35:01]: Info: SDR color coding [Rec. 601]
[2024:05:18:03:35:01]: Info: Color depth: 8-bit
[2024:05:18:03:35:01]: Info: Color range: [JPEG]
[2024:05:18:03:35:01]: Info: SDR color coding [Rec. 601]
[2024:05:18:03:35:01]: Info: Color depth: 8-bit
[2024:05:18:03:35:01]: Info: Color range: [JPEG]
[2024:05:18:03:35:01]: Info: SDR color coding [Rec. 601]
[2024:05:18:03:35:01]: Info: Color depth: 8-bit
[2024:05:18:03:35:01]: Info: Color range: [JPEG]
[2024:05:18:03:35:01]: Info: 
Device Description : Intel(R) Arc(TM) A380 Graphics
Device Vendor ID   : 0x00008086
Device Device ID   : 0x000056A5
Device Video Mem   : 6056 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16062 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2024:05:18:03:35:01]: Info: Active GPU has HAGS disabled
[2024:05:18:03:35:01]: Info: Using realtime GPU priority
[2024:05:18:03:35:01]: Info: Desktop resolution [1920x1080]
[2024:05:18:03:35:01]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:05:18:03:35:01]: Info: Display refresh rate [60Hz]
[2024:05:18:03:35:01]: Info: Requested frame rate [60fps]
[2024:05:18:03:35:01]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.654297,0.333008]
Green Primary      : [0.324219,0.576172]
Blue Primary       : [0.157227,0.0751953]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:05:18:03:35:01]: Info: SDR color coding [Rec. 709]
[2024:05:18:03:35:01]: Info: Color depth: 10-bit
[2024:05:18:03:35:01]: Info: Color range: [JPEG]
[2024:05:18:03:35:02]: Info: SDR color coding [Rec. 709]
[2024:05:18:03:35:02]: Info: Color depth: 10-bit
[2024:05:18:03:35:02]: Info: Color range: [JPEG]
[2024:05:18:03:35:02]: Info: 
[2024:05:18:03:35:02]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:05:18:03:35:02]: Info: 
[2024:05:18:03:35:02]: Info: Found H.264 encoder: h264_qsv [quicksync]
[2024:05:18:03:35:02]: Info: Found HEVC encoder: hevc_qsv [quicksync]
[2024:05:18:03:35:02]: Info: Found AV1 encoder: av1_qsv [quicksync]
[2024:05:18:03:35:02]: Info: Configuration UI available at [https://localhost:47990]
[2024:05:18:03:35:03]: Info: Registered Sunshine mDNS service
[2024:05:18:03:35:06]: Info: Completed UPnP port mappings to 192.168.0.12 via http://192.168.0.1:49153/IGDdevicedesc_brlan0.xml
ReenigneArcher commented 1 month ago

Is your display connected directly to that GPU?

dave-online commented 1 month ago

yes... & also through a 'nomachine' connection, nothing connected in the motherboard 5700G hdmi port.

as an aside, ffmpeg encoding works fine with the av1_qsv option

ReenigneArcher commented 1 month ago

ffmpeg encoding works fine with the av1_qsv option

encoding and screen capture are not synonymous

gschintgen commented 1 month ago

I'm not following. In the report you quote Info: Encoder [quicksync] failed but in the actual log there is no such error but rather: Found HEVC encoder: hevc_qsv [quicksync].

The log has been captured 6 days after the quote in the report.

dave-online commented 1 month ago

the log entry just repeated the same error for days of retesting etc, I just give up. moved on.