, and so on.
Now, it's time to encode it.
.
If there's more than one AVI file, probably the case,
you should append AVI segment in the correct order.
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
.
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.
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.
To be written some day...