Archos JBM20 / AV100 / AV300 VirtualDub Tutorial
updated 2004/7/15
(link back to Top)

  1. JBM20 / AV100 / AV300 Video Basics
  2. Getting Installed
  3. Setting Up for Converting a File with VirtualDub
  4. Files
  5. Using 2pass Encoding

JBM20 / AV100 / AV300 Video Basics

VirtualDub is a program for convering AVIs and MPGs to AVIs. That seems a little silly. Why convert an AVI to another AVI? Well, not all AVIs are the same. For an AVI to work on the JBM20 / AV100 / AV300 its CODECS must be right.

What is a Codec?
Codec is short for Coder/Decoder. On computers, video and audio can be encoded in many ways. A codec is the software for encoding and decoding audio or video. Any movie, tv-show, music video, etc..., has two parts - audio and video. You can select the codec for each separately.

The JBM20 / AV100 / AV300 has very limited codec support. Specifically it supports two codecs: MPEG4 (DivX) for video and Mpeg-Layer-3 (MP3) for audio. Your AVI must have both the video and audio codecs right in order for it to work on the JBM20 / AV100 / AV300 (if just the video is right it will work but you'll have no sound). Unfortunately, this isn't the only thing you have to do to make an AVI work on the JBM20 / AV100 / AV300

What Makes an AVI JBM20 Compatible?
This isn't as simple as we would like, but it isn't terrible. Below is the list of everything that has to be right for the JBM20 to play the video:

It may sound a little complicated, but it isn't that bad.

What Makes an AVI AV300 / AV100 Compatible?
Both the AV100 and AV300 have the same, faster CPU in them. Therefor they can playback higher resolution video. Their requirements are:

Getting Installed

First you need to download some files:

Now lets see if you got those all installed right :). Run VirtualDub (by double-clicking the VirtualDub.Exe icon).

DivX5 Check:

Lame MP3 Check:

Radium MP3 Check (if you chose to use Radium instead of Lame MP3):

Smart Resize Check:

If you were able to go through all the checks, you're set to go!

Setting Up for Converting a File with VirtualDub

This section gives explicit instructions for setting up VirtualDub's conversion settings. VDub can save these settings, but I'm not sure how well this works on all machines. You can try downloading this file: ShaneJBMM.vcf and, in VirtualDub, selecting File->Load Processing Settings to load it. If it works, you can probably skip this whole section. It seems to work on my machine, but every machine is different.

Start by opening the file. Go to File->Open or simply drag and drop an AVI or MPEG to VirtualDub. Sometimes VirtualDub can't open afile, but right now we aren't going to deal with that. If your file can't be opened, try another.

Now, lets see some info on your file. Select File->File Information. It should look like this:

You will see that there are two problems with my AVI - for playing on the JBM20. First, my file's resolution is 640x360. Second, my Audio Codec (the Compression line of the Audio stream section) is Windows Media Audio.

Setting Up the Video Conversion
If your video is already in DivX 5 format and is less than or equal to 352x288, you can choose not to re-encode your video. You can select Video->Direct Stream Copy. This is much faster, so if you can, you should probably use it. But, most the time you can't :). If you can't, make sure Video->Full Processing Mode is selected.

If your video is bigger than 352x288 (in any way) you must resize it. You need to add the smart resize filter.

If your video is small enough, go to the Filters dialog box and remove the resize filter - this will make things faster.

If you are not sure, or if you are going to convert lots of videos of different sizes, go ahead and leave this filter setup. You can't go wrong with it on :).

Setting Up Smart-Resize for JBM20s

When you Click OK to add the smart resize filter, you will see the following box:

The easiest and best settings are the ones I've shown in the picture. Your input width and height will be different than mine, but everything else should match. The Filter mode selects the quality. Precise Bicubic is the best and slowest. Probably all of them are fine except for the first one: nearest neighbor (that is what the built-in virtual dub filter does). If you follow all the settings above, you won't have to worry about multiples of 4 or anything else related to size. This will (should) just work :).

Setting Up Smart-Resize for AV100s / AV300s

There are basically two ways you might want to setup your smart resize filter for your AV100/AV300. If you expect to primarilly view the video on the LCD, you can maximize quality while minimizing size by using the 320x240 resolution. Configure your smart-resize like:

If you want the maximum quality for playback on a television, and the video you are encoding meets one of the following requirements:

Pay close attention to the resulting "New Height" at the top (which is greyed out). If your source material is at 30fps (NTSC), then it shouldn't be more than 304 pixels high. If your source material is 25(PAL) or 24fps (film), then it shouldn't be more than 368 pixels high.

For more information on choosing encoding resolutions for your AV100 / AV300 - see my AV300 Video Resolutions FAQ.

Setting Up the DivX Video Codec

The last step in setting up the video end of the conversion is to setup the DivX codec:

Now you should see something like this:


DivX 5.1 main config screen

The first thing you need to do is to configure DivX to create Archos-compatible video. To do this, click the "Select Profile Wizard". On the first screen, checkmark the "Disable profiles" checkbox like this:


DivX 5.1 Archos-compatible profile settings Step 1of 2

Then, on the second screen, uncheck every option in MPEG4 tools so your window matches mine below. Unfortunately, the none of the Archos players support these enhanced encoding options yet.


DivX 5.1 Archos-compatible profile settings Step 2 of 2

Now, back to the main screen, you have some options for how you want DivX to encode your video. For you first time, I suggest you select 1-pass encoding (not 1-pass quality-based) under the Variable bitrate mode pull down. Then you can select your bitrate with the slider or just type it in. Higher bit rates mean higher quality. Lower bit rates mean smaller files. For this first encode, use 500kbps for 352x288 or lower resolution files, or 1000kbps for higher resolution files. The first DivX picture above clearly shows these options set.

Advanced Settings for DivX Video Codec

Skip this section if this is your first time encoding video for your Archos. However, if you want to tweak the most from your encoded video, try the following settings:

For even more detailed information on configuring DivX, be sure to check out DivX.com's Official 5.1 Guide (local mirror). It covers all the DivX settings, what they do, and how to get the most out of them - all in a very readable and easy to understand format. This guide even has its own little VirtualDub tutorial. Well worth the read for the advanced encoder. There are a few important notes you should keep in mind as you read the Official DivX Guide if you are encoding for Archos PVPs:

Setting Up the Audio Conversion

VirtualDub, unfortunately, doesn't make this as easy as it could be, but it isn't that bad. Here goes!

If your source file already has MP3 audio, then you can select Audio -> Direct Stream Copy and skip the rest of the Audio conversion setup. Other wise, select Audio -> Full Processing Mode.

The first thing to decide is what quality audio you want. If you are concerned about quality, I suggest 160kbps. Otherwise, settings from 32kbps to 128kbps should suffice. If there is a lot of music in the clip, use higher bit rates. Lots of dialog? Lower bitrates are usually fine. If you have no idea, choose 128kbps.

Lets get the audio compression setup first:

Find the bit-rate you want. You will notice that there may be several lines with the same bit rate but other differences. Choosing stereo or mono is pretty straight forward. After you've chosen stereo/mono and your bitrate, find the bitrate with the best sample rate (kHz, the biggest number on the left). Make sure you a select CBR (constant bit-rate) setting. VBR won't work. Below you can see that I've selected 128kbps bitrate, Stereo, at 48000kHz. This is a good all-around setting.

Now, whatever setting you chose, remember the Stereo/Mono option and the kHz. We'll need this info next. Now we need to convert the audio. Actually, this happens first, but it is best to decide what your destination is (the MP3 settings we just did) before you setup conversion.

You should now see the dialog box pictured below. The key things are: make sure you convert to the same Stereo/Mono and kHz that you selected when we setup the MP3 encoder. Also, always select to convert to 16bit.

If you want, you can check-mark the High Quality check box - it'll be slower but sound better. Click OK and we are done setting things up!

You should also check your audio interleave options:

Finally! Convert Your AVI!

You can now open and convert many files without having to go through all the setup. The current Video and Audio settings will not be forgotten until you quit VirtualDub. So, when you startup VirtualDub the next time, you'll have to reset them back up.

Files

Here are the main files you need, an you should probably get the SmartResizeFilter as discribed above:

There are many SmartFilters you may want to try:

Using 2pass Encoding

2-pass encoding gives DivX a chance to make higher quality videos for the same (or less) file size. Further, and perhaps more importantly, two-pass allows you to get pretty close to the average bitrate you specify. However, 2-pass encoding takes literally twice as long to do. With 1-pass your final average bitrate is never the same as the one you specified. Personally I almost always use 2-pass these days - it really is that much better.

Below is a quick description of how to do 2-pass encoding with Virtual-Dub provided by Matthew Coulson: