return property('System.Video.HorizontalAspectRatio', <cc_item>) . ' : ' . property('System.Video.VerticalAspectRatio', <cc_item>);
Using this I'm getting '1 : 1' for all of my videos, which is false. Any hints?
CC - Video Aspect Ratio - Broken?
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
CC - Video Aspect Ratio - Broken?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
admin
- Site Admin
- Posts: 66324
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: CC - Video Aspect Ratio - Broken?
Confirmed, same here. Can't do anything, guess this one goes to Microsoft. 
FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: CC - Video Aspect Ratio - Broken?
Just as I thought: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
It's not about the video aspect ratio, but the pixel aspect ratio - which is usually 1:1.
More info: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx, http://en.wikipedia.org/wiki/Pixel_aspect_ratio
It's not about the video aspect ratio, but the pixel aspect ratio - which is usually 1:1.
More info: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx, http://en.wikipedia.org/wiki/Pixel_aspect_ratio
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: CC - Video Aspect Ratio - Broken?
Which means I suppose you need to do something like this depending on the format you desire...One good thing about using these 'system' type properties is that they are not language dependent therefore better for scripts. Aspect Ratio is easier for images. 
Code: Select all
echo round(property('System.Video.FrameWidth', <curitem>) / property('System.Video.FrameHeight', <curitem>), 2); // which yields 1.78 equivalent to 16x9
or
echo property('System.Video.FrameWidth', <curitem>) . ' : ' . property('System.Video.FrameHeight', <curitem>); // which yields 1280 : 720
XYplorer Beta Club