Virtual Dub is a very useful program, which is also free. With this program you can compile recorded images from games like Team Fortress 2 or Counter-Strike: Source to video files.
Method 1.
Advantages
-Smaller File size than in method 2
-Easier to edit in programs because of seperate audio and video file
Disadvantages
-A bit slower than method 2
Step 1.
For Method 1 you will need the following:
Virtual Dub – Select the newest 32-bit/64-bit download (use the 32-bit version if you are running a 32-bit OS and 64-bit if you are running a 64-bit OS)
Lagarith Codec – Select the Installer
Extract the virtual dub files somewhere and then install the lagarith codec. Then open up Virtual dub.
Step 2.
To open a video file go to file -> open video file…

Then find the images you want to compile. If you have recorded something in TF2 then go to /Steam/steamapps/accoutname/team fortress 2/tf/ click on the first image.

Step 3.
Now you need to select the framerate for your video. Go to Video -> Frame Rate…

Tick the box saying “Change frame rate to (fps):”
Type in the frame rate you recorded with. I recorded with 90 Fps so I will use that value.

Step 4.
Next go to Video -> Compression…

Then select the “Lagarith lossless codec” by clicking it and then press “OK”

Step 5.
Now you are ready to save your video. Go to File -> Save as AVI…

Save the movie somewhere, I have decided to save it on my desktop.

The last thing you need to do is copy the audio file. If you recorded in Team Fortress 2, then you can find the file in your tf folder under the name a1.wav, b2.wav, c3.wav etc…

Method 2.
Advantages
-A bit faster than method 1
Disadvantages
-Larger file size
-Harder to edit due to file size
Step 1.
For method 2 you will need:
Virtual Dub – Select the newest 32-bit Download
Download and extract the files somewhere and launch the program.
Step 2.
Open your images by selecting File -> Open video file…

If you recorded the images in Team Fortress 2 then browse to:
/Steam/steamapps/accoutname/team fortress 2/tf/ and open the first image.

Step 3.
Next open the audio file for your images.

The name for the audio will be the same as for the images, if the images are called a1xxxx.tga then the audio will be a1.wav.

Step 4.
The next step is to select the correct framerate. Go to Video -> Frame Rate…

Tick the box saying “Change frame rate to (fps):”
Type in the frame rate you recorded with. I recorded with 90 Fps so I will use that value.

Step 5.
Last step is to save the file.
Save the movie somewhere, I have decided to save it on my desktop.

Tags: compile images to video, css movies, lagarith, tf2 movies, virtual dub
This entry was posted on Friday, June 26th, 2009 at 11:09 pm and is filed under Tutorials, Video Capture. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Perfect!
Many thanks!
Do somebody know how to render (if it’s possible) .tga files with an alpha channel to .avi with Virtual Dub?
The codec didn’t shorten my file size at all and the audio file recorded was really quiet
I got better results from recording to .avi straight away instead of .tga
Isn’t it better to record it with fraps instead of doing it with virtualdub?
No.
Fraps gives you low quality image, low quality sounds, bad FPS and that annoying fraps bar at the top
they should’ve called it “craps” instedm of fraps..
is it supposed to take as long to compress as it did to record?