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

@@ -62,6 +62,7 @@ _scrcpy() {
-r --record=
--raw-key-events
--record-format=
--record-orientation=
--render-driver=
--require-audio
--rotation=
@@ -117,6 +118,10 @@ _scrcpy() {
COMPREPLY=($(compgen -> '0 90 180 270 flip0 flip90 flip180 flip270' -- "$cur"))
return
;;
--record-orientation)
COMPREPLY=($(compgen -> '0 90 180 270' -- "$cur"))
return
;;
--lock-video-orientation)
COMPREPLY=($(compgen -W 'unlocked initial 0 90 180 270' -- "$cur"))
return