sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
408 stars 93 forks source link

Win11 23H2 Run Demo program Testapp/TestAppWinforms appear Error #299

Closed Jerry-asus closed 3 months ago

Jerry-asus commented 4 months ago

error infor: 2024-05-19 19:52:00.820 [ERROR] [DesktopDuplicationCaptur | InitializeDesktopDu: 351] >> Failed to get duplicate output in DesktopDuplicationCapture: 2024-05-19 19:52:00.820 [ERROR] [ScreenCaptureManager.cpp | CaptureThreadProc: 813] >> Failed to start capture 2024-05-19 19:52:00.821 [ERROR] [ScreenCaptureManager.cpp | ProcessCaptureHRESU:1280] >> Unexpected error, aborting capture: 2024-05-19 19:52:00.821 [ERROR] [ScreenCaptureManager.cpp | CaptureThreadProc: 983] >> Fatal error in screen capture, exiting..

I have intstall Media Feature Pack for Win11,Thankyou.

sskodje commented 4 months ago

There's not enough info here for me to know what's wrong. The fault lies in Windows Desktop Duplication API, but it doesn't seem to return a "well known" error. Does it work if you switch to Windows Graphics Capture API? Desktop Duplication can be wonky some times.

Jerry-asus commented 4 months ago

Oh,yes,I change my notebook's Preferred graphics from Nvdia T1000 to Inter6300,the app run Ok.thanyou .Nvdia1000 is a stand alone graphics,but Inter6300 is integration. thankyou!