Resizing 640x448 (game footage)

This forum is for video and audio help and discussion.

Resizing 640x448 (game footage)

Postby Bushido Philosopher » Tue Nov 26, 2002 5:53 pm

What would be a good resize for this frame size? This is from a game rip so that's why it has a weird aspect ratio.

If someone knows how to figure out frame sizes to smaller or larger then please tell me how.

Thanks everyone.
"Many people want to change the world, but very few even consider changing themselves."
<<A>My Member Profile</a>> <<A>Read my Xanga</a>>
User avatar
Bushido Philosopher
 
Joined: 25 Jun 2001
Location: California

Postby ErMaC » Tue Nov 26, 2002 7:32 pm

Er, why not leave it that size? both resolutions are divisible by 16, so you're not gonna have half macroblocks or anything, it should work fine. Am I missing something here? Or are you encoding this for distribution?

If so you could resize to like 480x336 as that's maintains the exact same aspect ratio as 640x448...
User avatar
ErMaC
The Man who puts the "E" in READFAG
 
Joined: 24 Feb 2001
Location: Irvine, CA

Postby Bushido Philosopher » Wed Nov 27, 2002 2:14 am

ErMaC wrote:If so you could resize to like 480x336 as that's maintains the exact same aspect ratio as 640x448...


Yah, that's kinda what I was goin for. 480x336 huh?

how do you resize staying in the same aspect ratio anyway?
"Many people want to change the world, but very few even consider changing themselves."
<<A>My Member Profile</a>> <<A>Read my Xanga</a>>
User avatar
Bushido Philosopher
 
Joined: 25 Jun 2001
Location: California

Postby RadicalEd0 » Wed Nov 27, 2002 2:25 am

you take 480 divided by 336 and make sure the answer is the same as 640 divided by 448 ;P
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
User avatar
RadicalEd0
 
Joined: 24 Jun 2002

Postby Bushido Philosopher » Wed Nov 27, 2002 8:09 pm

RadicalEd0 wrote:you take 480 divided by 336 and make sure the answer is the same as 640 divided by 448 ;P


damn, that's a lot of trial and error.... :?
"Many people want to change the world, but very few even consider changing themselves."
<<A>My Member Profile</a>> <<A>Read my Xanga</a>>
User avatar
Bushido Philosopher
 
Joined: 25 Jun 2001
Location: California

Postby RadicalEd0 » Thu Nov 28, 2002 12:02 am

nah not really
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
User avatar
RadicalEd0
 
Joined: 24 Jun 2002

Postby klinky » Thu Nov 28, 2002 6:37 am

<a href="http://klinky.home.attbi.com/MisatoAspect.exe">Image</a>

com'on you know you want to click on it

~klinky
User avatar
klinky
 
Joined: 23 Jul 2001
Location: Cookie College...

Postby RadicalEd0 » Fri Nov 29, 2002 4:48 pm

I was working on an all-in-one aspect ratio/resolution swiss army knife that let you put in say a fractional ratio like 4:3 and the total pixels and get the res, the decimal ratio like 1.333 : 1 and get 4:3, change pixel aspect ratio and see all the changes visually too. It was pretty cool, although really just a toy, anyway I'll finish it sometime when I feel like wasting more free time looking up stuff that we dont learn until the last chapter of BASIC at school :P
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
User avatar
RadicalEd0
 
Joined: 24 Jun 2002

Postby RadicalEd0 » Fri Nov 29, 2002 4:51 pm

this is pretty nify though
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
User avatar
RadicalEd0
 
Joined: 24 Jun 2002

Postby klinky » Fri Nov 29, 2002 5:15 pm

It was pretty funny making it. It worked fine for something easy liked 4:3 640x480, but it choked on the 640x448 listed here.

Problem was I was converting them to integers to soon. :roll:

All calculations are done with double precision floats(decimals, whatever), then converted to integer on display ^_^ Ahh yes, that fixed the problem.

I was thinking of doing something like "oh it's 4:3", but I would have to have a list of standard aspects'. The best way I could think of doing this is making a conversion list. So that if the aspect = 1.333333, it looks in the list, compares, if it finds a matching entry like "1.333333 = 4:3" then it would print out "4:3" instead of "1.333333".

I don't think there is any actual algorithm you could create that would produce the type of aspects we would like to see. Such as 4:3, could also be shown:

1.333333:1
2.666666:2
4:3
5.333333:4
6.666666:5

Which one does the program choose ? How would it know which one is correct, well they're all correct, just which one is everyone used to seeing? The program wouldn't know unless you told it :\ I guess you could also tell it to choose the first ratio were both numbers are not decimals

^_^ WHoa! That may just work ^_^

~klinky
User avatar
klinky
 
Joined: 23 Jul 2001
Location: Cookie College...

Postby RadicalEd0 » Fri Nov 29, 2002 5:26 pm

That parts simple (okay so it took me a few days to figure out)
the user inputs 1.85:1 and wants the closest integer aspect ratio like 1.333 is to 4:3.
You simply take 185 and 100 and get the GCF, which is 5. Then divide 185 into 5 = 37 and 100/5 = 20
thus the integer aspect ratio of 1.85:1 is 37:20
when it comes to repeating decimals like 1.333 you have to go maverick and do something like 1.333 * 1440 and round the result and then get the gcf of that or something, I dont quite remember. I could post the code if you want, of course then you'd be ripping off my prog ;P
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
User avatar
RadicalEd0
 
Joined: 24 Jun 2002

Postby klinky » Fri Nov 29, 2002 5:49 pm

Actually wouldn't it just be simpler if someone input the aspect ratio and it just listed all the possible resolutions that could be divided by div.

I don't feel like writing out the code for it. It seems rather simple though. :twisted:


~klinky
User avatar
klinky
 
Joined: 23 Jul 2001
Location: Cookie College...

Postby RadicalEd0 » Fri Nov 29, 2002 6:20 pm

yeah, but weren't you asking how to make 1.333 go to 4:3 mathetically without having the program go 'hey, 1.333, that means 4:3'
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
User avatar
RadicalEd0
 
Joined: 24 Jun 2002

Postby klinky » Fri Nov 29, 2002 7:07 pm

RadicalEd0 wrote:yeah, but weren't you asking how to make 1.333 go to 4:3 mathetically without having the program go 'hey, 1.333, that means 4:3'


Yes, the only problem with your idea there is that there are hardcoded values in there. How would the program know which decimals to multiply by 100, and which to multiply by 1440? Also maybe there would be a black sheep in there that wouldn't work with either and needs something custom :O


~klinky
User avatar
klinky
 
Joined: 23 Jul 2001
Location: Cookie College...

Postby RadicalEd0 » Fri Nov 29, 2002 7:15 pm

easy, if its more than a certain amount of decimal points make sure it uses the 1440 round method. I mean, nobody is going to input 1.986444818451 and expect a dead on accurate output :\
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
User avatar
RadicalEd0
 
Joined: 24 Jun 2002

Next

Return to Video & Audio Help

Who is online

Users browsing this forum: No registered users and 1 guest