Skip to content

Display and control your Android device

Complete --max-size documentation

Romain Vimont869111368227
diff --git a/app/scrcpy.1 b/app/scrcpy.1
index 8dd89ca6..c8f7c1d3 100644
--- a/app/scrcpy.1
+++ b/app/scrcpy.1
@@ -294,7 +294,11 @@ List displays available on the device.
.TP
.BI "\-m, \-\-max\-size " value
-Limit both the width and height of the video to \fIvalue\fR. The other dimension is computed so that the device aspect\-ratio is preserved.
+Limit both the width and height of the video.
+
+For display mirroring, the other dimension is computed so that the device aspect ratio is preserved (except for flex displays).
+
+For camera mirroring, the value is used to select the camera source size instead.
Default is 0 (unlimited).
diff --git a/app/src/cli.c b/app/src/cli.c
index 177d98d0..dbe264fc 100644
--- a/app/src/cli.c
+++ b/app/src/cli.c
@@ -502,9 +502,12 @@ static const struct sc_option options[] = {
.shortopt = 'm',
.longopt = "max-size",
.argdesc = "value",
- .text = "Limit both the width and height of the video to value. The "
- "other dimension is computed so that the device aspect-ratio "
- "is preserved.\n"
+ .text = "Limit both the width and height of the video.\n"
+ "For display mirroring, the other dimension is computed so "
+ "that the device aspect ratio is preserved (except for flex "
+ "displays).\n"
+ "For camera mirroring, the value is used to select the camera "
+ "source size instead.\n"
"Default is 0 (unlimited).",
},
{
diff --git a/doc/video.md b/doc/video.md
index 7b1e4c03..7be54887 100644
--- a/doc/video.md
+++ b/doc/video.md
@@ -22,7 +22,8 @@ scrcpy -m 1024 # short version
```
The other dimension is computed so that the Android device aspect ratio is
-preserved. That way, a device in 1920×1080 will be mirrored at 1024×576.
+preserved (except for flex displays). That way, a device in 1920×1080 will be
+mirrored at 1024×576.
For camera mirroring, the `--max-size` value is used to select the camera source
size instead (among the available resolutions).