UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
Pixel Aspect Ratio not respected when using Media Foundation
Videos appear squished with wrong aspect ratio
Setup
- Unity version: 2019.4.40f1
- 2.5.0f1-ultra
- Operating system version: Win 10/11
To Reproduce
- Try to play video in Media Player component
- Notice aspect ratio is wrong. (width is wrong)
Screenshots
Squished:
Videos emailed
Email received, we'll check it out, thank you.
We have fixed this and the fix will be in the next release.
We're still using the unscaled texture (960x720) but during display using the DisplayUGUI, DisplayIMGUI or ResolveToTexture methods we are rendering the content stretched to the correct DAR (display aspect ratio)
Thanks,
Awesome! We will verify in the next release
The latest update has just been released. Please let us know if the problem is not fixed :)
Thanks for the update, it's fixed for direct show.
But it's not fixed for media foundation, using hap on, when using a hap clip
Could you send us a copy of this file you are using please?
You can generally take any clip and just run ffmpeg:
ffmpeg -i video.mpg -c:v hap video_hap.mov
emailed with a link to the original and hap versions
Thanks, we've received them, much appreciated :) Its always handy to work with exactly the file that you are having problems with :)
A fix has been comitted for the Media Foundation path and will be in the next release.
Cheers,
This has hopefully been fixed now with the release of version 2.6.0.
Thanks it is fixed with the new update