Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The quicksync encoder cannot be enabled with Intel® HD Graphics 4400 #1784

Closed
3 tasks done
samusv5 opened this issue Oct 26, 2023 · 7 comments
Closed
3 tasks done

The quicksync encoder cannot be enabled with Intel® HD Graphics 4400 #1784

samusv5 opened this issue Oct 26, 2023 · 7 comments
Labels

Comments

@samusv5
Copy link

samusv5 commented Oct 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

Sunshine couldn't enable hardware encoding on my laptop with i5 4300U and could only stream at a very low frame rate using software encoding

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

19045.3570

Architecture

64 bit

Sunshine commit or version

0.21.0

Package

Windows - installer

GPU Type

Intel

GPU Model

Intel® HD Graphics 4400

GPU Driver/Mesa Version

20.19.15.4531

Capture Method (Linux Only)

No response

Config

qsv_preset = fast

Apps

No response

Relevant log output

[2023:10:26:16:15:14]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2023:10:26:16:15:14]: Info: Sunshine version: 0.21.0.ab3ff2d355985a61d6d3420a3982333b6010000f
[2023:10:26:16:15:14]: Info: Compiling shaders...
[2023:10:26:16:15:15]: Info: System tray created
[2023:10:26:16:15:15]: Info: Compiled shaders
[2023:10:26:16:15:15]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:10:26:16:15:15]: Info: Trying encoder [nvenc]
[2023:10:26:16:15:16]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2023:10:26:16:15:16]: Info: Set GPU preference: 1
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: Encoder [nvenc] is not supported on this GPU
[2023:10:26:16:15:16]: Info: Trying encoder [quicksync]
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: SDR color coding [Rec. 601]
[2023:10:26:16:15:16]: Info: Color depth: 8-bit
[2023:10:26:16:15:16]: Info: Color range: [JPEG]
[2023:10:26:16:15:16]: Error: [AVHWDeviceContext @ 000001ca0e9a49c0] Error creating a MFX session: -9.
[2023:10:26:16:15:16]: Error: Failed to derive device context: Unknown error occurred
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: SDR color coding [Rec. 601]
[2023:10:26:16:15:16]: Info: Color depth: 8-bit
[2023:10:26:16:15:16]: Info: Color range: [JPEG]
[2023:10:26:16:15:16]: Error: [AVHWDeviceContext @ 000001ca0e9a43c0] Error creating a MFX session: -9.
[2023:10:26:16:15:16]: Error: Failed to derive device context: Unknown error occurred
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: SDR color coding [Rec. 601]
[2023:10:26:16:15:16]: Info: Color depth: 8-bit
[2023:10:26:16:15:16]: Info: Color range: [JPEG]
[2023:10:26:16:15:16]: Error: [AVHWDeviceContext @ 000001ca0e9a3c00] Error creating a MFX session: -9.
[2023:10:26:16:15:16]: Error: Failed to derive device context: Unknown error occurred
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: SDR color coding [Rec. 601]
[2023:10:26:16:15:16]: Info: Color depth: 8-bit
[2023:10:26:16:15:16]: Info: Color range: [JPEG]
[2023:10:26:16:15:16]: Error: [AVHWDeviceContext @ 000001ca0e9a4180] Error creating a MFX session: -9.
[2023:10:26:16:15:16]: Error: Failed to derive device context: Unknown error occurred
[2023:10:26:16:15:16]: Info: Encoder [quicksync] failed
[2023:10:26:16:15:16]: Info: Trying encoder [amdvce]
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: Encoder [amdvce] is not supported on this GPU
[2023:10:26:16:15:16]: Info: Trying encoder [software]
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: 
Device Description : Intel(R) HD Graphics Family
Device Vendor ID   : 0x00008086
Device Device ID   : 0x00000A16
Device Video Mem   : 112 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 2048 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:10:26:16:15:16]: Info: Active GPU has HAGS disabled
[2023:10:26:16:15:16]: Info: Using realtime GPU priority
[2023:10:26:16:15:16]: Info: Desktop resolution [1920x1080]
[2023:10:26:16:15:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:26:16:15:16]: Info: Display refresh rate [60.0495Hz]
[2023:10:26:16:15:16]: Info: Requested frame rate [60fps]
[2023:10:26:16:15:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.642578,0.335938]
Green Primary      : [0.313477,0.620117]
Blue Primary       : [0.151367,0.0527344]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:26:16:15:16]: Info: SDR color coding [Rec. 601]
[2023:10:26:16:15:16]: Info: Color depth: 8-bit
[2023:10:26:16:15:16]: Info: Color range: [JPEG]
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] profile High, level 4.2, 4:2:0, 8-bit
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] frame I:1     Avg QP: 6.01  size:  1174
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] mb I  I16..4: 100.0%  0.0%  0.0%
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] 8x8 transform intra:0.0%
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] i16 v,h,dc,p: 99%  0%  1%  0%
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] i8c dc,h,v,p: 100%  0%  0%  0%
[2023:10:26:16:15:16]: Info: [libx264 @ 000001ca0e9c22c0] kb/s:563.52
[2023:10:26:16:15:16]: Info: 
[2023:10:26:16:15:16]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:10:26:16:15:16]: Info: 
[2023:10:26:16:15:16]: Info: Found H.264 encoder: libx264 [software]
[2023:10:26:16:15:16]: Info: Configuration UI available at [https://localhost:47990]
[2023:10:26:16:15:17]: Info: Registered Sunshine mDNS service
[2023:10:26:16:15:36]: Info: Opening UI from system tray
[2023:10:26:16:15:36]: Info: cmd /C "start https://localhost:47990" running with PID 17152
[2023:10:26:16:15:36]: Info: Opened url [https://localhost:47990]
@cgutman
Copy link
Collaborator

cgutman commented Oct 27, 2023

I think this is due to setting low_power=1 on older GPUs that don't support that feature. We might want to add a fallback qsv entry to be used in cases where the normal one fails due to low_power=1. It's unclear if this will result in acceptable encoding performance though.

@cgutman
Copy link
Collaborator

cgutman commented Jan 13, 2024

Okay, it's not low_power=1, but in fact that FFmpeg/oneVPL requires a newer graphics driver than this ancient hardware supports. That's why it's unable to even create a MFX context here.

@ReenigneArcher
Copy link
Member

@cgutman do you know the minimum graphics driver required? I can add it to the docs.

@LizardByte-bot
Copy link
Member

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
Copy link
Member

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

@LizardByte-bot LizardByte-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 22, 2024
@BRCook
Copy link

BRCook commented May 17, 2024

I would love to un-close this in case there is any way to add support for old Intel HD graphics. I have some small SFF pcs with 4000-series processors that I'd like to use Sunshine with.

@salvitch
Copy link

salvitch commented Oct 3, 2024

I have the same issue as originally described and I'm running with an even older processor i5-3210M with an HD4000. I double checked and supposedly this is the second generation to have quick sync. I was just hoping to test the performance with it, but
Still I'm not sure if its worth your times as DEVS if you think the performance is not going to be noticeable. So far the software encoding works ok at 1280x720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants