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

Encoder causing color issue #241

Closed ranwer-dev closed 2 months ago

ranwer-dev commented 1 year ago

If I record the screen with this lib, there are few colors issues on some parts of the screen. There is no issue when its done with ffmpeg. See the comparison below. What could be the issue?

image

sskodje commented 1 year ago

It's an artifact of the RGB->YUV conversion, that I oddly enough only reproduce on Windows 11. I'll look into it.

ranwer-dev commented 7 months ago

It's an artifact of the RGB->YUV conversion, that I oddly enough only reproduce on Windows 11. I'll look into it.

Did you get a chance to look at it @sskodje?

sskodje commented 7 months ago

I made some changes in v5.3.1 that i confirmed to fixe some color issues on machines with Intel graphics. If you still have issues, i unfortunately don't have any fixes. The codecs are all supplied by the chip vendors, and seemingly work differently on different hardware and operating systems.