Sunday, February 27, 2011

How to Convert MAME .inp Files to .avi Files

This is a question that comes up a lot, so I'm going to show you the method that works for me with Windows 7.
There are more ways to do this, and if anyone has a better method, I'd very much like to hear about it, please let us know in the comments :)
Just a quick overview: Some versions of MAME let you record the keystrokes of your game while you are playing, so you can watch it later or share it with other people who may want to watch, these are recorded in an .inp file. The only drawback is that in order to watch a replay, you must have MAME, it must be a compatible version, and you must have the ROM of the game you are trying to watch. This makes it hard to share your games with most people.

So what we're going to do is take the .inp file you have made and convert it to an .avi file for uploading to a video hosting service like Youtube, Veoh, etc.

Things you will need:
Xvid Codec
Grolwer Guncam 

These will both require installing.
Once you have Growler Guncam running there are some settings you will want to change.
First you need to set a Trigger key. in Setup\Trigger. Try to use a key that will not be pressed during the game you are recording, I use the backslash key \
The trigger key tells the software when to start recording and when to stop. If you are recording a MAME game, the recording automatically stops when you exit the game.

I had to tweak a few setting in order to get everything to work right. I'm just going to show you screen captures of some of my settings now. (Click these to make them bigger if you want.)

Capture Setup
 
Advanced Setup
Video Export Setup
With Growler and MAME both running, start your MAME replay and then hit the Trigger key you assigned earlier to start recording. When you are done recording, hit the Trigger key again or just press escape to leave the game and it will stop recording.
After you've made your movie, it will be saved in a .gcf file format, which will probably be a gigantic file.

Select your video by clicking it and then click Export Video as GIF, JPG, AVI.


At first you will only see a picture in the left frame, click the Append Selected Film arrow in the center and then when you're ready, click the as AVI button in the Export Destination Film.
Now you should have a nice little .avi video of your game. Unfortunately the quality of the video isn't going to look as good as watching in MAME, because of compression, and when you upload to a video hosting site it will be compressed yet again, so you may want to consider not using compression.
That's pretty much all there is to it, here are some videos I made with Growler. They don't look super good, but they get the point across.
(These are all me playing :)

Samurai Shodown III Level 8 One Credit Completion MAME



Samurai Shodown V Special Level 8 One Credit Completion MAME



Street Fighter Alpha 2 Expert Level High Score MAME



Samurai Shodown Level 8 High Score MAME





Good luck with your videos and don't forget to delete yor .gcf files after you're done with them, as they tend to take up lots of space!
Discuss this topic on the forums!