smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
616 stars 156 forks source link

No frame data with External Display(Portrait) #130

Open sharimken opened 2 years ago

sharimken commented 2 years ago

Thanks for the good tool of capturing displays. May I know if Display Orientation in Portrait supported? I tested few situation, but only Mac OS can return the correct result:

smasherprog commented 2 years ago

i just moved to windows 11, so ill check if there are any issues with that. linux distros should work without issue. I dont have a real linux machine to test this on however. All of my tests have been in virtual box.

Unfortunately, you would have to debug these issues yourself :( Screen capturing can have some interesting side effects in ways that I have not encountered.

Id like to expand this library to capture these new scenarios, but it requires help from people like you since I dont have the same environment setup for testing

sharimken commented 2 years ago

i just moved to windows 11, so ill check if there are any issues with that. linux distros should work without issue. I dont have a real linux machine to test this on however. All of my tests have been in virtual box.

Unfortunately, you would have to debug these issues yourself :( Screen capturing can have some interesting side effects in ways that I have not encountered.

Id like to expand this library to capture these new scenarios, but it requires help from people like you since I dont have the same environment setup for testing

Awesome, glad to know that you have a chance to check the Win11 Portrait mode.

For Ubuntu testing, I tried installing all the required missing library and compiling the linux ".so" via CMake, with the default cmake commands "cd directory" -> "cmake ." -> "make". It looks fine since the ".so" does generate, but I am not 100% sure if it's correct or not. I can get the monitor width/height..etc. The Linux Frame pixels are always black.

Edit: My Dual Boot Ubuntu OS and Win11 are both running with Intel CPU, RTX 3060

If you have a testing app for Linux, I'd like to help to check and run the result.

smasherprog commented 2 years ago

I am able to reproduce the Win11 issue so i am trying to fix that now.

smasherprog commented 2 years ago

It does look like theres a win11 bug in the desktop duplication. I loaded Microsoft's official demo code and it fails in the same way.

sharimken commented 2 years ago

It does look like theres a win11 bug in the desktop duplication. I loaded Microsoft's official demo code and it fails in the same way.

Thanks for your updates.

Are you referring to this example for your Win11 test? I haven't tried their example yet, but hopefully they will fix it soon. or probably we should report the bug to them. https://github.com/microsoftarchive/msdn-code-gallery-microsoft/tree/master/Official%20Windows%20Platform%20Sample/DXGI%20desktop%20duplication%20sample

For Linux Platform, do you have testing example or compiled ".so" from your side? I still doubt about my cmake compile result, as it always return black pixels.