Open BrutuZ opened 8 months ago
Thank you for your report.
The cause is still the same: the encoder does not report an error when requesting a size which it does not support (so scrcpy thinks it works), but internally it captures at a different size.
So in the end you must pass a --max-size
so that the requested size is a supported size.
For example, -m1920
does not work, because it probably uses 1152×1920
, while the max supported size is 1080×1920
.
Environment
scrcpy-win64-v2.3.1.zip
)[server] INFO: Device: [Teclast] Teclast T50Pro_W_ROW (Android 13)
)Describe the bug After connecting to the device the screen is mirrored but slightly cropped and if I try to interact with it the console is flooded with
[server] WARN: Ignore touch event, it was generated for a different device size
.I found #2190 #4244 #4509 and consequently the
--max-size
workaround from https://github.com/Genymobile/scrcpy/issues/1645#issuecomment-670433990, however it didn't work with the higher values (-m2000
nor-m1920
) as the comment indicated, I can only suspect it has something to do with both Texture lines being equal as opposed toInitial Texture
andNew texture
. I went the roundabout route of writing abatch file
that would change the WindowManager size with
adb shell wm size 1080x1920
(thanks to #4469) before callingscrcpy
and resetting it afterwards, which worked but threw the aspect ratio a little off on the device itself while connected.Trough trial and error I eventually found a minimum threshold of
-m1800
that works, but given how that isn't any of the 4 sizes reported I thought it was still worth mentioning in a new issue.