mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 22:35:37 +00:00
Add recording to aac file
It is just an alias for mp4. PR #3978 <https://github.com/Genymobile/scrcpy/pull/3978>
This commit is contained in:
@@ -1496,6 +1496,9 @@ get_record_format(const char *name) {
|
||||
if (!strcmp(name, "opus")) {
|
||||
return SC_RECORD_FORMAT_OPUS;
|
||||
}
|
||||
if (!strcmp(name, "aac")) {
|
||||
return SC_RECORD_FORMAT_AAC;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1996,6 +1999,13 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
||||
"(try with --audio-codec=opus)");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (opts->record_format == SC_RECORD_FORMAT_AAC
|
||||
&& opts->audio_codec != SC_CODEC_AAC) {
|
||||
LOGE("Recording to AAC file requires an AAC audio stream "
|
||||
"(try with --audio-codec=aac)");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (opts->audio_codec == SC_CODEC_RAW) {
|
||||
|
Reference in New Issue
Block a user