Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.17k stars 10.72k forks source link

Unprwedictable video recording orientation. #4667

Open Uzver123 opened 9 months ago

Uzver123 commented 9 months ago

Regardless of phone orientation or app that open and forces phone to be horizontal or vertical orientation - need video to record on PC always horizontally. (Because this fancy rotating video is not working in 98% of video players and editors can't open it.)

This is my settings now scrcpy.exe --record %outputfile% -b50M --record-format=mp4 --max-fps=60 --no-audio-playback --lock-video-orientation --record-orientation=270

There's two problems.

Scenario 1 video app open that puts phone in forced horizontal orientation then i open ScrCpy

Video Records vertically

https://github.com/Genymobile/scrcpy/assets/143356096/20743b5a-e84c-4938-9b5a-87cd37bf8640

Scenario 2 no apps is open phone in horizontal orientation when i open ScrCpy

Video Records horizontally just as expected.

https://github.com/Genymobile/scrcpy/assets/143356096/bdb83c8b-a818-404b-9838-a3c0cb02e60d

rom1v commented 9 months ago

--lock-video-orientation

Without parameter, the orientation is locked to the initial phone orientation.

What you want is probably --lock-video-orientation=270 (and remove --record-orientation=270 which is an additional rotation applied to the recording file).

https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#orientation

Uzver123 commented 9 months ago

--lock-video-orientation=270 worked thank you