v2.2

Genymobile/scrcpyv2.2Nov 1, 2023by rom1v

AI Summary

Adds camera mirroring functionality and fixes several compatibility issues introduced by Android 14, including screen-off, orientation locking, and cropping.

Key Highlights

  • Camera mirroring feature with extensive configuration options.
  • Fixed --turn-screen-off for Android 14.
  • Fixed --lock-video-orientation for Android 14.
  • Fixed --crop for Android 14.

New Features

  • Camera mirroring.
  • Camera options (list, sizes, facing, etc.).

Full Release Notes

**scrcpy v2.2**

Changes since v2.1.1:
 - Add option to mirror camera (#241, #4213)
 - Add --pause-on-exit (#4130)
 - Rename --display (deprecated) to --display-id
 - Fix device disconnection detection with --no-video (#4207)
 - Accept --turn-screen-off without video playback (#4175)
 - Upgrade SDL to 2.28.4 in Windows releases
 - Upgrade platform-tools to 34.0.5 (adb) in Windows releases
 - Various technical fixes

---

# Highlights


## Camera capture

The previous minor version introduced `--audio-source=mic` to transmit the microphone instead of the device audio output.

This new version introduces `--video-source=camera` to mirror the device camera instead of the device screen.

A bunch of new options have been added:
 - `--list-cameras`
 - `--list-camera-sizes`
 - `--camera-id=`
 - `--camera-facing=`
 - `--camera-ar=`
 - `--camera-size=`
 - `--camera-fps=`
 - `--camera-high-speed`

For example:

```
scrcpy --video-source=camera --camera-facing=front --camera-size=1920x1080
```

Check the [camera](https://github.com/Genymobile/scrcpy/blob/master/doc/camera.md) documentation for more details.


## Android 14

Since the last scrcpy version, Android 14 has been released.

Unfortunately, several scrcpy features have been broken by changes in this new Android version:
 - [`--turn-screen-off`](https://github.com/Genymobile/scrcpy/blob/master/doc/device.md#turn-screen-off) (#3927): some internal functions have been removed, without replacement that scrcpy could use (it seems it also impacts the feature in Android Studio)
 - [`--lock-video-orientation`](https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#rotation) (not window `--rotation`, which is independent) (#4011): some function parameters are now ignored
 - [`--crop`](https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#crop) (also #4011): some function parameters are now ignored

Reported to Google/Android: [issue 303565669](https://issuetracker.google.com/issues/303565669)

---

 - Twitter: [`@scrcpy_app`](https://twitter.com/scrcpy_app)
 - Reddit: [`r/scrcpy`](https://www.reddit.com/r/scrcpy)