LS3solutions / LS3solutions/openstream-server
Connection terminated when using DISPLAY3
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 205
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
I can configure openstream to use DISPLAY1 or DISPLAY2 through h264NVENC.conf.
However, with DISPLAY3, when connecting with moonlight-qt, after watching my monitors flash and reconfigure for a bit, the connection is terminated.
dxgi-info
```
====== ADAPTER =====
Device Name : NVIDIA GeForce GTX 1070
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001B81
Device Video Mem : 8088 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16314 MiB
====== OUTPUT ======
Output Name : \\.\DISPLAY1
AttachedToDesktop : yes
Resolution : 2560x1440
Output Name : \\.\DISPLAY2
AttachedToDesktop : yes
Resolution : 2560x1440
Output Name : \\.\DISPLAY3
AttachedToDesktop : yes
Resolution : 1920x1200
====== ADAPTER =====
Device Name : Intel(R) HD Graphics 4600
Device Vendor ID : 0x00008086
Device Device ID : 0x00000412
Device Video Mem : 112 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 2048 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 : 16314 MiB
====== OUTPUT ======
```
console output when attempting to use DISPLAY3
```
[encoder] -- [nvenc]
[file_state] -- [C:/Program Files/Openstream/sunshine_state.json]
[ping_timeout] -- [6000]
[hevc_mode] -- [1]
[nv_rc] -- [auto]
[pools] -- [8]
[fec_percentage] -- [30]
[file_apps] -- [C:/Program Files/Openstream/assets/apps_windows.json]
[min_threads] -- [8]
[system_priority] -- [2]
[sunshine_name] -- [OpenStream]
[nv_preset] -- [llhq]
[min_log_level] -- [2]
[output_name] -- [\\.\DISPLAY3]
[2021-04-28 21:12:58.172054] [0x00003380] [info] Starting streamming host...
[2021:04:28:21:12:58]: Info:
Device Description : NVIDIA GeForce GTX 1070
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001B81
Device Video Mem : 8088 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16314 MiB
Feature Level : 0x0000C100
Capture size : 1920x1200
[2021:04:28:21:12:58]: Error: Could not send a frame for encoding: Invalid argument
[2021:04:28:21:12:58]: Info:
Device Description : NVIDIA GeForce GTX 1070
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001B81
Device Video Mem : 8088 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16314 MiB
Feature Level : 0x0000C100
Capture size : 1920x1200
[2021:04:28:21:12:58]: Info:
Device Description : NVIDIA GeForce GTX 1070
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001B81
Device Video Mem : 8088 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16314 MiB
Feature Level : 0x0000C100
Capture size : 1920x1200
[2021:04:28:21:12:58]: Error: Failed to create video output texture [0x80070057]
[2021:04:28:21:12:58]: Info: Found encoder nvenc: [h264_nvenc]
[2021:04:28:21:13:26]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:26]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:26]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:26]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:27]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:27]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:27]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:27]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:29]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:29]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: CLIENT CONNECTED TO RTSP
[2021:04:28:21:13:32]: Info: CLIENT DISCONNECTED FROM RTSP
[2021:04:28:21:13:32]: Info: CLIENT CONNECTED
[2021:04:28:21:13:32]: Info: clone
[2021:04:28:21:13:32]: Info: 1
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:32]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:35]: Error: Failed to locate an output device
[2021:04:28:21:13:35]: Error: Failed to locate an output device
::::extend
[2021:04:28:21:13:37]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:37]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:37]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:37]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:37]: Info: extend
[2021:04:28:21:13:37]: Info: 2
[2021:04:28:21:13:40]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:40]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:44]: Info: /CN=NVIDIA GameStream Client -- verfied
[2021:04:28:21:13:44]: Info: /CN=NVIDIA GameStream Client -- verfied
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the DISPLAY3 connection failure using h264NVENC.conf and the reported display arrangement. Compare the console errors, especially invalid-argument, failed-texture, and failed-output-device messages, with a working DISPLAY1 or DISPLAY2 stream. Done means DISPLAY3 remains connected and streams without those failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- audio-video-rtc, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100