> Firstly what do you mean by ‘~1049’ above?
‘~’ means approximately. 720 * 1.4568 = 1048.896. Since it’s impossible to have .896 of a pixel I rounded up to 1049.
> Lets say I wanted a custom size what do I do then? Lets assume I want to fit within an approximate area of a web page how would i work that one out?
You can render to any dimension you want but if it’s not a multiple of the original video size the video will be stretched. You might want to ensure that the space you leave on the web page maintains the aspect of the video.
> I’m assuming I would have to start with a custom horizontal size, so lets say that’s 450 or something like that, how would I work out the verticle size?
Once you have established the dimensions of your video in square pixels, the rest is just straight math:
Your original video is 1049×576 so if you want the width to be 450 you would divide that by the original width of 1049 to get the percentage of reduction and multiply the vertical dimension by that.
In other words:
(new width / old width) * old height = new height
or
(450 / 1049) * 576 = (0.4289) * 576 = 247.0464
So your new dimensions are 450×247 (see… it pays to stay awake in math class) 😉
~jr
http://www.johnrofrano.com
http://www.vasst.com