Gens Rerecording, formerly known as Gens Movie Test, is a modification of the highly popular Gens emulator by Stéphane Dallongeville (also known as Stef). This modification includes slowdown, recording and playback of controller input logs, dumping of AVI files, and Lua scripting. This emulator is primarily used by the TASVideos community, and was created and modified by Jyzero, Nitsuja, and Upthorn.
It is easily possible to create 100% DVD compliant video from the 320x240 Gens Movie Test raw emulator output. This requires Avisynth, the MPEG-2 encoder of your choice - a recommendation is TMPGEnc (but any MPEG-2 encoder can be used as long as it properly supports interlaced video) and AC3Machine (using BeSweet as it's AC3 encoder). This can also require lots of hard drive space depending on the length of the movie. NTSC video is dealt with primarily in this guide, but can be easily modified to generate PAL instead, although I haven't done so myself.
First of all, load Gens Movie Test and load a ROM. Next, press ESC to pause the emulator. Go to the following menu items and select them:
In the dialog that appears, browse to find the GMV file that is desired to be used as the source, and ensure that Play from start is selected. Press OK. Whenever ready to begin dumping the AVI, press ESC once more, and choose a lossless codec (Camstudio Lossless Codec in GZIP compression at level 9 is recommended, but a codec like Huffyuv will work just as well). When the movie is finished playing back, select Graphic -> Stop AVI Dump and exit the emulator.
At this point there will likely have multiple AVIs that are around 1GB apiece. Use the following script (place it in the same folder as your raw AVIs and give it the same name but with an AVS extension):
AVISource("gens.avi")+AVISource("gensA.avi")+AVISource("gensB.avi") # make sure you put all your AVIs here in order AssumeBFF() AssumeFieldBased() Crop(1,0,0,0) # remove garbage pixel on left #PointResize(638,240) # this is for 'perfect' video BilinearResize(638,240) # this is for video that looks closer to a real RGB output AddBorders(42,0,40,0) # pad to 720x240 Weave() # weave fields into 720x480 frames AssumeFPS(29.97,true) # adjust framerate from 30fps to 29.97fps for NTSC ResampleAudio(48000) # fix the audio sample rate from the framerate modification
To visually inspect the output of this script, VirtualDubMod can be used, although video won't have to be rendered with it if TMPGEnc is being used to encode the video. The video should be seen to be in a 720x480 aspect ratio, that exhibits 'mice teeth', and depending on which resize method you used, video that looks slightly soft in the horizontal direction.
This guide assumes that TMPGEnc is being used, which can directly accept AVS files for input. If using a MPEG-2 encoder that does not, then VirtualDubMod will have to be used to render the AVS script to another AVI file, which should also be lossless. The general settings for the MPEG-2 encoding should be applicable to other encoders, however. In TMPGEnc, it is recommended to not use the wizard mode, and instead, finetune the encoding parameters yourself. First of all, in assuming the best quality is desired, use Constant Bit Rate of 8000kbps for the video, unless the video is longer than an hour or so. You'll be using LPCM in TMPGEnc, which will be encoded to AC3 later.
GOP Structure tab:
Press OK. Go to Output file name, press Browse, and choose a filename for the encoded output (it will automatically generate both .m2v and .wav files with that name). Press Start at the top and go out for a meal, because it will take a good while to encode.
All players will support both LPCM and AC3 audio, but LPCM is also much larger. Instead, we will be making a 448kbps AC3 file. Load AC3 machine, select your input .wav file and and output .ac3 file.
Now press Give me AC3! and wait a little bit (this will take far less than the video encoding did). Once it's done, there should be both an .m2v and .ac3 file.
This is the part where it really doesn't matter so much what DVD authoring tool you use, TMPGEnc DVD Author is recommended but as long as it accepts m2v and ac3 input then it's good to go, and menus can be set up as desired.
|Download Gens Rerecording
File: Gens_Movie_Test_v11a.7z (850 kB) (info)
Current version: 11a