Open Botspot opened 6 months ago
This now appears to be working. It may have been an update that fixed this, or as a result of my switching from Wayfire to LabWC.
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
If I understand this correctly, if I'm using VLC then I can't rotate video 90 or 270 after the Bullseye update? I'm running into video rotation issues when using VLC fullscreen after rotating the video in x11 using xrandr (OS is at 90, video plays at orientation 0 as if it is ignoring the rotation). I saw this in Bullseye and thought it was just bugs being worked out, but now still seeing it on Bookworm. We built a digital photo frame on top of a raspberry pi and have been stuck on Raspbian Buster due to this.
@Geektoolkit rotation works in X11/Wayland session in bookworm.
That's not what I'm seeing since Bullseye. If you rotate the screen in x11 using xrandr so the Operating system operates in portrait, then launch a video in vlc in a window, it orients ok. But if you full screen it...it breaks rotation and the video plays at whatever would be 'normal' according to xrandr. I just did sudo apt upgrade/update and sudo apt upgrade vlc. It says I'm on the latest
vlc is already the newest version (1:3.0.21-0+rpt2+deb12u1).
Am I using it wrong, or is there a setting or something I can change there?
Try arandr instead of xranrdr.
That's not what I'm seeing since Bullseye. If you rotate the screen in x11 using xrandr so the Operating system operates in portrait, then launch a video in vlc in a window, it orients ok. But if you full screen it...it breaks rotation and the video plays at whatever would be 'normal' according to xrandr. I just did sudo apt upgrade/update and sudo apt upgrade vlc. It says I'm on the latest
vlc is already the newest version (1:3.0.21-0+rpt2+deb12u1).
Am I using it wrong, or is there a setting or something I can change there?
I use VLC to play videos in fullscreen mode but without of rotating entire screen by xrandr. I didn't try to set rotation explicitly but vertical-recorded videos from phone are played normally (they encoded as horizontal but have rotation set in the metadata).
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.