Add --record-orientation

Add an option to store the orientation to apply in a recorded file.

Only rotations are supported (not flip), and most players correctly
handle it only for MP4 files (not MKV files).
This commit is contained in:
Romain Vimont
2023-11-20 14:02:46 +01:00
parent dac0d54c5c
commit 70baf3c384
10 changed files with 107 additions and 1 deletions

View File

@@ -507,7 +507,8 @@ scrcpy(struct scrcpy_options *options) {
};
if (!sc_recorder_init(&s->recorder, options->record_filename,
options->record_format, options->video,
options->audio, &recorder_cbs, NULL)) {
options->audio, options->record_orientation,
&recorder_cbs, NULL)) {
goto end;
}
recorder_initialized = true;