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

Colors & quality are not accurate #230

Closed ranwer-dev closed 1 year ago

ranwer-dev commented 1 year ago

I have noticed colors in the recording are not accurate, even if the video is recorded with VideoEncoderOptions.Quality = 100 Whereas recording with FFmpeg seems to show the correct colors with lesser video size. How this can be improved.

ScreenRecorderLib 1.06MB

https://user-images.githubusercontent.com/92986100/221274239-0c22d54d-fe52-4107-a569-3482d328f44b.mp4

FFmpeg 260KB

https://user-images.githubusercontent.com/92986100/221274270-2fa92971-8662-4a2c-82e9-9f16d962ae3d.mp4

sskodje commented 1 year ago

The color is not related toe the quality, it's dependent on the color space used by the encoder and player. I fixed an issue that hopefully should make the colors more consistent between encoders and players.

ranwer-dev commented 1 year ago

Yeah, the colors look much better now 👍