ClassicOldSong / Apollo

Sunshine fork
GNU General Public License v3.0
504 stars 13 forks source link

Moonlight just displays Black #114

Open lhjt opened 1 day ago

lhjt commented 1 day ago

Hi

Thanks for this project. Unfortunately I am running into an issue where connecting with the latest moonlight client (from mac) cannot reach my windows 10 host machine running apollo.

Logs here ``` [2024-11-21 17:43:18.659]: Info: Apollo version: v0.2.6-alpha.2 [2024-11-21 17:43:18.660]: Info: Package Publisher: SudoMaker [2024-11-21 17:43:18.660]: Info: Publisher Website: https://www.sudomaker.com [2024-11-21 17:43:18.660]: Info: Get support: https://github.com/ClassicOldSong/Apollo/issues [2024-11-21 17:43:19.190]: Info: nvprefs: No need to modify application profile settings [2024-11-21 17:43:19.190]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile [2024-11-21 17:43:19.372]: Info: Compiling shaders... [2024-11-21 17:43:19.735]: Info: Compiled shaders [2024-11-21 17:43:19.762]: Info: Configuration UI available at [https://localhost:47990] [2024-11-21 17:43:20.553]: Info: Registered Apollo mDNS service [2024-11-21 17:44:20.112]: Info: Virtual Display created at \\.\DISPLAY22 [2024-11-21 17:44:20.165]: Info: Setting display \\.\DISPLAY22 primary [2024-11-21 17:44:20.176]: Info: Setting display \\.\DISPLAY22 primary failed! Are you using Windows 11 24H2? [2024-11-21 17:44:20.176]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024-11-21 17:44:20.176]: Info: Trying encoder [nvenc] [2024-11-21 17:44:21.526]: Info: ddprobe.exe 1 \\.\DISPLAY22 --verify-frame-capture returned 0x887A0027 [2024-11-21 17:44:22.591]: Info: ddprobe.exe 2 \\.\DISPLAY22 --verify-frame-capture returned 0x887A0027 [2024-11-21 17:44:23.631]: Info: ddprobe.exe 3 \\.\DISPLAY22 --verify-frame-capture returned 0x887A0027 [2024-11-21 17:44:24.742]: Info: ddprobe.exe 4 \\.\DISPLAY22 --verify-frame-capture returned 0x887A0027 [2024-11-21 17:44:25.336]: Info: ddprobe.exe 1 \\.\DISPLAY22 returned 0x00000000 [2024-11-21 17:44:25.336]: Info: Set GPU preference: 1 [2024-11-21 17:44:25.960]: Info: Device Description : NVIDIA GeForce RTX 4090 Device Vendor ID : 0x000010DE Device Device ID : 0x00002684 Device Video Mem : 24142 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16383 MiB Feature Level : 0x0000B100 Capture size : 800x600 Offset : 1920x0 Virtual Desktop : 2720x1080 [2024-11-21 17:44:25.961]: Info: Active GPU has HAGS disabled [2024-11-21 17:44:25.961]: Info: Using realtime GPU priority [2024-11-21 17:44:25.961]: 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 [2024-11-21 17:44:25.964]: Info: Desktop resolution [800x600] [2024-11-21 17:44:25.965]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-11-21 17:44:25.965]: Info: Display refresh rate [60Hz] [2024-11-21 17:44:25.965]: Info: Requested frame rate [60fps] [2024-11-21 17:44:25.965]: Info: Client dynamicRange: 0, Display is HDR: false [2024-11-21 17:44:25.966]: Info: Creating encoder [h264_nvenc] [2024-11-21 17:44:25.966]: Info: Color coding: SDR (Rec. 601) [2024-11-21 17:44:25.966]: Info: Color depth: 8-bit [2024-11-21 17:44:25.966]: Info: Color range: JPEG [2024-11-21 17:44:26.151]: Info: NvEnc: created encoder H.264 P1 two-pass rfi [2024-11-21 17:44:26.239]: Info: Client dynamicRange: 0, Display is HDR: false [2024-11-21 17:44:26.239]: Info: Creating encoder [hevc_nvenc] [2024-11-21 17:44:26.239]: Info: Color coding: SDR (Rec. 601) [2024-11-21 17:44:26.239]: Info: Color depth: 8-bit [2024-11-21 17:44:26.240]: Info: Color range: JPEG [2024-11-21 17:44:26.384]: Info: NvEnc: created encoder HEVC P1 two-pass rfi [2024-11-21 17:44:26.492]: Info: Client dynamicRange: 0, Display is HDR: false [2024-11-21 17:44:26.492]: Info: Creating encoder [av1_nvenc] [2024-11-21 17:44:26.492]: Info: Color coding: SDR (Rec. 601) [2024-11-21 17:44:26.492]: Info: Color depth: 8-bit [2024-11-21 17:44:26.492]: Info: Color range: JPEG [2024-11-21 17:44:26.641]: Info: NvEnc: created encoder AV1 P1 two-pass rfi [2024-11-21 17:44:26.744]: Info: Client dynamicRange: 0, Display is HDR: false [2024-11-21 17:44:26.744]: Info: Creating encoder [h264_nvenc] [2024-11-21 17:44:26.744]: Info: Color coding: SDR (Rec. 601) [2024-11-21 17:44:26.744]: Info: Color depth: 8-bit [2024-11-21 17:44:26.744]: Info: Color range: JPEG [2024-11-21 17:44:26.915]: Info: NvEnc: created encoder H.264 P1 yuv444 two-pass rfi [2024-11-21 17:44:27.637]: Info: Device Description : NVIDIA GeForce RTX 4090 Device Vendor ID : 0x000010DE Device Device ID : 0x00002684 Device Video Mem : 24142 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16383 MiB Feature Level : 0x0000B100 Capture size : 800x600 Offset : 1920x0 Virtual Desktop : 2720x1080 [2024-11-21 17:44:27.637]: Info: Active GPU has HAGS disabled [2024-11-21 17:44:27.637]: Info: Using realtime GPU priority [2024-11-21 17:44:27.637]: 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 [2024-11-21 17:44:27.641]: Info: Desktop resolution [800x600] [2024-11-21 17:44:27.641]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-11-21 17:44:27.642]: Info: Display refresh rate [60Hz] [2024-11-21 17:44:27.642]: Info: Requested frame rate [60fps] [2024-11-21 17:44:27.642]: Info: Client dynamicRange: 1, Display is HDR: false [2024-11-21 17:44:27.643]: Info: Creating encoder [hevc_nvenc] [2024-11-21 17:44:27.643]: Info: Color coding: SDR (Rec. 709) [2024-11-21 17:44:27.643]: Info: Color depth: 10-bit [2024-11-21 17:44:27.643]: Info: Color range: JPEG [2024-11-21 17:44:28.200]: Info: NvEnc: created encoder HEVC P1 yuv444 10-bit two-pass rfi [2024-11-21 17:44:28.397]: Info: Client dynamicRange: 1, Display is HDR: false [2024-11-21 17:44:28.397]: Info: Creating encoder [av1_nvenc] [2024-11-21 17:44:28.397]: Info: Color coding: SDR (Rec. 709) [2024-11-21 17:44:28.397]: Info: Color depth: 10-bit [2024-11-21 17:44:28.397]: Info: Color range: JPEG [2024-11-21 17:44:28.628]: Error: NvEnc: gpu doesn't support YUV444 encode [2024-11-21 17:44:28.714]: Info: Client dynamicRange: 1, Display is HDR: false [2024-11-21 17:44:28.714]: Info: Creating encoder [av1_nvenc] [2024-11-21 17:44:28.714]: Info: Color coding: SDR (Rec. 709) [2024-11-21 17:44:28.714]: Info: Color depth: 10-bit [2024-11-21 17:44:28.715]: Info: Color range: JPEG [2024-11-21 17:44:28.922]: Info: NvEnc: created encoder AV1 P1 10-bit two-pass rfi [2024-11-21 17:44:29.066]: Info: [2024-11-21 17:44:29.067]: Info: // Ignore any errors mentioned above, they are not relevant. // [2024-11-21 17:44:29.067]: Info: [2024-11-21 17:44:29.067]: Info: Found H.264 encoder: h264_nvenc [nvenc] [2024-11-21 17:44:29.067]: Info: Found HEVC encoder: hevc_nvenc [nvenc] [2024-11-21 17:44:29.067]: Info: Found AV1 encoder: av1_nvenc [nvenc] [2024-11-21 17:44:29.067]: Info: Executing [Desktop] [2024-11-21 17:44:32.111]: Warning: Restoring HDR settings failed due to retry timeout! [2024-11-21 17:44:33.084]: Info: New streaming session started [active sessions: 1] [2024-11-21 17:44:33.293]: Info: Steam audio drivers not found. This is expected if you don't have Steam installed. [2024-11-21 17:44:33.296]: Info: Selected audio sink: {0.0.0.00000000}.{ab7159b5-5b6f-4343-944e-df55ad0583c4} [2024-11-21 17:44:33.336]: Info: Audio capture format is [F32 48000 5.1] [2024-11-21 17:44:33.340]: Info: Opus initialized: 48 kHz, 6 channels, 1536 kbps (total), LOWDELAY [2024-11-21 17:44:33.618]: Info: nvprefs: No need to modify application profile settings [2024-11-21 17:44:33.618]: Info: nvprefs: No need to modify global profile settings [2024-11-21 17:44:34.879]: Info: CLIENT CONNECTED [2024-11-21 17:44:35.541]: Info: Device Description : NVIDIA GeForce RTX 4090 Device Vendor ID : 0x000010DE Device Device ID : 0x00002684 Device Video Mem : 24142 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16383 MiB Feature Level : 0x0000B100 Capture size : 800x600 Offset : 1920x0 Virtual Desktop : 2720x1080 [2024-11-21 17:44:35.541]: Info: Active GPU has HAGS disabled [2024-11-21 17:44:35.542]: Info: Using realtime GPU priority [2024-11-21 17:44:35.542]: 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 [2024-11-21 17:44:35.543]: Info: Desktop resolution [800x600] [2024-11-21 17:44:35.543]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-11-21 17:44:35.543]: Info: Display refresh rate [60Hz] [2024-11-21 17:44:35.543]: Info: Requested frame rate [60fps] [2024-11-21 17:44:35.545]: Info: Client dynamicRange: 0, Display is HDR: false [2024-11-21 17:44:35.545]: Info: Creating encoder [h264_nvenc] [2024-11-21 17:44:35.545]: Info: Color coding: SDR (Rec. 601) [2024-11-21 17:44:35.545]: Info: Color depth: 8-bit [2024-11-21 17:44:35.545]: Info: Color range: MPEG [2024-11-21 17:44:35.569]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-11-21 17:44:35.730]: Info: NvEnc: created encoder H.264 P1 two-pass rfi ```

Please let me know if there are any other details that I can provide.

Cheers!

lhjt commented 1 day ago

Actually - it looks like the issue is selecting the app "virtual display" when opening moonlight. If I select desktop, it works fine? Is this intended?

ClassicOldSong commented 1 day ago

With Headless Mode, all apps are launched with virtual display. It should not make any difference if you haven't configured desktop app to do anything else.

If you start streaming while your computer is locked and the virtual display isn't primary, it will show a black screen, but it will lit up once you have unlocked your computer.