Need help with my movie (please)...

Inspired by all these awsome movies that have been made recently, I’ve decided to give it a try (Note: All you good riders, don’t bother watching it…there’s nothing crazy in it). I guess I really just wanted to put “A Fifth of Beethoven” (Saturday Night Fever) as the backing to something ;).

Anyway, I’ve got 3:02 of video which is actually the exact length of the song (YES!) and I need help with something. I’ve got a total of 4500ish frames and I’ve Compressed it (on VirtualDub) with that DivX 5.02 thingy which is set to 300KB/sec but the file is about 18MB. I tried changing the setting to 50KB/sec and told it to process every 3rd frame (because as some of you may remember my camera has been cheating and telling me it records stuff at 25fps but really it only works at about 8fps) but it still came out at 15MB. How can I get it down to about 3-5MB? Ryan’s movie it 8min long and only 5MB. Mine’s 3min long and 15MB…how do you do it?

Thanks a lot,
Andrew

One more thing, Phil wrote this a while ago…

I couldn’t figure it out. I found that plugin but I couldn’t do anything with it.

Any advice?

Thanks,
Andrew

Ok, I’ll help with the winamp stuff cause thats what I know.
The plugin allows you to convert files in formats such as mp3 into .wav files which can then be burnt to a cd, or used in your video…
First check the music you are adding is in mp3 format…if its in wave dont try this, if its in wma youll need another converter - winamp cant help but something like nero can.
Once you have installed the plugin, right click on winamp, goto
options … preferences
then from the list on the left choose ‘output’ and then on the right pick ‘nullsoft disk writer plugin’. thyen choose configure (on the bottom left of the box) and select where you want your wave files to be deposited (in the desktop for example).
Then open the mp3 file in winamp, play it, and watch it convert to .wav
Have fun

That said, a .wav is going to be 40MB alone, whereas the .mp3 will be around 4MB. Make sure you can get your audio compressed as well as your video.

Later,
Eli.

About winamp:
I’m not sure, but I think the newest version of Winamp doesn’t do the Wav conversion. Some of you who know winamp might know more.

About the video:
I’ve never used virtualdub, so I can’t comment on its tools or interface. However, another thing that makes a huge difference when compressing for small video files, in addition to codec and framerate, is the frame size. I don’t know how big the frame size is on your videos, but cutting that down will help significantly. For example, my video camera gives me 720x480 - native DV resolution. However, if I’m going to post a video clip on the web, I’ll compress it to Divx with a frame size of 360x240 - half the original res.

Dropping the framerate, or doing keyframing can help, but can also make your video look much worse. And since your camera is already giving you a wierd framerate, I would need to know more of the vairables - but I think you’ve already found that it won’t help you too much.

Definitely try cutting your frame size down. And when you do get your audio in, you’ll have to export it several times with different audio compression setting until you find something you are satisfied with.

Thanks guys.

Sam,
Now that that’s done, how do I stop using the plugin?

Thanks,
Andrew

Edit 1: I just added the music but it cuts out at 40sec and the song is 3min long??
Edit 2: Problem solved!

Sorry…I couldn’t eidt anymore.

I’ve now got the video done with the audio in it but the filesize is 35MB. Without the audio it’s about 14MB. So how do I compress the audio?

Thanks,
Andrew

I’ll bet you dollars to donuts that the audio is uncompressed.

Open the video in VirtualDub and go to File >> File Information…
The File Information dialog will tell you the sampling rate, audio compression, and also the total size of the audio portion of the AVI.

MP3 is a very common audio compression for DivX. The tricky part is getting an MP3 compressor that works with VirtualDub. If you don’t see an option in VirtualDub for MP3 encoding in VirtualDub then you’ll need to install a version of LAME that includes LameACM. VirtualDub uses the ACM (Audio Compression Manager) to encode the audio so you need an MP3 codec that works with the ACM to be able to encode MP3 in VirtualDub.

Not all distributions of LAME include the LameACM. http://www.doom9.org/ has a version of LAME with LameACM. Go to download >> audio tools. Here is a direct link to the download. <http://www.doom9.org/Soft21/Audio/lame-3.93.1.zip>

Extract the zip file. Right-click on the LameACM.inf file and select Install. That will install the LameACM codec.

Now we’re ready to compress audio in VirtualDub.

In VirtualDub go to the Audio menu and select Full processing mode. Full processing mode lets us play with the audio compression features.

Compressing to MP3 can be a little tricky because the MP3 encoder only works with certain sampling rates and bit precision settings. If your audio isn’t at the right sampling rate and bit precision then you won’t see any selections in the “Select audio compression” dialog when you select Lame MP3. A sampling rate of 44100Hz and a precision of 16-bit will give you the most options for MP3 encoding.

First we need to make sure the audio is at 44100Hz and 16-bit.
Audio >> Conversion…
This will display the Audio Conversion dialog
If the audio is not already at 44100Hz then change the sampling rate to 44100Hz and select the High quality checkbox option.
If the Precision is not at 16-bit then change it to 16-bit.
The Channels can be either mono or stereo
Click OK when done

Now we can compress
Audio >> Compression…
This will display the “Select audio compression” dialog
Select Lame MP3
You should now see some options in the right panel of the dialog for different bitrates that you can encode at. If you don’t see anything in the right panel then your sampling rate and precision rate are not compatible with Lame MP3 and you’ll need to change them. That’s why we changed to 44100Hz and 16-bit in the previous step.
Pick a bitrate for encoding
Click OK when done

Some notes on picking settings:

Lame MP3 can encode at sampling rates other than 44100Hz, but it needs a precision of 16-bit. It can’t handle 8-bit audio. In the “Select audio compression” dialog you can select the “Show all formats” checkbox to see all the sampling rates that Lame can handle.

Lame can do ABR (Adaptive BitRate) and CBR (Constant BitRate). ABR encodes with a variable bitrate with higher bitrates for more complex parts of the audio and lower bitrates for less complex parts of the audio. Even though ABR will give you better compression it is better to use CBR for video. Using ABR can cause problems with audio and video sync with the audio getting out of sync with the video. Going with a constant bitrate makes it easier on the video player to keep the audio and video in sync. There are also some video players that don’t play ABR audio very well.

When using DivX with MP3 audio it works better to use two pass encoding with DivX. The two pass encoding results in better audio video sync so that the audio doesn’t drift out of sync with the video.

If you’re going to be doing a lot of video stuff the Pro version of DivX will give you more options and better compression. DivX just recently reduced the price of the Pro version to $19.99 USD. It’s a good deal if you use it enough. Otherwise the free basic version does well enough.

Thanks a lot for that John. One question though…

When I clicked on install I got this…(and I apparently couldn’t finish installing it).

Andrew

image1.jpg

I’m not sure exactly why it’s not installing for you.

Did your unzipper create subdirectories when it unzipped the file? You should have subdirectories “ACM”, “html”, and “misc”.

Are the files “lame.ico”, “lame_acm.xml”, “lameACM.acm”, and “LameACM.inf” all in the same directory? They should be in the ACM directory.

Out of all the directories (the ones you mentioned) there is only “lameACM.acm”.

Do I need to try to download it again or something? When I got it I went through the links on the site because that link you gave me was “unauthorised” or something like that.

Andrew

You may be downloading an archive that does not have all of the files in it. The archive that is on doom9.org should be complete. I downloaded it myself to check. Does your unzipper let you open the archive and verify that it contains the lame_acm.xml file?

One problem with LAME is that not all distributions contain all of the files (especially the ACM files). It depends on who compiled it and created the archive.

Also make sure that your unzipper is creating the subdirectories. Not all unzippers will create the subdirectories by default when you extract the files.

Another option is to download the Nimo Codec Pack
<http://www.divx-digest.com/software/nimo_pack.html>
It includes the LAME ACM codec. Be very careful with the Nimo Pack. It includes lots of stuff and it is possible to install stuff that brakes existing software and stuff that doesn’t work with each other. Make sure you know what Nimo is trying to install before letting it install something for you. If you run the Nimo Pack be sure to uncheck everything that it tries to install by default and then check only the Lame MP3 ACM under the Audio Codecs.

I don’t know, how do I check?

Thanks a lot for all your help with this. Is the LAME ACM codec the only one that’ll work with the DivX 5.02 one?

I managed to use the Intel Indeo Video 4.3 codec to get the movie with sound down to 6.5MB. The quality’s not great but you can still see what’s going on. I used the MPEG Layer-3 codec to compress the audio which worked great this time. I’ve attached a frame to show the quality…

Thanks,
Andrew

image2.jpg

ZipCentral is a nice free utility that lets you see what’s inside of a zip file. <ZipCentral - The free, robust and easy to use Zipfile manager; You can use that to verify that the XML file is included in the archive.

LAME ACM is not the only MP3 codec that will work with VirtualDub. Any MP3 codec that uses the ACM interface will work.

You may already have a suitable MP3 codec installed. Go to Audio >> Compression… in VirtualDub and see if VirtualDub sees an MP3 codec. There is a crippled MP3 codec included with Windows that only lets you encode up to 56kBits/s.

If LAME isn’t working for you then you can try the Fraunhofer codec that’s included with the Nimo Codec Pack. That’s a pirated version of the Fraunhofer codec and even less legal than installing LAME. But hey, this is MP3. There is a way to buy the Fraunhofer codec, but I don’t know where it is sold or how you would go about getting it.

Nimo also includes a third MP3 codec called “MPEG-Layer 3 Audio V4.2”. I haven’t tried it, but it might work inside of VirtualDub.