Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.09k stars 10.43k forks source link

Unexpected behaviour of `--crop` argument #4946

Open HaiziIzzudin opened 3 months ago

HaiziIzzudin commented 3 months ago

Environment

Describe the bug When using the --crop argument, the screen capture supposed to be cropping, right? But my bug here is that the screen simply zooms out, filling the empty with black pixels.

Bug reproduce on my side
./scrcpy Screenshot 2024-05-25 225243

./scrcpy --crop=1080:1080:0:0 Screenshot 2024-05-25 225331

Video proof ./scrcpy --crop=1080:1080:0:0

https://github.com/Genymobile/scrcpy/assets/79714350/45ee532b-258f-40ad-9dc9-d8f3f3c75c1b




My possible guesses... Maybe Android 14 new/ changed API?

rom1v commented 3 months ago

Yes, crop is broken since Android 14. See #4011