Page 1 of 1
CC - Video Aspect Ratio - Broken?
Posted: 16 May 2015 21:21
by SkyFrontier
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?
Re: CC - Video Aspect Ratio - Broken?
Posted: 17 May 2015 09:16
by admin
Confirmed, same here. Can't do anything, guess this one goes to Microsoft.

Re: CC - Video Aspect Ratio - Broken?
Posted: 17 May 2015 11:41
by Marco
Re: CC - Video Aspect Ratio - Broken?
Posted: 17 May 2015 17:41
by klownboy
Which means I suppose you need to do something like this depending on the format you desire...
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
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.
