Skip to content

Commit

Permalink
fixup! Added help and parsing of the codec-profile option
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzah Mazuz committed Apr 17, 2020
1 parent 5a1dd3a commit 1b12204
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app/scrcpy.1
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,12 @@ Set the initial window height.
Default is 0 (automatic).\n

.TP
.BI "\-P, \-\-\codec\-profile " value
Request specific encoding codec profile, see AVC profiles at: https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel for valid codec profile values. Default is 0 (automatic).
.BI "\-\-\codec\-options " 'options'
'options' is a list of key=value pairs seperated by comma\n
for the device encoder.\n
For a list of possible codec options:\n
https://developer.android.com/reference/android/media/MediaCodecInfo\n
Currently supported keys: [profile, level].\n

.SH SHORTCUTS

Expand Down
2 changes: 1 addition & 1 deletion app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) {
optind = 0; // reset to start from the first argument in tests

int c;
while ((c = getopt_long(argc, argv, "b:c:fF:hm:nNp:r:s:StTv:", long_options,
while ((c = getopt_long(argc, argv, "b:c:fF:hm:nNp:r:s:StTv", long_options,
NULL)) != -1) {
switch (c) {
case 'b':
Expand Down

0 comments on commit 1b12204

Please sign in to comment.