v2.3

Genymobile/scrcpyv2.3Nov 25, 2023by rom1v

AI Summary

Adds camera mirroring support, orientation options for video and recording, new audio codecs (FLAC, WAV), and fixes the screen-off feature for Android 14.

Key Highlights

  • Camera capture feature with various options (sizes, facing, FPS).
  • New --orientation option for rotating/flipping video.
  • Support for recording rotation.
  • Added FLAC audio codec and raw WAV audio recording.
  • Fixed --turn-screen-off for Android 14.

New Features

  • Camera capture.
  • --orientation option.
  • Recording rotation.
  • FLAC audio codec.
  • WAV audio recording.

Full Release Notes

_To receive a notification on new releases, click on **Watch > Custom > Releases** on the top._

---

**scrcpy v2.3**

Changes since v2.2:
 - Add flipped display orientation (#1380, #3819, #4441)
 - Add recording rotation (#4441)
 - Add FLAC audio codec (#4410)
 - Add raw audio (WAV) recording (20048811)
 - Fix turn screen off for Android 14 (#3927, #4456)
 - Fix camera issues on many devices (#4392)
 - Fix clipboard synchronization when no video (#4418)
 - Fix screen refresh on device rotation (7e3b9359)
 - Fix .desktop files on Linux (#4448)
 - Upgrade SDL to 2.28.5 in Windows releases
 - Various technical fixes

---

# Highlights


## Camera

Many problems related to camera capture with specific devices have been fixed.

If the new [camera feature](https://github.com/Genymobile/scrcpy/blob/master/doc/camera.md) did not work on your device with scrcpy 2.2, you should definitely retry with scrcpy 2.3. (#4392)


## Orientation

A new option `--orientation` allows to rotate or flip the video. (It replaces the deprecated `--rotation` option.)

It is possible to change the display orientation dynamically using [shortcuts](https://github.com/Genymobile/scrcpy/blob/master/doc/shortcuts.md):
 - rotate display left: <kbd>MOD</kbd>+<kbd>←</kbd>
 - rotate display right: <kbd>MOD</kbd>+<kbd>→</kbd>
 - flip display horizontally: <kbd>MOD</kbd>+<kbd>Shift</kbd>+<kbd>←</kbd> or <kbd>MOD</kbd>+<kbd>Shift</kbd>+<kbd>→</kbd>
 - flip display vertically: <kbd>MOD</kbd>+<kbd>Shift</kbd>+<kbd>↑</kbd> or <kbd>MOD</kbd>+<kbd>Shift</kbd>+<kbd>↓</kbd>

_(The two first ones already existed)._

The rotation can now be applied to recording as well. For example, to capture and record a portrait video from the camera:

```
scrcpy --video-source=camera --camera-size=1920x1080 --orientation=90 --record=portrait.mp4
```

_(It is not possible to apply a flip to a recorded file though, the formats and/or video players do not handle flipping as metadata, without re-encoding the video stream.)_

More details in #4441 (and the [documentation](https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#orientation)).


## Android 14

The [turn screen off](https://github.com/Genymobile/scrcpy/blob/master/doc/device.md#turn-screen-off) feature was broken in Android 14.

It is now fixed :tada: Read some [technical details](https://github.com/Genymobile/scrcpy/pull/4446#issuecomment-1824818046).

---

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