Post Reply 
[release] Widescreen resolution generator
Author Message
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #1
[release] Widescreen resolution generator
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.

[Image: 94137815.png]

Download: http://www.tacticalbread.net76.net/PROGR...escreen.7z

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
(This post was last modified: 02/09/2009 06:21 PM by lembas.)
02/09/2009 06:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Assassinator
...

Posts: 6,646.6190
Threads: 176
Joined: 24th Apr 2007
Reputation: 8.53695
E-Pigs: 140.8363
Offline
Post: #2
RE: [release] Widescreen resolution generator
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.)
02/09/2009 06:47 PM
Find all posts by this user Quote this message in a reply
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #3
RE: [release] Widescreen resolution generator
lol. too bad I don't know what half of that is.

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
02/09/2009 06:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
|-Anubis-|
<3 Girls

Posts: 1,241.1884
Threads: 45
Joined: 12th Feb 2007
Reputation: -2.28734
E-Pigs: 26.8142
Offline
Post: #4
RE: [release] Widescreen resolution generator
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.

[Image: chikarusigrf1.png]
02/09/2009 07:01 PM
Find all posts by this user Quote this message in a reply
Assassinator
...

Posts: 6,646.6190
Threads: 176
Joined: 24th Apr 2007
Reputation: 8.53695
E-Pigs: 140.8363
Offline
Post: #5
RE: [release] Widescreen resolution generator
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.)
02/09/2009 07:15 PM
Find all posts by this user Quote this message in a reply
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #6
RE: [release] Widescreen resolution generator
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:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
(This post was last modified: 02/09/2009 07:23 PM by lembas.)
02/09/2009 07:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #7
RE: [release] Widescreen resolution generator
Lol, I still use calculator for these things.

Eg: 480 / 9 * 16 / 16, round, * 16 = 848

Nice simple app you got there.
04/09/2009 01:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: