LizardByte / Sunshine

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

Unable to use Hardware (GPU) encoding on Intel HD Graphics 5500 #3351

Open iz8mbw opened 3 weeks ago

iz8mbw commented 3 weeks ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

Hello. I'm aware I'm using Sunshine on an "old" HP notebook with Intel i7-5600U CPU and the Video GPU is Intel HD Graphics 5500. It seems Sunshine is not able to use the Hardware (GPU) acceleration during encoding, then during streaming the CPU is at 100% and the video is not smooth.

In addiction, some print-screnn about Windows Task Manager that show the CPU at 100%: image

image

Just for test, I installed Parsec and it uses the GPU. As you can see with Parsec the GPU is used and the CPU is very low:

image

image

I'm available to test if a fix will be applied. Many thanks!

Expected Behavior

I expect that Sunshine will use the GPU and not the CPU for encoding,

Additional Context

No response

Host Operating System

Windows

Operating System Version

Windows 10

Architecture

amd64/x86_64

Sunshine commit or version

Version v2024.1031.235235

Package

Windows - installer (recommended)

GPU Type

Intel

GPU Model

HD 5500

GPU Driver/Mesa Version

.

Capture Method

None

Config

No response

Apps

No response

Relevant log output

[2024-11-01 09:22:20.744]: Info: Sunshine version: v2024.1031.235235
[2024-11-01 09:22:20.746]: Info: Package Publisher: LizardByte
[2024-11-01 09:22:20.746]: Info: Publisher Website: https://app.lizardbyte.dev
[2024-11-01 09:22:20.746]: Info: Get support: https://app.lizardbyte.dev/support
[2024-11-01 09:22:20.747]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2024-11-01 09:22:20.789]: Info: Compiling shaders...
[2024-11-01 09:22:20.860]: Warning: include/base_vs.hlsl(28,13-36): warning X3556: integer modulus may be much slower, try using uints if possible.
[2024-11-01 09:22:20.974]: Warning: include/base_vs.hlsl(28,13-36): warning X3556: integer modulus may be much slower, try using uints if possible.
[2024-11-01 09:22:21.055]: Warning: include/base_vs.hlsl(28,13-36): warning X3556: integer modulus may be much slower, try using uints if possible.
[2024-11-01 09:22:21.105]: Warning: include/base_vs.hlsl(28,13-36): warning X3556: integer modulus may be much slower, try using uints if possible.
[2024-11-01 09:22:21.217]: Warning: include/base_vs.hlsl(28,13-36): warning X3556: integer modulus may be much slower, try using uints if possible.
[2024-11-01 09:22:21.240]: Warning: include/base_vs.hlsl(28,13-36): warning X3556: integer modulus may be much slower, try using uints if possible.
[2024-11-01 09:22:21.240]: Info: Compiled shaders
[2024-11-01 09:22:21.264]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024-11-01 09:22:21.264]: Info: Trying encoder [nvenc]
[2024-11-01 09:22:21.663]: Info: ddprobe.exe 1  --verify-frame-capture returned 0x00000000
[2024-11-01 09:22:21.663]: Info: Set GPU preference: 1
[2024-11-01 09:22:21.766]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:22:21.766]: Info: Active GPU has HAGS disabled
[2024-11-01 09:22:21.766]: Info: Using realtime GPU priority
[2024-11-01 09:22:21.767]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:22:21.767]: Info: Desktop resolution [1366x768]
[2024-11-01 09:22:21.767]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:22:21.767]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:22:21.767]: Info: Requested frame rate [60fps]
[2024-11-01 09:22:21.770]: Info: Encoder [nvenc] is not supported on this GPU
[2024-11-01 09:22:21.851]: Info: Trying encoder [quicksync]
[2024-11-01 09:22:21.947]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:22:21.947]: Info: Active GPU has HAGS disabled
[2024-11-01 09:22:21.947]: Info: Using realtime GPU priority
[2024-11-01 09:22:21.947]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:22:21.948]: Info: Desktop resolution [1366x768]
[2024-11-01 09:22:21.948]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:22:21.948]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:22:21.949]: Info: Requested frame rate [60fps]
[2024-11-01 09:22:21.953]: Info: Creating encoder [h264_qsv]
[2024-11-01 09:22:21.953]: Info: Color coding: SDR (Rec. 601)
[2024-11-01 09:22:21.953]: Info: Color depth: 8-bit
[2024-11-01 09:22:21.953]: Info: Color range: JPEG
[2024-11-01 09:22:22.384]: Error: [AVHWDeviceContext @ 000001c4c4416e80] Error creating a MFX session: -9.
[2024-11-01 09:22:22.384]: Error: Failed to derive device context: Unknown error occurred
[2024-11-01 09:22:22.483]: Info: Creating encoder [h264_qsv]
[2024-11-01 09:22:22.483]: Info: Color coding: SDR (Rec. 601)
[2024-11-01 09:22:22.483]: Info: Color depth: 8-bit
[2024-11-01 09:22:22.483]: Info: Color range: JPEG
[2024-11-01 09:22:22.939]: Error: [AVHWDeviceContext @ 000001c4c4417380] Error creating a MFX session: -9.
[2024-11-01 09:22:22.939]: Error: Failed to derive device context: Unknown error occurred
[2024-11-01 09:22:23.063]: Info: Encoder [quicksync] failed
[2024-11-01 09:22:23.184]: Info: Trying encoder [amdvce]
[2024-11-01 09:22:23.324]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:22:23.325]: Info: Active GPU has HAGS disabled
[2024-11-01 09:22:23.325]: Info: Using realtime GPU priority
[2024-11-01 09:22:23.326]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:22:23.326]: Info: Desktop resolution [1366x768]
[2024-11-01 09:22:23.326]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:22:23.326]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:22:23.326]: Info: Requested frame rate [60fps]
[2024-11-01 09:22:23.340]: Info: Encoder [amdvce] is not supported on this GPU
[2024-11-01 09:22:23.383]: Info: Trying encoder [software]
[2024-11-01 09:22:23.435]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:22:23.436]: Info: Active GPU has HAGS disabled
[2024-11-01 09:22:23.436]: Info: Using realtime GPU priority
[2024-11-01 09:22:23.436]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:22:23.436]: Info: Desktop resolution [1366x768]
[2024-11-01 09:22:23.436]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:22:23.437]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:22:23.437]: Info: Requested frame rate [60fps]
[2024-11-01 09:22:23.437]: Info: Creating encoder [libx264]
[2024-11-01 09:22:23.437]: Info: Color coding: SDR (Rec. 601)
[2024-11-01 09:22:23.437]: Info: Color depth: 8-bit
[2024-11-01 09:22:23.437]: Info: Color range: JPEG
[2024-11-01 09:22:23.452]: Info: [libx264 @ 000001c4c4352c40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024-11-01 09:22:23.460]: Info: [libx264 @ 000001c4c4352c40] profile High, level 4.2, 4:2:0, 8-bit
[2024-11-01 09:22:23.517]: Warning: [libx264 @ 000001c4c4352c40] non-strictly-monotonic PTS
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] frame I:1     Avg QP:22.54  size:  1214
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] mb I  I16..4: 100.0%  0.0%  0.0%
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] 8x8 transform intra:0.0%
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] i16 v,h,dc,p: 97%  0%  3%  0%
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 25% 75%  0%  0%  0%  0%  0%
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] i8c dc,h,v,p: 100%  0%  0%  0%
[2024-11-01 09:22:23.557]: Info: [libx264 @ 000001c4c4352c40] kb/s:inf
[2024-11-01 09:22:23.560]: Info: Creating encoder [libx264]
[2024-11-01 09:22:23.560]: Info: Color coding: SDR (Rec. 601)
[2024-11-01 09:22:23.560]: Info: Color depth: 8-bit
[2024-11-01 09:22:23.560]: Info: Color range: JPEG
[2024-11-01 09:22:23.561]: Info: [libx264 @ 000001c4c4352c40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024-11-01 09:22:23.563]: Info: [libx264 @ 000001c4c4352c40] profile High 4:4:4 Predictive, level 4.2, 4:4:4, 8-bit
[2024-11-01 09:22:23.616]: Warning: [libx264 @ 000001c4c4352c40] non-strictly-monotonic PTS
[2024-11-01 09:22:23.639]: Info: [libx264 @ 000001c4c4352c40] frame I:1     Avg QP:33.00  size:  1302
[2024-11-01 09:22:23.639]: Info: [libx264 @ 000001c4c4352c40] mb I  I16..4: 100.0%  0.0%  0.0%
[2024-11-01 09:22:23.639]: Info: [libx264 @ 000001c4c4352c40] 8x8 transform intra:0.0%
[2024-11-01 09:22:23.639]: Info: [libx264 @ 000001c4c4352c40] coded y,u,v intra: 0.0% 0.0% 0.0%
[2024-11-01 09:22:23.639]: Info: [libx264 @ 000001c4c4352c40] i16 v,h,dc,p: 97%  0%  3%  0%
[2024-11-01 09:22:23.639]: Info: [libx264 @ 000001c4c4352c40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 25% 75%  0%  0%  0%  0%  0%
[2024-11-01 09:22:23.640]: Info: [libx264 @ 000001c4c4352c40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024-11-01 09:22:23.640]: Info: [libx264 @ 000001c4c4352c40] kb/s:inf
[2024-11-01 09:22:23.682]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:22:23.683]: Info: Active GPU has HAGS disabled
[2024-11-01 09:22:23.683]: Info: Using realtime GPU priority
[2024-11-01 09:22:23.683]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:22:23.683]: Info: Desktop resolution [1366x768]
[2024-11-01 09:22:23.683]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:22:23.683]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:22:23.683]: Info: Requested frame rate [60fps]
[2024-11-01 09:22:23.698]: Info: 
[2024-11-01 09:22:23.698]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024-11-01 09:22:23.698]: Info: 
[2024-11-01 09:22:23.698]: Info: Found H.264 encoder: libx264 [software]
[2024-11-01 09:22:23.735]: Info: Configuration UI available at [https://localhost:47990]
[2024-11-01 09:22:24.444]: Info: System tray created
[2024-11-01 09:22:24.510]: Info: Registered Sunshine mDNS service
[2024-11-01 09:23:31.935]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024-11-01 09:23:31.936]: Info: Trying encoder [nvenc]
[2024-11-01 09:23:31.952]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:23:31.952]: Info: Active GPU has HAGS disabled
[2024-11-01 09:23:31.952]: Info: Using realtime GPU priority
[2024-11-01 09:23:31.952]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:23:31.953]: Info: Desktop resolution [1366x768]
[2024-11-01 09:23:31.953]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:23:31.953]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:23:31.953]: Info: Requested frame rate [60fps]
[2024-11-01 09:23:31.955]: Info: Encoder [nvenc] is not supported on this GPU
[2024-11-01 09:23:31.957]: Info: Trying encoder [quicksync]
[2024-11-01 09:23:31.974]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:23:31.974]: Info: Active GPU has HAGS disabled
[2024-11-01 09:23:31.974]: Info: Using realtime GPU priority
[2024-11-01 09:23:31.974]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:23:31.974]: Info: Desktop resolution [1366x768]
[2024-11-01 09:23:31.975]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:23:31.975]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:23:31.975]: Info: Requested frame rate [60fps]
[2024-11-01 09:23:31.976]: Info: Creating encoder [h264_qsv]
[2024-11-01 09:23:31.977]: Info: Color coding: SDR (Rec. 601)
[2024-11-01 09:23:31.977]: Info: Color depth: 8-bit
[2024-11-01 09:23:31.977]: Info: Color range: JPEG
[2024-11-01 09:23:32.013]: Error: [AVHWDeviceContext @ 000001c4cb4a5000] Error creating a MFX session: -9.
[2024-11-01 09:23:32.013]: Error: Failed to derive device context: Unknown error occurred
[2024-11-01 09:23:32.014]: Info: Encoder [quicksync] failed
[2024-11-01 09:23:32.023]: Info: Trying encoder [amdvce]
[2024-11-01 09:23:32.039]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:23:32.040]: Info: Active GPU has HAGS disabled
[2024-11-01 09:23:32.040]: Info: Using realtime GPU priority
[2024-11-01 09:23:32.040]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:23:32.040]: Info: Desktop resolution [1366x768]
[2024-11-01 09:23:32.040]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:23:32.040]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:23:32.041]: Info: Requested frame rate [60fps]
[2024-11-01 09:23:32.042]: Info: Encoder [amdvce] is not supported on this GPU
[2024-11-01 09:23:32.044]: Info: Trying encoder [software]
[2024-11-01 09:23:32.056]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:23:32.056]: Info: Active GPU has HAGS disabled
[2024-11-01 09:23:32.056]: Info: Using realtime GPU priority
[2024-11-01 09:23:32.056]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:23:32.057]: Info: Desktop resolution [1366x768]
[2024-11-01 09:23:32.057]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:23:32.057]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:23:32.057]: Info: Requested frame rate [60fps]
[2024-11-01 09:23:32.057]: Info: Creating encoder [libx264]
[2024-11-01 09:23:32.057]: Info: Color coding: SDR (Rec. 601)
[2024-11-01 09:23:32.057]: Info: Color depth: 8-bit
[2024-11-01 09:23:32.057]: Info: Color range: JPEG
[2024-11-01 09:23:32.057]: Info: [libx264 @ 000001c4cb4b8800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024-11-01 09:23:32.059]: Info: [libx264 @ 000001c4cb4b8800] profile High, level 4.2, 4:2:0, 8-bit
[2024-11-01 09:23:32.080]: Warning: [libx264 @ 000001c4cb4b8800] non-strictly-monotonic PTS
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] frame I:1     Avg QP:33.00  size:  1199
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] mb I  I16..4: 100.0%  0.0%  0.0%
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] 8x8 transform intra:0.0%
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] i16 v,h,dc,p: 97%  0%  3%  0%
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 25% 75%  0%  0%  0%  0%  0%
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] i8c dc,h,v,p: 100%  0%  0%  0%
[2024-11-01 09:23:32.097]: Info: [libx264 @ 000001c4cb4b8800] kb/s:inf
[2024-11-01 09:23:32.103]: Info: Creating encoder [libx264]
[2024-11-01 09:23:32.103]: Info: Color coding: SDR (Rec. 601)
[2024-11-01 09:23:32.103]: Info: Color depth: 8-bit
[2024-11-01 09:23:32.103]: Info: Color range: JPEG
[2024-11-01 09:23:32.104]: Info: [libx264 @ 000001c4cb4b8bc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024-11-01 09:23:32.105]: Info: [libx264 @ 000001c4cb4b8bc0] profile High 4:4:4 Predictive, level 4.2, 4:4:4, 8-bit
[2024-11-01 09:23:32.137]: Warning: [libx264 @ 000001c4cb4b8bc0] non-strictly-monotonic PTS
[2024-11-01 09:23:32.156]: Info: [libx264 @ 000001c4cb4b8bc0] frame I:1     Avg QP:33.00  size:  1302
[2024-11-01 09:23:32.156]: Info: [libx264 @ 000001c4cb4b8bc0] mb I  I16..4: 100.0%  0.0%  0.0%
[2024-11-01 09:23:32.156]: Info: [libx264 @ 000001c4cb4b8bc0] 8x8 transform intra:0.0%
[2024-11-01 09:23:32.156]: Info: [libx264 @ 000001c4cb4b8bc0] coded y,u,v intra: 0.0% 0.0% 0.0%
[2024-11-01 09:23:32.156]: Info: [libx264 @ 000001c4cb4b8bc0] i16 v,h,dc,p: 97%  0%  3%  0%
[2024-11-01 09:23:32.156]: Info: [libx264 @ 000001c4cb4b8bc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 25% 75%  0%  0%  0%  0%  0%
[2024-11-01 09:23:32.157]: Info: [libx264 @ 000001c4cb4b8bc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024-11-01 09:23:32.157]: Info: [libx264 @ 000001c4cb4b8bc0] kb/s:inf
[2024-11-01 09:23:32.180]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:23:32.180]: Info: Active GPU has HAGS disabled
[2024-11-01 09:23:32.180]: Info: Using realtime GPU priority
[2024-11-01 09:23:32.180]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:23:32.186]: Info: Desktop resolution [1366x768]
[2024-11-01 09:23:32.186]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:23:32.187]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:23:32.187]: Info: Requested frame rate [60fps]
[2024-11-01 09:23:32.187]: Info: 
[2024-11-01 09:23:32.188]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024-11-01 09:23:32.188]: Info: 
[2024-11-01 09:23:32.188]: Info: Found H.264 encoder: libx264 [software]
[2024-11-01 09:23:32.188]: Info: Executing [Desktop]
[2024-11-01 09:23:32.206]: Info: New streaming session started [active sessions: 1]
[2024-11-01 09:23:32.314]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2024-11-01 09:23:32.324]: Info: CLIENT CONNECTED
[2024-11-01 09:23:32.415]: Info: 
Device Description : Intel(R) HD Graphics 5500
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00001616
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8129 MiB
Feature Level      : 0x0000B100
Capture size       : 1366x768
Offset             : 0x0
Virtual Desktop    : 1366x768
[2024-11-01 09:23:32.416]: Info: Active GPU has HAGS disabled
[2024-11-01 09:23:32.416]: Info: Using realtime GPU priority
[2024-11-01 09:23:32.416]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.591797,0.34668]
Green Primary      : [0.328125,0.570312]
Blue Primary       : [0.150391,0.114258]
White Point        : [0.3125,0.328125]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-11-01 09:23:32.416]: Info: Desktop resolution [1366x768]
[2024-11-01 09:23:32.417]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:23:32.417]: Info: Display refresh rate [59.9985Hz]
[2024-11-01 09:23:32.417]: Info: Requested frame rate [60fps]
[2024-11-01 09:23:32.417]: Info: Creating encoder [libx264]
[2024-11-01 09:23:32.417]: Info: Color coding: SDR (Rec. 709)
[2024-11-01 09:23:32.417]: Info: Color depth: 8-bit
[2024-11-01 09:23:32.417]: Info: Adjusted capture rate to 59.9985fps to better match display
[2024-11-01 09:23:32.417]: Info: Color range: MPEG
[2024-11-01 09:23:32.417]: Info: [libx264 @ 000001c4cb4b8f40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024-11-01 09:23:32.420]: Info: [libx264 @ 000001c4cb4b8f40] profile High, level 4.2, 4:2:0, 8-bit
[2024-11-01 09:23:32.434]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-11-01 09:23:32.775]: Info: Steam audio drivers not found. This is expected if you don't have Steam installed.
[2024-11-01 09:23:32.843]: Info: Audio capture format is [F32 48000 5.1]
[2024-11-01 09:23:32.845]: Info: Opus initialized: 48 kHz, 6 channels, 1536 kbps (total), LOWDELAY
[2024-11-01 09:25:37.791]: Info: CLIENT DISCONNECTED
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] frame I:2     Avg QP:19.38  size: 19675
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] frame P:5100  Avg QP:10.82  size: 19217
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] mb I  I16..4: 85.8%  9.1%  5.1%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] mb P  I16..4:  1.0%  0.4%  0.5%  P16..4: 12.3%  0.0%  0.0%  0.0%  0.0%    skip:85.9%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] 8x8 transform intra:21.7% inter:19.3%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] coded y,uvDC,uvAC intra: 48.0% 44.3% 38.4% inter: 6.8% 4.0% 2.5%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] i16 v,h,dc,p: 53% 41%  4%  1%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 32% 18%  5%  5%  5%  7%  4%  9%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 34% 10%  5%  5%  5%  6%  5%  7%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] i8c dc,h,v,p: 50% 29% 16%  5%
[2024-11-01 09:25:37.794]: Info: [libx264 @ 000001c4cb4b8f40] Weighted P-Frames: Y:0.1% UV:0.1%
[2024-11-01 09:25:37.795]: Info: [libx264 @ 000001c4cb4b8f40] kb/s:9224.46
ReenigneArcher commented 3 weeks ago

I think this is the same as this issue: https://github.com/LizardByte/Sunshine/issues/1784#issuecomment-1890247427

iz8mbw commented 3 weeks ago

Oh, yes. And is planned a fix?

cgutman commented 3 weeks ago

I don't think so. Intel has dropped support for your (10 year old) GPU in their QuickSync implementation.

Reverting back to a very old version of the QuickSync libraries compatible with Broadwell would break newer features like AV1 and HEVC 4:4:4 support.

iz8mbw commented 3 weeks ago

Ok but i'ts not possible to use 2 libraries? I mean, one for the old hardware and the other one for the new hardware? It's a shame we can't use GPU hardware encodig if the GPU (even if it's old) support the hardware encoding... Also in the "Minimum Requirements" of the README the "Intel: VAAPI-compatible" is listed as compatible and in that list there are also more old GPUs.

ReenigneArcher commented 3 weeks ago

@iz8mbw It looks like we need to update that section of the docs for sure.

@cgutman is "Skylake or newer" what we should list in the readme?

iz8mbw commented 3 weeks ago

...so I assume there is no hope to have these GPUs working...

cgutman commented 3 weeks ago

Ok but i'ts not possible to use 2 libraries? I mean, one for the old hardware and the other one for the new hardware?

The MFX/oneVPL library used for QuickSync is deeply coupled with FFmpeg, so we would probably have to move FFmpeg into a separate library so we could ship 2 of them with Sunshine. It definitely wouldn't be easy or likely worth the maintenance and testing burden.

It's a shame we can't use GPU hardware encodig if the GPU (even if it's old) support the hardware encoding...

I agree, but it's not something we can reasonably control. We're at the mercy of what Intel is willing to support here. You might be able to compile your own build using an older version of the MFX library that will work on your hardware, but FFmpeg also has its own minimum version of the MFX library. If you're below that, you'll need to also downgrade FFmpeg to match. You can see how this gets to be a non-trivial problem pretty quick.

...so I assume there is no hope to have these GPUs working...

I believe they work on Linux today. Unlike the official QuickSync libraries, VAAPI is much better about backwards compatibility. You can still compile the open-source VAAPI drivers for these old GPUs and they will work on modern distros today. [Edit: For fun, I booted ArchLinux on my Intel Ivy Bridge testbench and it had working hardware encoding through VAAPI]

There's also a possibility that we will implement a MediaFoundation-based encoder in the future for supporting Windows ARM64 devices. That would be independent of the QuickSync libraries, so it would also enable functionality for older GPUs that Intel dropped support for.

@cgutman is "Skylake or newer" what we should list in the readme?

For Windows, I believe that is correct.

iz8mbw commented 3 weeks ago

But since VAAPI works also on Windows, why don't use it?

cgutman commented 3 weeks ago

But since VAAPI works also on Windows, why don't use it?

I don't think it would solve anything in your case because VAOn12 (the VAAPI backend for Windows) requires encoding support via D3D12 Video APIs. Those were not introduced until Windows 11, which was after driver support for your GPU was already discontinued.

According to Microsoft's blog post, D3D12 video encoding is only supported on Ice Lake and later.