ws-scrcpy icon indicating copy to clipboard operation
ws-scrcpy copied to clipboard

How to adjust sharpness

Open zhangpeibisha opened this issue 2 years ago • 4 comments

Pasted Graphic image How should I set the clarity to be consistent with scrcpy

zhangpeibisha avatar Apr 18 '22 08:04 zhangpeibisha

The only difference on the server side is transport (unix socket vs websocket). If you set same parameters, server will produce same result as original scrcpy.

My guess is that you don't have size limit in scrcpy, where in ws-scrcpy you have 720x720.

drauggres avatar Apr 18 '22 09:04 drauggres

adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 1.17 info 0 8000000 0 -1 false - true true 0 false false - -

This is the parameter when starting scrcpy. I checked that the bit rate is 8000000, and the difference between the parameter 7340032 of ws-scrcpu is not big, and the height and width only change the size of the canvas, but not the clarity of the video. If I want to achieve How should the clarity of scrcpy configure the parameters of ws-scrcpy?

zhangpeibisha avatar Apr 18 '22 09:04 zhangpeibisha

There is no specific parameter for sharpness (or any image processing and filters) in scrcpy-server.

I created emulator with 960x960 screen size and took screenshots from scrcpy, ws-scrcpy and directly from emulator. Can't say about sharpness, but there is definitely something wrong with colors in ws-scrcpy:

Screenshot scrcpy

Screenshot_scrcpy

Screenshot ws-scrcpy webcodecs

Screenshot_ws-scrcpy

Screenshot emulator

Screenshot_emulator

Orignal image

Source

test-pattern-152459_960_720

drauggres avatar Apr 18 '22 12:04 drauggres

I used the same bit rate (8000000) to record the video, and found that the h264 video recorded by scrcpy has higher definition than the video recorded by ws-scrcpy. Do I need to consider what is not handled well in ws-scrcpy itself?

zhangpeibisha avatar Apr 18 '22 14:04 zhangpeibisha