-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VLC fails to rotate vertical video from smartphone #106
Comments
This now appears to be working. |
Possibly both. I did fix various scaling & rotation issues in the last patch, but they did also require the underlying systems to support the rotation. |
Does drm_vout video driver support rotation? I have met the same issue when playing video without of X Window and it still exists at last VLC. |
DRM does not have rotation support. |
Or to be slightly more accurate (though no more useful), DRM (the API) does support rotation and so does drm_vout however our HVS DRM kernel driver doesn't support 90 or 270 degree rotation (it will do 180). This is due to the HVS not supporting it directly. MMAL/OMX did support 90 degree rotation but the extra h/w block required to do that isn't available to the HVS DRM driver. |
As I remember, ffplay plays video in correct orientation. It rotates it by software? |
Yes |
This is a standard vertical video taken from a smartphone.
https://drive.google.com/file/d/1Czpn4BOzt3GpAwljFzMN83GO2elWYce_/view?usp=sharing
I am fairly sure that these used to play correctly on VLC. It uses the right dimensions of a vertical video, but the video itself was not rotated to match, causing it to be stretched.
Expected playback result: (Playing the same video after converting it to MP4)
Actual playback result:
Command line output:
To reproduce: Download the file from the Google Drive link. Open it in VLC on PiOS Bookworm. Not sure how long ago this issue has existed. It may have predated the release of Bookworm.
The text was updated successfully, but these errors were encountered: