Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

arc A380 fails to encode

Open dave-online opened this issue 1 year ago • 5 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your issue described in the documentation?

  • [X] I have read the documentation

Is your issue present in the nightly release?

  • [X] This issue is 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

dave-online avatar May 18 '24 10:05 dave-online

Is your display connected directly to that GPU?

ReenigneArcher avatar May 18 '24 18:05 ReenigneArcher

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

dave-online avatar May 19 '24 12:05 dave-online

ffmpeg encoding works fine with the av1_qsv option

encoding and screen capture are not synonymous

ReenigneArcher avatar May 19 '24 13:05 ReenigneArcher

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.

gschintgen avatar May 20 '24 08:05 gschintgen

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

dave-online avatar May 20 '24 19:05 dave-online

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

LizardByte-bot avatar Aug 19 '24 10:08 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Aug 30 '24 10:08 LizardByte-bot