Rotation of 90-270 doesn't allow to change the Aspect Ratio
What is the current bug behavior?
It seems that it is not possible to rotate the video image while changing the AspectRatio. I have this video without performing any action:
Original video:
I'm able to change the Aspect Ratio to fit to the screen with these commands:
VideoView.MediaPlayer.AspectRatio = $"{(this.ActualWidth)}:{this.ActualHeight}";
VideoView.MediaPlayer.Scale = 0;
to get:
Which is what I was expecting, but If I rotate the image with changing the Aspect Ratio, the Aspect Ratio commands are omitted:
CreateVideoPlayer(new string[] { "--network-caching=" + GetNetworkCaching(), "--video-filter=transform", "--transform-type=90" });
VideoView.MediaPlayer.AspectRatio = $"{(this.ActualWidth)}:{this.ActualHeight}";
VideoView.MediaPlayer.Scale = 0;
I get the image rotated 90 degrees but not fitting the screen:
However, if I rotate the image 180 degrees instead of 90 degrees, the image rotates correctly while fitting the screen:
CreateVideoPlayer(new string[] { "--network-caching=" + GetNetworkCaching(), "--video-filter=transform", "--transform-type=180" });
VideoView.MediaPlayer.AspectRatio = $"{(this.ActualWidth)}:{this.ActualHeight}";
VideoView.MediaPlayer.Scale = 0;
Am I missing something?
What is the expected correct behavior?
Rotation of 90 and 270 should keep the Aspect Ratio settings.
Environment
- OS: Windows
- Version 10
- Device:
- LibVLC version and architecture 3.0.17.4 x64
- LibVLCSharp version 3.6.6
Possible fixes
Thanks for the good work!