whenever setting custom resolutions for games and whatnot, I would get very aggravated trying to find a decent resolution, at a certain aspect ratio, so I just wrote this up.
I wrote myself a massive excel spreadsheet for that kind of stuff some time go.
Well, more than just normal aspect ratio calculations, it also calculates SAR, DAR, nearest mod16 & resulting % AR error, crop calculations & resulting % AR error, and generates upsize/downsize lists with mod16 check. All that stuff mainly for encoding purposes.
(This post was last modified: 02/09/2009 06:49 PM by Assassinator.)
Assassinator Wrote:I wrote myself a massive excel spreadsheet for that kind of stuff some time go.
Well, more than just normal aspect ratio calculations, it also calculates SAR, DAR, nearest mod16 & resulting % AR error, crop calculations & resulting % AR error, and generates upsize/downsize lists with mod16 check. All that stuff mainly for encoding purposes.
Xitherun Wrote:lol. too bad I don't know what half of that is.
SAR = sample aspect ratio. Pixel aspect ratio to transform your video's AR into the display AR you want. Just set DAR in your av container (eg. MKV, MP4) instead, it's easier to calculate.
DAR = display aspect ratio. Just 16:9, 4:3 whatever.
mod16 = divisible by 16. All modern encoders use 16x16 macroblocks, so if your video is not mod16, the encoder needs to pad it and stuff, gayness (inefficiency) ensues. That's why you see 848x480, not 852x480, even though 852x480 is closer to 16:9 AR.
You don't really need any of that stuff though,s o no point adding it into your program.
|-Anubis-| Wrote:That would be very interesting to see.
At school right now. Can upload later when I get home if you really want. But yeah, the maths is pretty simple, so it's nothing special really.
(This post was last modified: 02/09/2009 07:30 PM by Assassinator.)
Assassinator Wrote:You don't really need any of that stuff though,s o no point adding it into your program.
lol yeah. this is meant to be very simple, just giving you the resolution for a specific aspect ratio; I wrote it in about 20 minutes, and it's the first program I've written all summer too, lol.
I'm gay.
Spoiler for online game stuff:
3DS FC: 4184-1632-9353
Spoiler:
Spoiler:
In the words of the wise trademark91:
windows
(This post was last modified: 02/09/2009 07:23 PM by lembas.)
02/09/2009 07:23 PM
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391 E-Pigs: 446.1274