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.
mostly for myself, but I figured I'd share too.
Download:
http://www.tacticalbread.net76.net/PROGR...escreen.7z
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.
lol. too bad I don't know what half of that is.
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.
That would be very interesting to see.
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.
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.
Lol, I still use calculator for these things.
Eg: 480 / 9 * 16 / 16, round, * 16 = 848
Nice simple app you got there.