mpv-webm
mpv-webm copied to clipboard
Crop error on videos containing landscape-rotated iOS screen recordings
mpv version and platform
mpv 0.35.0 Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects
built on Mon Nov 14 04:47:57 2022
FFmpeg library versions:
libavutil 57.42.100
libavcodec 59.52.102
libavformat 59.34.101
libswscale 6.8.112
libavfilter 8.50.100
libswresample 4.9.100
FFmpeg version: git-2022-11-14-3ab11dc5b
Description
When attempting to crop a landscape-rotated video saved by the iOS screen recorder, the allowed cropping area does not properly match the video dimensions, rather it seems to be trying to restrict to some variant of the portrait aspect ratio. Additionally, the coordinates visually selected for cropping do not match what is actually cropped in the preview or final output webm.
Here is a Windows capture demonstrating the issue in action: https://streamable.com/5t65g3
Sample video file with the problem: https://user-images.githubusercontent.com/56432680/202983847-3448d13b-90a6-46f3-a305-f487244707a7.mp4
I've run into this same thing too when using Mac's built-in rotate command (Cmd+R) on videos prior to opening them in mpv.