MakeTechEasier
  • Home
  •  
  • About
  •  
  • Archives
  •  
  • Jobs
  •  
  • Advertise
  •  
  • Contact Us
  • Windows
  • Linux
  • Mac
  • Internet
  • WordPress
  • iPhone
  • Android
  • All Categories
    • Android RSS
    • Firefox RSS
    • Gaming RSS
    • Google RSS
    • google chrome RSS
    • Internet RSS
    • iPhone/iPod Touch RSS
    • Linux RSS
    • Mac RSS
    • Mobile RSS
    • OpenOffice RSS
    • PC Hardware RSS
    • Review RSS
    • Roundup RSS
    • Windows RSS
    • Windows Mobile RSS
    • WordPress RSS
    • WordPress Plugins RSS
  • rss icon
  • email icon
  • facebook icon
  • twitter icon

How To Compress A Video File with Virtualdub

Posted by: Sharninder on May 31st, 2009
  • 8 Comments
  • Share

VirtualdubAnyone who has played around with any kind of video knows how huge uncompressed video files can be. The huge size of video files is what has led to the proliferation of video compression algorithms like DivX, Xvid, MP4 etc, but how exactly do you compress an uncompressed video to one of these formats, to save space and maintain your sanity ?

In this post, we’ll teach you exactly that. We’ll be using an open source application called Virtualdub to compress a video file while still retaining the quality of the original.

VirtualDub is a video capture/processing utility for Windows. It is free and open source and is released under the GNU GPL license.

To get started with using Virtualdub, download and install it from virtualdub.org. By default, Virtualdub does not come with any video compression codecs built in, because of licensing restrictions. You can however get started by downloading the Xvid codec from www.xvid.org. This is the format that we will compress our video to.

Once you have the codec installed, launch Virtualdub and click ctrl+O to load the uncompressed video. Virtualdub should load the video and you should see a screen similar to the one below.

Virtualdub

This is called the timeline view.

A video format like the .avi that I have loaded here has two parts, the video part and the audio part and we can treat both parts seperately for compression. To give an idea about the level of compression we achieve, the uncompressed file is about 716MB in size. We’ll look at the size of the compressed file once we’re done with the process.

Virtualdub

Click on Video and chose the Compression option (Or click ctrl+P). From the list of Codecs displayed on the left side of the window, choose the “Xvid MPEG-4 Codec” and click on

Configure

.Virtualdub

The only option that you need to worry about in the Configure window is the Target bitrate.  When you open this window for the first time, you will see a default value in it which is the bitrate of the original file. Mine was 700 kbps. I changed it to 300 kbps. 300 is a decent enough bitrate if you’re producing video for the web and are concerned about the size of the file, which is what this tutorial is about, right ?

Click on Ok and come back to the time-line view.

Now, we need to select a compression codec for the Audio part of the file. From the Audio menu, select the option titles “Full processing mode“. Now, select Audio again and click on Compression.

Virtualdub

From the list of Audi codecs, choose MPEG Layer-3 and click on Ok to get back to the time-line view.

Now, to create the compressed file, choose the File->Save as AVI option and give a new name for the compressed file. Virtualdub should now start saving the compressed file to your chosen location.

Virtualdub

After the compression process is done, you can check out the size of the new file.

VirtualdubIsn’t that amazing ?

The compressed file will, obviously, be of slightly lower quality but I’m sure you can live with that, considering the huge savings in space.


Sharninder is a programmer, blogger and a geek making a living writing software to change the world. He also loves to travel. Read all about his exploits at his weblog - Geeky Ninja.

Tags: audio compression, compress video, video compression, virtualdub
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Share and Enjoy!

  • Rss feed
  • StumbleUpon It!
  • Del.icio.us
  • reddit

Related Posts

  • How to Edit Videos With Avidemux
  • How To Add Subtitles And Convert Video For iPhone In Windows
  • Mobile Media Converter: A Cross-platform No-Brainer Media Converter
  • Easily Transcode Media files with VLC Player
  • How to Convert FLV Video to AVI Format

Popular Posts

  • Turn Your Ubuntu Hardy to Mac OSX Leopard 498 comment(s)
  • Turn Your Ubuntu Intrepid Into Mac OSX Leopard 311 comment(s)
  • 28 Coolest Firefox About:Config Tricks 122 comment(s)
  • How To Boot And Install Windows 7 From USB Flash Drive 122 comment(s)
  • Best 101 Free Computer Software For Your Daily Use 101 comment(s)

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

8 Responses

  • Andyvan says:
    May 31, 2009 at 10:27 pm

    I run Linux (Ubuntu 9.04), will this work properly with Wine?

    Reply
    • Sharninder says:
      June 1, 2009 at 5:44 am

      I’m not sure if Virtualdub will work with wine. If you’re using Linux, though, you can do the same thing using either mencoder or ffmpeg. Both of these are command line tools though so you don’t get a fancy GUI with them.

      Reply
  • c2asr says:
    June 3, 2009 at 10:33 am

    @Andyvan
    you can install virtual dub from synaptic manager.

    Reply
  • c2asr says:
    June 3, 2009 at 12:05 pm

    Sorry I made a mistake is not in Synaptic but you can install Avidemux is very similar, has the same functions and you can install from synaptic.
    congratulations for your blog!

    Reply
    • Sharninder says:
      June 3, 2009 at 12:20 pm

      Yes, virtualdub is not available in the ubuntu repositories. Infact, I don’t think its available for Linux at all. I’ll give avidemux a try too. Sounds like another post on the topic is due :-)

      Reply
  • theinspectah says:
    November 10, 2009 at 1:20 am

    i make alot of tf2 demos and turn them into avi’s then compress them with xvid mpeg4 in vdub and the quality looks decent but i see videos on youtube and the quality looks so rich like they were playing the game rite there,what do i have to do to get that quality???

    Reply
    • Sharninder says:
      November 10, 2009 at 1:44 am

      video quality depends on a lot of things like the kind of camera, lighting (if you’re recording using an external camera), resolution of the capture and if you’re compressing the video then the codec used and the various settings for it.

      It’s really difficult to tell what you’re doing wrong here but I’d suggest that you start with capturing at a higher resolution and then playing with the compression settings in your convertor software.

      Reply
      • theinspectah says:
        November 10, 2009 at 8:46 pm

        When i record its with the in game recorder “no cams or anything”,then when i compress into a avi i use cam lossless video compression and run in 840×480 in a window “someone said it would scale better to youtube if i run it 840×480″i dunno i will try and capture at a higher res and play with the bitrate ..thank you very much for the help…

        Reply
Cancel reply

Leave a Comment




Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again

write for MTE

Latest Posts

  • OfficeMedium – A Social Collaboration Platform For The Small Business + Free Promotions
  • MakeTechEasier Is Now Hosted On KnownHost
  • KTorrent: KDE’s BitTorrent client
  • How to Create a Customized Toolbar for Your Browser
  • 13 Ways To Customize Ubuntu Netbook Remix For Better Usability

Our Writers

  • Damien Oh - Chief Editor
  • Sharninder - Geeky Ninja
  • Joshua Price
  • Tavis J. Hampton - Lantern Torch
  • Shevonne Polastre - FreeAgentWriter
  • Trevor Dobrygoski
  • Soumen Halder - Ampercent
  • Tanmay Ahmed - Tech-Tips-Geek
Make Tech Easier on Facebook
Jobs by SimplyHired
Job Widgets

Copyright

All the articles (including the text, images and tutorials) are properties of MakeTechEasier.

You cannot copy whole tutorials, either in English or translate to another language without our permission.

Write for us

Writing a tutorial or article for MakeTechEasier is a great way to get exposure and give back to the community.

Read More Details

Suggestions

We need your help to help us serve you better! This is YOUR site, so if you have suggestions/feedbacks on how we can improve it for you, please let us know! We do our best to make this place better!

Make a Suggestion

Navigation

  • Home
  • About Us
  • Advertise
  • Archives
  • Contact Us

Copyright © 2007-2010 Make Tech Easier | All Right Reserved.