scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Unprwedictable video recording orientation.

Open Uzver123 opened this issue 1 year ago • 2 comments

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

Uzver123 avatar Feb 13 '24 21:02 Uzver123

--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

rom1v avatar Feb 13 '24 23:02 rom1v

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

Uzver123 avatar Feb 14 '24 12:02 Uzver123