lextrack / Simple-Screen-Recorder

Simple and easy-to-use screen recorder for Windows. With a built-in file merge tool.
GNU General Public License v3.0
114 stars 18 forks source link

Monitor info and video passing parms to the FFmpeg code fails and is scaling related on multi-monitors is set to other than 100% #19

Open studleylee opened 2 months ago

studleylee commented 2 months ago

Monitor scaling info and Video passing parms the FFmpeg fails is a DPI scaling issue on multi-monitors when set to other than 100%. In my case I have 2: 3840x2160 monitors and a 1920x1200(laptop). The 2 larger monitors report the correct size, but then only one can be used to grab and create the video file and actually generates the selected video type.. The 1920x1200 shows as a larger scaled area. If I set all monitors to 100% scaling, then all work for grabbing video.

It's a common issue in .NET apps and wpf apps that MS had not really addressed(tbd?). The workaround is ugly so far, but I'm working on it. https://stackoverflow.com/questions/60872044/how-to-get-scaling-factor-for-each-monitor-e-g-1-1-25-1-5