lulzsun / RePlays

Open-source game recording management software
GNU General Public License v3.0
128 stars 16 forks source link

Display capture doesn't work #174

Closed Segergren closed 4 months ago

Segergren commented 5 months ago

I've got a problem with the GetMonitorId function since the change made 43 days ago. When I try to get the ID for \.\DISPLAY1 using GetMonitorInfo(hMonitor, ref monitorInfo), it doesn't work – it just returns false. There are no error messages to help me figure out why.

Because of this, my screen recording isn't working right – it just shows a black screen.

[1/19/2024 9:15:00 PM][LibObsRecorder.cs::StartRecording(375)]: Attempting to use display capture instead
[1/19/2024 9:15:00 PM][WindowService.cs::GetMonitorId(567)]: Attempting to retrieve deviceId from \\.\DISPLAY1
[1/19/2024 9:15:00 PM][WindowService.cs::GetMonitorId(589)]: Could not retrieve deviceId for \\.\DISPLAY1
[1/19/2024 9:15:00 PM][LibObsRecorder.cs::Start(107)]: info: [duplicator-monitor-capture: 'display'] update settings:
    display:  (0x0)
    cursor: true
    method: WGC
    id: 
    alt_id: 
    setting_id: DUMMY
    force SDR: false
[1/19/2024 9:15:00 PM][LibObsRecorder.cs::Start(107)]: debug: source 'display' (monitor_capture) created
lulzsun commented 4 months ago

Should be fixed in 33bad6f, let me know if there are still issues.

Segergren commented 4 months ago

I'm sadly still having issues. Looks like it actually gets the ID but is instead having issues with device_duplicator_create: Failed to DuplicateOutput1 (887A0004)

It just spams this log message every third second until the recording is stopped. I think the error comes from this file: https://github.com/obsproject/obs-studio/blob/master/libobs-d3d11/d3d11-duplicator.cpp 1.2.63.txt

lulzsun commented 4 months ago

Fixed by https://github.com/lulzsun/RePlays/commit/5aa43cb7b3e566ef7834a2dd823e81f8878adc46. Closing issue.