scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Resize problem, pixelated quality

Open suydd opened this issue 1 year ago • 4 comments

Environment

  • OS: Windows
  • scrcpy version: 2.3.1
  • installation method: Windows release
  • device model: One Plus Nord 2
  • Android version: 13

Describe the bug My screen is "pixelated", as if it wasn't using the correct resize method.

Of course, I've tested (almost, I think) everything that's been said in the previous issues

  • Resize directly with -m950 instead of resizing the window
  • alt+g to get the real size
  • ALL the encoders available with --list-encoders
  • the various render drivers available (tested: direct3d, opengl, opengles2, opengles, metal,software)
  • I also tested --no-mipmaps.
  • And finally I also did the "Override high DPI scaling behavior".

But I still get this. Any solution?

Screenshot: scrcpy

And the result I want If possible

Another example :

icon scrcpy

And the result I want If possible

suydd avatar Jan 31 '24 19:01 suydd

What is the device resolution? (it is printed in the console, for example INFO: Texture: 1080x2400)

alt+g to get the real size

Is the rendering better? (even if it's too big)

If you record (scrcpy --record=file.mp4) and play the file, how is the result?

My guess is that the resolution is several times bigger than your computer screen (your screenshot is only 420x899). Downscaling on Windows may not use mipmapping, so it uses "nearest pixel", which is not great (resizing on the device with -m does the same). I guess that it is a bit better in fullscreen landscape (because there is less to downscale).

If my hypothesis is true, then I have no real solution (get a better computer screen, or try on Linux to get mipmapping on scrcpy).

rom1v avatar Jan 31 '24 20:01 rom1v

[server] INFO: Device: [OnePlus] OnePlus DN2103 (Android 13)
INFO: Renderer: direct3d
INFO: Texture: 400x896

My screenshot is when I have set -m900 and the information gived by the console looks right. And also I have test on different monitors and the problem is the same.

I might get my hands on a Linux tomorrow at the earliest, no idea if the issue can stay open that time but I'll come back to say If it changes something.

suydd avatar Jan 31 '24 21:01 suydd

INFO: Texture: 400x896

My screenshot is when I have set -m900 and the information gived by the console looks right.

The question was the resolution when you don't pass -m900 (in which case the video is already downscaled).

rom1v avatar Jan 31 '24 21:01 rom1v

Oh sorry. Yes, even if it's too big, quality is perfect when I alt + g & don't set a size And the console output is: INFO: Texture: 1080x2400

suydd avatar Jan 31 '24 21:01 suydd