Home Action Replay Page Forum Index Home Action Replay Page
Home Action Replay Page
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MESS calculation of INP sizes

 
Post new topic   Reply to topic    Home Action Replay Page Forum Index -> General
View previous topic :: View next topic  
Author Message
gameboy9
Site Admin


Joined: 20 Sep 2004
Posts: 810

PostPosted: Sun Jul 23, 2006 8:14 pm    Post subject: MESS calculation of INP sizes Reply with quote

I know it's 128 bytes / frame... don't know the exact sematics though. Want to make this sticky in case I'm forced to time recordings...

Last edited by gameboy9 on Thu Feb 08, 2007 10:24 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Chad
Supereditor


Joined: 05 Jan 2005
Posts: 810

PostPosted: Sun Jul 23, 2006 9:12 pm    Post subject: Reply with quote

if it's like mame and it looks like it is it'll be (including the header) not counting if it's using an analogu input (in which case the file will be larger by a random amount.)

filesize=32+frames*128
Back to top
View user's profile Send private message
mahlemiut
Supereditor


Joined: 06 Jan 2005
Posts: 914
Location: New Zealand

PostPosted: Sun Jul 23, 2006 9:26 pm    Post subject: Reply with quote

That would 120 bytes per frame (30 input ports, 4 bytes per port, last I checked)
_________________
- Barry Rodewald
HARP CPC, X68000, Neo Geo Pocket, and Neo Geo AES section editor
http://galemu.emuunlim.com
Back to top
View user's profile Send private message Visit poster's website
Chad
Supereditor


Joined: 05 Jan 2005
Posts: 810

PostPosted: Sun Sep 10, 2006 3:41 pm    Post subject: Reply with quote

ok therefore time of mess recordings is equal to

filesize=32+frames*120

frames=60*seconds

seconds=(filesize-32)/(7200)
Back to top
View user's profile Send private message
gameboy9
Site Admin


Joined: 20 Sep 2004
Posts: 810

PostPosted: Sun Sep 10, 2006 4:18 pm    Post subject: Reply with quote

But it's 50 frames if it's a PAL game, isn't it?
Back to top
View user's profile Send private message Send e-mail
Chad
Supereditor


Joined: 05 Jan 2005
Posts: 810

PostPosted: Sun Sep 10, 2006 5:16 pm    Post subject: Reply with quote

yeah it may be 50/30/60 depending on the fps of the emulator

seconds=(filesize-32)/(120*fps)
Back to top
View user's profile Send private message
MJS
System Leader


Joined: 12 Feb 2005
Posts: 177
Location: Buenos Aires, Argentina

PostPosted: Sun Sep 10, 2006 6:01 pm    Post subject: Reply with quote

I'm trying to follow you guys here... I think the formula in a general way is:

t = (fs - HS) * BPF * fps

where:
t is the time (duration) [seconds]
fs is the file size [bytes]
HS is the header size [bytes]
BPF is the bytes per frame ratio [frames/bytes]
fps is the frames per second ratio [second/frame]

So, if the header size and bytes per frame ratio are constants:

HS = 32 bytes
BPF = 1 frame / 120 bytes

to calculate the duration of a NTSC replay you have to do (as Chad said):

(fs - 32b) * (1f / 120b) * (1s / 60f)
(fs - 32b) * (1s / 7200b)

and for a PAL replay:

(fs - 32b) * (1f / 120n) * (1s / 50f)
(fs - 32b) * (1s / 6000b)
Back to top
View user's profile Send private message
Chad
Supereditor


Joined: 05 Jan 2005
Posts: 810

PostPosted: Thu Feb 08, 2007 2:34 pm    Post subject: Reply with quote

This page should be less sticky, and we should use wolfmess for calculating times primarily. Many mess systems have anaolge bits thrown in which offset these estimations of filesize to time by seconds on the minute relative to the correct time of the recording.
Back to top
View user's profile Send private message
gameboy9
Site Admin


Joined: 20 Sep 2004
Posts: 810

PostPosted: Thu Feb 08, 2007 10:25 pm    Post subject: Reply with quote

Right... this post is depreciated because of WolfMESS...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Home Action Replay Page Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group