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

Intel Quicksync Encoder not found #904

Closed
3 tasks done
justinglavin opened this issue Feb 9, 2023 · 9 comments
Closed
3 tasks done

Intel Quicksync Encoder not found #904

justinglavin opened this issue Feb 9, 2023 · 9 comments
Labels
os:Windows OS is Windows

Comments

@justinglavin
Copy link

justinglavin commented Feb 9, 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

I am experiencing image freezing when using Hardware Accelerated GPU Scheduling which is required for DLSS3 and Frame Generation. As I understand, this is a bug with the NVENC encoder.

I have enabled the Intel GPU in my BIOS and installed the latest Intel drivers. I have configured Sunshine to use the Intel Quicksync Encoder but it is unable to find it and it resorts to using the NVENC encoder.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

Windows 11 Pro 10.0.22000 Build 22000

Architecture

64 bit

Sunshine commit or version

v0.18.1

Package

Windows - installer

GPU Type

Nvidia

GPU Model

RTX 4070Ti

GPU Driver/Mesa Version

528.49

Capture Method (Linux Only)

No response

Relevant log output

[2023:02:08:18:52:46]: Info: Compiling shaders...
[2023:02:08:18:52:46]: Info: Compiled shaders
[2023:02:08:18:52:46]: Info: Trying encoder [quicksync]
[2023:02:08:18:52:46]: Info: ddprobe.exe [1] [] returned: 0x887A0004
[2023:02:08:18:52:46]: Info: ddprobe.exe [2] [] returned: 0x00000000
[2023:02:08:18:52:46]: Info: Set GPU preference: 2
[2023:02:08:18:52:46]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:46]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:46]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:46]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:46]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:46]: Info: Color range: [JPEG]
[2023:02:08:18:52:46]: Error: Could not open codec [h264_qsv]: Function not implemented
[2023:02:08:18:52:47]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:47]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:47]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:47]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:47]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:47]: Info: Color range: [JPEG]
[2023:02:08:18:52:47]: Error: Could not open codec [h264_qsv]: Function not implemented
[2023:02:08:18:52:47]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:47]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:47]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:47]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:47]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:47]: Info: Color range: [JPEG]
[2023:02:08:18:52:47]: Error: Could not open codec [h264_qsv]: Function not implemented
[2023:02:08:18:52:47]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:47]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:47]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:47]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:47]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:47]: Info: Color range: [JPEG]
[2023:02:08:18:52:47]: Error: Could not open codec [h264_qsv]: Function not implemented
[2023:02:08:18:52:47]: Info: Encoder [quicksync] failed
[2023:02:08:18:52:47]: Error: Couldn't find any working encoder matching [quicksync]
[2023:02:08:18:52:47]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:02:08:18:52:47]: Info: Trying encoder [nvenc]
[2023:02:08:18:52:48]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:48]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:48]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:48]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:48]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:48]: Info: Color range: [JPEG]
[2023:02:08:18:52:48]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:48]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:48]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:48]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:48]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:48]: Info: Color range: [JPEG]
[2023:02:08:18:52:48]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:48]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:48]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:48]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:48]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:48]: Info: Color range: [JPEG]
[2023:02:08:18:52:48]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:48]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:48]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:48]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:48]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:48]: Info: Color range: [JPEG]
[2023:02:08:18:52:49]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:49]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:49]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:49]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:49]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:49]: Info: Color range: [JPEG]
[2023:02:08:18:52:49]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:49]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:49]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:49]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:49]: Info: SDR color coding [Rec. 709]
[2023:02:08:18:52:49]: Info: Color range: [JPEG]
[2023:02:08:18:52:49]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2023:02:08:18:52:49]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:49]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:49]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:49]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:49]: Info: SDR color coding [Rec. 709]
[2023:02:08:18:52:49]: Info: Color range: [JPEG]
[2023:02:08:18:52:49]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:49]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:49]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:49]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:49]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:49]: Info: Color range: [JPEG]
[2023:02:08:18:52:50]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16265 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x84
Virtual Desktop    : 7680x1524
[2023:02:08:18:52:50]: Info: Desktop resolution [2560x1440]
[2023:02:08:18:52:50]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:02:08:18:52:50]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:02:08:18:52:50]: Info: SDR color coding [Rec. 601]
[2023:02:08:18:52:50]: Info: Color range: [JPEG]
[2023:02:08:18:52:50]: Warning: nvenc: hevc: replacing nalu prefix data
[2023:02:08:18:52:50]: Info: 
[2023:02:08:18:52:50]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:02:08:18:52:50]: Info: 
[2023:02:08:18:52:50]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:02:08:18:52:50]: Info: Configuration UI available at [https://localhost:47990]
[2023:02:08:18:52:50]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:02:08:18:52:50]: Info: Registered Sunshine mDNS service
[2023:02:08:18:52:52]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:02:08:18:52:53]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:02:08:18:52:53]: Info: /CN=NVIDIA GameStream Client -- verified
@ReenigneArcher
Copy link
Member

what CPU model?

@justinglavin
Copy link
Author

11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz 3.60 GHz

@justinglavin
Copy link
Author

I tried plugging in a monitor to the onboard Intel GPU. I configured Sunshine to use the Intel display adapter and the display connected to it.

With the display set as the Intel GPU, it was able to find the Quicksync encoder. I ran the game on this monitor but still used my 4070Ti to render.

This worked, but unfortunately the performance/quality was not even close to NVENC so I'm back to square one.

@lzkk4
Copy link

lzkk4 commented Feb 12, 2023

👋 @lzkk4, this appears to be a duplicate of a pre-existing issue
@ReenigneArcher
sorry,but iseem to different.from #917.
the issue #904 is finally done and should be closed.
but my issue #917 is hardware encoder not work on 4th intel igpu,
it work well on intel 11th Xe igpu,i konw.

@lzkk4
Copy link

lzkk4 commented Feb 12, 2023

👋 @lzkk4, this appears to be a duplicate of a pre-existing issue
@ReenigneArcher
sorry,but iseem to different.from #917.
the issue #904 is finally done and should be closed.
but my issue #917 is hardware encoder not work on 4th intel igpu,
it work well on intel 11th Xe igpu,i konw.

i have only one gpu,and monitor on board

@ReenigneArcher
Copy link
Member

@lzkk4 we will track the issue here, thanks.

@lzkk4
Copy link

lzkk4 commented Feb 13, 2023

1156g7,Xe gpu,h264_qsv found,hevc_qsv found.
j5005,uhd605,h264_qsv found.
4790k,hd4600,not found qsv.

actually,all of those igpu support h264 and hevc encode,but only Xe work.

@Nonary
Copy link
Collaborator

Nonary commented Mar 9, 2023

@justinglavin

The bug with freezing and HAGS has been fixed for the past month or so since the Feb release of NVIDIA GPU drivers.

@Nonary
Copy link
Collaborator

Nonary commented Mar 12, 2023

This is a limitation with the DXGI API used to capture the display, basically we can't capture video using different adapters. As you figured out already, if you attach the monitor to your motherboard HDMI output instead, it would allow you to do this. Because at that point, NVIDIA Optimus would "kick in". However NVENC does a better job at encoding so you really wouldn't want to do this unless you absolutely have to.

I am closing out this issue as it is more of a limitation of the Windows API as opposed to Sunshine.
There are ways around this, such as using hooks to capture the display but it could be detected as a hack and likely have less performance than the windows API implementation.

@Nonary Nonary closed this as completed Mar 12, 2023
@Nonary Nonary added wontfix This will not be worked on os:Windows:10 os:Windows OS is Windows labels Mar 12, 2023
@ReenigneArcher ReenigneArcher marked this as a duplicate of #917 Dec 19, 2024
@ReenigneArcher ReenigneArcher removed the wontfix This will not be worked on label Dec 19, 2024
@ReenigneArcher ReenigneArcher closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:Windows OS is Windows
Projects
None yet
Development

No branches or pull requests

4 participants