Scrcpy v4.0

· hardware · Source ↗

TLDR

  • Scrcpy v4.0 ships SDL2-to-SDL3 migration, flex virtual displays, camera torch/zoom controls, and aspect-ratio-locked window resizing.

Key Takeaways

  • SDL3 migration enables native window aspect-ratio locking, eliminating black borders on resize; old behavior available via --no-window-aspect-ratio-lock.
  • --flex-display (-x) lets virtual displays resize dynamically with the client window, useful for running Android apps in arbitrary-sized windows.
  • --keep-active periodically signals user activity without changing global device settings, works wired or wireless.
  • A denormal-number bug caused OPUS silence resampling to be ~40x slower than non-silence; fixed upstream in FFmpeg 8.1.1.
  • Dependency bumps: adb platform-tools 37.0.0, FFmpeg 8.1.1, SDL 3.4.8, dav1d 1.5.3; Meta Quest flickering workaround included.

Hacker News Comment Review

  • Commenters note scrcpy is maintained by Genymobile, not Google, which surprises some given its polish and reliability.
  • Practical AI automation use case surfaced: feeding scrcpy output to Claude Code for mobile QA testing on real devices.

Original | Discuss on HN