LS3solutions / openstream-server

GNU General Public License v3.0
201 stars 26 forks source link

problems with two displays #12

Open bluenote73 opened 3 years ago

bluenote73 commented 3 years ago

Hi m4rkoup. Really loving this. The combination of widespread good moonlight clients and being able to utilize my AMD hardware is really something. But right now I am having to manually set Windows to only display on one display before utilizing openstream. I looked up the config options to specify display (dxgi-info.exe I had to use from the sunshine package, the .exe. doesn't run from open-stream package). But when I do, sometimes it still specifies wrong resolution, but if I relaunch sometimes it's correct again. But even if it is correct, my client disconnects, and it gets this weird series of messages each time (while mode switches between extend to clone seem to happen on the LCD).

[2021:02:05:15:30:14]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:14]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:14]: Info: CLIENT CONNECTED TO RTSP [2021:02:05:15:30:14]: Info: CLIENT DISCONNECTED FROM RTSP [2021:02:05:15:30:14]: Info: CLIENT CONNECTED ::::extend [2021:02:05:15:30:14]: Info: clone [2021:02:05:15:30:14]: Info: 1 [2021:02:05:15:30:14]: Error: Failed to locate an output device [2021:02:05:15:30:16]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:16]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:16]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:16]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:17]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:17]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:18]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:18]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:18]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:18]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:18]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:18]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:30:18]: Info: extend [2021:02:05:15:30:18]: Info: 2 [2021:02:05:15:30:19]: Info: /CN=NVIDIA GameStream Client -- verfied`

As a workaround I tried to write a cmd batch to execute as "prep" and make my steam game launch directly after forcing windows to displayswitch.exe /external but this also fails. Sorry to be a complainer, I hope this can be fixed :) Thank you!

EDIT: I did a bit more experimenting. And it seems specifying the display in the h264 file always breaks it for me, even if I then set windows to ONLY display on one monitor. When I remove that, AND set windows to one monitor then it succeeds, still some mode switches (weird). Here is that output:

[2021:02:05:15:39:27]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:02:05:15:39:27]: Info: CLIENT CONNECTED TO RTSP [2021:02:05:15:39:27]: Info: CLIENT DISCONNECTED FROM RTSP [2021:02:05:15:39:27]: Info: CLIENT CONNECTED ::::external [2021:02:05:15:39:27]: Info: clone [2021:02:05:15:39:27]: Info: 1

Device Description : Radeon (TM) RX 480 Graphics Device Vendor ID : 0x00001002 Device Device ID : 0x000067DF Device Video Mem : 8171 MiB Device Sys Mem : 0 MiB Share Sys Mem : 8164 MiB Feature Level : 0x0000C000 Capture size : 1680x1050 [2021:02:05:15:39:31]: Info: external [2021:02:05:15:39:31]: Info: 3 2021:02:05:15:39:32: Info: /CN=NVIDIA GameStream Client -- verfied 2021:02:05:15:39:32: Info: /CN=NVIDIA GameStream Client -- verfied

Device Description : Radeon (TM) RX 480 Graphics Device Vendor ID : 0x00001002 Device Device ID : 0x000067DF Device Video Mem : 8171 MiB Device Sys Mem : 0 MiB Share Sys Mem : 8164 MiB Feature Level : 0x0000C000 Capture size : 1920x1080 2021:02:05:15:39:32: Info: /CN=NVIDIA GameStream Client -- verfied 2021:02:05:15:39:32: Info: /CN=NVIDIA GameStream Client -- verfied

GNUDimarik commented 3 years ago

Thanks for reporting. I'll check. But I'm not sure there is a good support for this. It need to be checked