Main > Software Forum

MAME Movie Maker released

<< < (152/153) > >>

cdbrown:
Do each of the snapshots in moviesnp correspond to a frame within mame?  The reason is some games have lenghty intro's talking about the story of the game (64street).  The title screen and the following gameplay attract doesn't start until the 5721 png.  Just wondering if I could put that number into the moviemaket.bat so it would start frame there and then detect the loop after that?

NIVO:
well i edited the output .vdb file for 64street to this:
VirtualDub.subset.AddRange(5721,9243);
goes from title through gameplay footage through to the score table, which is perfect and waht we are looking for.

However 2 key points that it messes up:
#1 audio is way outta sync(but i figured this much as well)
#2 leaves a long black screen end, when it needs to stop immediately after hi score table goes black(which indicates, its about to loop obvioulsy)


*** im beginning to understand the process a bit now hehe, just need to learn what to look for regarding the editing

Silver:
Each png in the moviesnp dir represents 1 frame of video output from mame.

Virtualdub has some annoying quirks in its script as you have found out.

The addrange command adds the frames you specify in that range - so it added 5721 - 9243 as your case. Unfortuantely, this means vdub has no idea how to sync the audio.

So what actually happens is that Vdub adds all the frames - Addrange (0,9243)
Then it sets the framerate to match the length of audio - SetFrameRate(-1,2)
(-1 matches duration, 2 is skipping every other frame to give us 30fps)
Then we tell it to only output from our startframe: SetRange(23323,0)

The catch is that for some crazy reason, although addrange deals in frames, setrange deals in milliseconds from the start. So Buddamame converts the number of frames to skip to milliseconds and inserts it here.

Buddabing:
Okay, I've created my own mng2avi utility. It takes a mng which was created from MAME and an optional wav which was also created from MAME, and produces an AVI file.

It should support all the most recent modifications, ie.

1) -moviesquare support for 128, 256, etc.
2) moved clear filters to top of .vdb file.
3) added -movieaudio 3 to disable audio even when a wav is present.

So now you can create movies even with an unmodified MAME, so long as your mame supports mng output. (version v0.100 or later)

As of right now you still can't get synced-up sound without a modified MAME.

Here's a link to my mng2avi utility

Source is included.


NIVO:
thx budda, will take a look at it

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version