Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
103.02k stars 10.01k forks source link

Perfect Pixel (alt+g) not working properly. #4880

Closed DienoX closed 3 weeks ago

DienoX commented 3 weeks ago

Environment

Describe the bug Pixel perfect It's not working properly. After using alt+g, the height is 4 pixels too low. I use waydroid and on the waydroid screen via rdp the quality seems to be much better. Below are my measurements from GIMP. image (1) image

rom1v commented 3 weeks ago

After using alt+g, the height is 4 pixels too low.

This is not alt+g, it's the window size of the device which is not a multiple of 8, so scrcpy rounds it down to the next multiple of 8 (it is a requirement for many encoders). Check the size reported by scrcpy, probably:

INFO: Texture: 960x536

I use waydroid and on the waydroid screen via rdp the quality seems to be much better.

You can adapt video quality by changing the codec, encoder and bitrate. See https://github.com/Genymobile/scrcpy/blob/master/doc/video.md

DienoX commented 3 weeks ago

You're right. Everything was done wrong by me. I was unaware of this behavior.

Now I set the resolution to 1280x720 and the image looks very similar to it in waydroid. There is no need to change other parameters.

Can I close this report? And once again I apologize for my lack of knowledge.

rom1v commented 3 weeks ago

You have nothing to apologize for. :wink: