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
414 stars 94 forks source link

can not work on windows server 2012 standard #190

Closed DNetORM closed 2 years ago

DNetORM commented 2 years ago

system.IO.FileNotFoundException: Failed to load file or assembly “ScreenRecorderLib.dll”or one of its dependencies. The specified module cannot be found。 filename:“ScreenRecorderLib.dll” 在 pdfdemo.Form1.CreateRecording() 在 System.Windows.Forms.Control.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ButtonBase.WndProc(Message& m) 在 System.Windows.Forms.Button.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

vc_redist.x64 installed,Media Foundation installed still can not work on windows server 2012 standard what reason?

sskodje commented 2 years ago

I figured out there's a dependency that requires Windows 10/server 2016, which is causing it to fail on server 2012. I'll see if it's possible to work around it.

DNetORM commented 2 years ago

Good, so has this problem been fixed

sskodje commented 2 years ago

I think i've found a fix, but i'll have to do some testing over easter to make sure i don't break antything on other windows versions.

sskodje commented 2 years ago

This should be fixed with v1.5.2