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

Sunshine is unable to force a Specific Encoder #243

Closed
tristan-k opened this issue Jul 7, 2022 · 2 comments
Closed

Sunshine is unable to force a Specific Encoder #243

tristan-k opened this issue Jul 7, 2022 · 2 comments
Labels
invalid:support This issue appears to be a support request. os:Windows OS is Windows

Comments

@tristan-k
Copy link

Describe the Bug

Forcing Sunshine to use a specific encoder (here nVidia NVENC) isn't working since it is not recognized. The Nvidia card is not used for display out because I'll have to use the APU (Ryzen 7 5700G) in order to get AMD FreeSync support for my Monitor. How can I use the APU as display out device and force nVidia NVENC?

.\tools\dxgi-info.exe
====== ADAPTER =====
Device Name      : AMD Radeon(TM) Graphics
Device Vendor ID : 0x00001002
Device Device ID : 0x00001638
Device Video Mem : 496 MiB
Device Sys Mem   : 0 MiB
Share Sys Mem    : 7878 MiB

    ====== OUTPUT ======
    Output Name       : \\.\DISPLAY1
    AttachedToDesktop : yes
    Resolution        : 1536x864

====== ADAPTER =====
Device Name      : NVIDIA GeForce GTX 1660 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002182
Device Video Mem : 5991 MiB
Device Sys Mem   : 0 MiB
Share Sys Mem    : 7878 MiB

    ====== OUTPUT ======
====== ADAPTER =====
Device Name      : Microsoft Basic Render Driver
Device Vendor ID : 0x00001414
Device Device ID : 0x0000008C
Device Video Mem : 0 MiB
Device Sys Mem   : 0 MiB
Share Sys Mem    : 7878 MiB
[2022:07:07:14:04:28]: Info: Compiling shaders...
[2022:07:07:14:04:28]: Info: Compiled shaders
[2022:07:07:14:04:28]: Info: //////////////////////////////////////////////////////////////////
[2022:07:07:14:04:28]: Info: //                                                              //
[2022:07:07:14:04:28]: Info: //   Testing for available encoders, this may generate errors.  //
[2022:07:07:14:04:28]: Info: //   You can safely ignore those errors.                        //
[2022:07:07:14:04:28]: Info: //                                                              //
[2022:07:07:14:04:28]: Info: //////////////////////////////////////////////////////////////////
[2022:07:07:14:04:28]: Info: Trying encoder [nvenc]
[2022:07:07:14:04:28]: Info:
Device Description : AMD Radeon(TM) Graphics
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00001638
Device Video Mem   : 496 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 7878 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2022:07:07:14:04:28]: Info: Color coding [Rec. 601]
[2022:07:07:14:04:28]: Info: Color range: [JPEG]
[2022:07:07:14:04:28]: Error: Could not open codec [h264_nvenc]: No such file or directory
[2022:07:07:14:04:28]: Info:
Device Description : AMD Radeon(TM) Graphics
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00001638
Device Video Mem   : 496 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 7878 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2022:07:07:14:04:28]: Info: Color coding [Rec. 601]
[2022:07:07:14:04:28]: Info: Color range: [JPEG]
[2022:07:07:14:04:28]: Error: Could not open codec [h264_nvenc]: No such file or directory
[2022:07:07:14:04:28]: Info:
Device Description : AMD Radeon(TM) Graphics
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00001638
Device Video Mem   : 496 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 7878 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2022:07:07:14:04:28]: Info: Color coding [Rec. 601]
[2022:07:07:14:04:28]: Info: Color range: [JPEG]
[2022:07:07:14:04:28]: Error: Could not open codec [h264_nvenc]: No such file or directory
[2022:07:07:14:04:28]: Info:
Device Description : AMD Radeon(TM) Graphics
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00001638
Device Video Mem   : 496 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 7878 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2022:07:07:14:04:28]: Info: Color coding [Rec. 601]
[2022:07:07:14:04:28]: Info: Color range: [JPEG]
[2022:07:07:14:04:28]: Error: Could not open codec [h264_nvenc]: No such file or directory
[2022:07:07:14:04:28]: Info: Encoder [nvenc] failed
[2022:07:07:14:04:28]: Info:
[2022:07:07:14:04:28]: Info: //////////////////////////////////////////////////////////////
[2022:07:07:14:04:28]: Info: //                                                          //
[2022:07:07:14:04:28]: Info: // Ignore any errors mentioned above, they are not relevant //
[2022:07:07:14:04:28]: Info: //                                                          //
[2022:07:07:14:04:28]: Info: //////////////////////////////////////////////////////////////
[2022:07:07:14:04:28]: Info:
[2022:07:07:14:04:28]: Fatal: Couldn't find any encoder matching [nvenc]

Expected Behavior

The specific encoder (here nVidia NVENC) should be forced regardless of which device (here Ryzen 7 5700G APU) is used for display out.

Additional Context

No response

Sunshine Host Operating System and Version

Windows 10

Architecture

64 bit

Sunshine Version

0.14.0

GPU Type

Nvidia

GPU Model

GTX 1660 Ti

GPU Driver/Mesa Version

516.59

Capture Method (Linux Only)

No response

@ReenigneArcher ReenigneArcher added invalid:support This issue appears to be a support request. os:Windows:10 os:Windows OS is Windows labels Jul 7, 2022
@github-actions
Copy link

github-actions bot commented Jul 7, 2022

👋 @tristan-k, we use the issue tracker exclusively for bug reports. However, this issue appears to be a support request. Please use our Discord Server to get help. Thanks.

@github-actions github-actions bot closed this as completed Jul 7, 2022
@github-actions github-actions bot locked as off-topic and limited conversation to collaborators Jul 7, 2022
@ReenigneArcher
Copy link
Member

ReenigneArcher commented Jul 7, 2022

On Windows, you can only use the gpu that is rendering the monitor you select. See here: https://sunshinestream.readthedocs.io/en/latest/about/advanced_usage.html#adapter-name

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid:support This issue appears to be a support request. os:Windows OS is Windows
Projects
None yet
Development

No branches or pull requests

2 participants