Emulator Resources / Making AVI / Famtasia / Windows

This page is part of the Emulator resources / Making AVI page collection. Back to:
<< Emulator Resources / Making AVI / Famtasia
<< Emulator Resources / Making AVI
<< Emulator Resources

This page explains how to create AVI files from Famtasia movies when you have a Windows operating system.

Program requirements

You need Famtasia.
See EmulatorHomepages.
You need VirtualDub.
You can find it at: http://virtualdub.org/ .
You need LAME.
You can download it at: http://www.free-codecs.com/download/Lame_Encoder.htm .
You need XviD codec.
You can obtain it from: http://www.koepi.org/ .
You need FFDShow codec.
You can get it from: http://ffdshow.sourceforge.net/
You need NanDub.
You can find it at: http://ndub.sourceforge.net/

The Famtasia version you need MUST have these patches:

  • 60 FPS
  • AVI recording
  • Windows fix

It must NOT have these patches:

  • Audio logger

All the other settings, including "240 scanlines", are up to you to decide.

Configuring Famtasia

These settings are vital for Famtasia recording to work correctly:

  [Speed]
  DrawFrame=1
  ExecSpeed=100
  Occupation=1
  AutoFrame=0
  [Sound]
  SamplingRate=44100
  NoReverb=1
You can set them via the GUI or by editing the configuration file directly.

Ensure that the window is not scaled.

Recording video

Make sure you have enough free space disk before recording. It needs approximately 2 gigabytes for each 4:45 of movie time.

You need to open Famtasia with AVI recording feature.

The next step requires to be quick otherwise you will have to cut unwanted frames at the beginning of your video.

Open the rom, then quickly pause the emulator, but make sure the screen is in grey otherwise, for unknown reason, it will not start recording.
Then open the movie file, FMV format.
After this, you need to unpause the emulator and let the movie play. It's now recording to AVI.

Using VirtualDub

After the recording, you should have some video file(s) named like: recording00.avi, recording01.avi, and so on.

Now, it's time to encode it.

Open virtualdub.exe, then open recording00.avi. File>Open video file
If there's more than one AVI file, probably the case, you should append AVI segment in the correct order. File>Append AVI segment

If you want to set the end of the movie, it's now time to do it. You must put the cursor on the desired frame then press keyboard END.

Encoding audio via the LAME mp3 encoder

After editing your movie, it's now time to encode audio.

At first, you need to extract audio from this movie file, preferably in the LAME encoder directory, so it will be more easier. File>Save as WAV

Hint: Do not close VirtualDub yet, otherwise you will need to reedit your movie.

You are now ready to use LAME.

Open a DOS shell (MS-DOS prompt, or whatever), then browse to where your LAME executable is.

For NES videos, I use these settings: abr 56kbps, frequency at 44.1khz, mono sound channel and -q 0 (for best quality as possible).

So it should be like this:

lame.exe --abr 56 -q 0 -a --resample 44.1 nameofyourfile.wav nameofthenewfile.mp3

Now wait and let encode it.

Hint: To avoid typing command in a DOS shell each time you want to encode audio, you can create a batch file.
Example:

"LAME path\lame.exe" --abr 56 -q 0 -a --resample 44.1 "Your WAV file path\nameofyourfile.wav" "Path where you want the encoded audio file be\name of your encoded audio file.mp3"

You can also add a command line that auto-deletes the WAV file like this:

del "Your WAV file path\nameofyourfile.wav"

P.S. For more information about command lines, read the usage.txt file included with LAME.

Encoding video using the XviD codec

In VirtualDub, which should still be open, go to audio menu, then select no audio. This is because the audio was already encoded in the previous step.
Why not using VirtualDub for encoding audio? It's simple. VirtualDub is pretty limited for encoding MP3 audio, especially using vbr audio (abr is kind of vbr). So at the end, you will be supposed to have an AVI file with video only and a MP3 file. With the help of NanDub, we will mix them.

Next, you should go to video menu then click on color depth option. There should be a new window called Video Color Depth. In that you must select 16-bit (HiColor/32k) for both Decompression format and Output format to compressor/display. When it's done press ok.

You are now ready to configure XviD.

In video menu, select Compression. There should be a new window called Select video compression. Select XviD MPEG-4 Codec, then click on configure. Set the Profile @ Level to (unrestricted). Now, click on more.... In that new window, you should see Quantization type, Adaptive Quantization.

Quantization type should be set to H.263. Adaptive Quantization should be checked. Quarter Pixel should be checked. Global Motion Compensation should be checked. B-VOPs checked (The default options that came with it are just fine). Packed bitstream checked. Closed GOV checked.

Done for Profile @ Level configuration. So press OK

There's Encoding type with following options: Single pass, Twopass -1st pass, Twopass - 2nd pass.
For having the smallest file as possible without lowering too much quality, we need to do a 2 pass encoding.
So select, Twopass -1st pass. Well click on more.... You are supposed to see, Full quality first pass that must be unchecked and there's Discard first pass that must be checked. Now press OK%

Finally, there's Advanced Options. So click on that button.
Set Motion search precision to 6 – Ultra High, VHQ mode to 4 – Wide Search, Use chroma option enabled. Cartoon mode and Turbo mode must be unchecked.
Now switch to Quantization tab. Trellis quantization must be checked. Press OK after this.
Now the configuration for doing the 1st pass is finished. So press OK twice.
Then Fle>Save as AVI.
It's now encoding your 1st pass.

After finishing to encode it, you are now ready to encode the 2nd pass.
Return to XviD configuration.Select Twopass - 2nd pass. Click on calc....
So in that Window, you should set Target size(kbytes) so that it will be no higher than Bisqwit 3MB per minute wich in fact is 2.7 Megabytes per minute.(I wonder why) Set the correct video time and select 60 fps(frames per second). In audio settings, select MP3-VBR. Then select Size (kbytes) and click on ... then select your encoded MP3 file. Press OK 3 times and Save as AVI.

That's all. When the encoding is finished, you are supposed to have an AVI without sound.

Encoding video using the FFDShow codec

To be written some day...

Using NanDub

An AVI file without sound and a MP3 file, that's what you have after these manipulations.
Open NanDub, at first it looks the same as VirtualDub but is different. VirtualDub is good for video as NanDub is good for audio.
So, open the video file, File>Open video file, then Audio>(VBR) MP3 audio.
Browse to where you put that encoded MP3 and open it. Go to Video menu and set Direct stream copy, Video>Direct stream copy.

Now File>Save as AVI and your movie is done. :D

What was missing from this document?

Logo

Annotations

Publishing the movie

Other

Author

Written by Phil

Get Firefox!EmulatorResources/MakingAVI/Famtasia/Windows last edited by Bisqwit on 2008-02-20 13:37:47
Page info and history | Latest diff | List referrers