From 25e2eb7d7c21b65ad0c206f63bbadb0a19a890c6 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 18 Feb 2023 19:09:26 +0100 Subject: [PATCH] Document default video codec Mention the default option value, like for other commands. --- app/scrcpy.1 | 2 ++ app/src/cli.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/scrcpy.1 b/app/scrcpy.1 index 18c70d65..8f028d7c 100644 --- a/app/scrcpy.1 +++ b/app/scrcpy.1 @@ -29,6 +29,8 @@ Default is 8000000. .BI "\-\-codec " name Select a video codec (h264, h265 or av1). +Default is h264. + .TP .BI "\-\-codec\-options " key\fR[:\fItype\fR]=\fIvalue\fR[,...] Set a list of comma-separated key:type=value options for the device encoder. diff --git a/app/src/cli.c b/app/src/cli.c index 94fccb67..93712113 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -110,7 +110,8 @@ static const struct sc_option options[] = { .longopt_id = OPT_CODEC, .longopt = "codec", .argdesc = "name", - .text = "Select a video codec (h264, h265 or av1).", + .text = "Select a video codec (h264, h265 or av1).\n" + "Default is h264.", }, { .longopt_id = OPT_CODEC_OPTIONS,