The Don's Craptastic World A meta-level binary dude embedded to a multimedia proxy world!

1Mar/0989

VirtualDub 720p HD settings for YouTube! [Good quality, small file size]

youtubeI often record gameplay clips from video games I'm playing with FRAPS. Usually in 1920x1080 resolution depending on the game and the FPS I get with FRAPS running. For transcoding the raw footage to something bearable to upload I usually use only VirtualDub.

Lately I've experimented with settings, and I think I found some good ones. Good video and sound quality with small file size were my goals. I think roughly 100 mb for a 5 min. clip and about 300mb for the full 10 min. in full 720p HD quality is awesome.

I'm still experimenting with sound compression but I think with 192 kb/s AC-3 ACM I have a good start.

Please bear in mind that the higher your resolution is the bigger your file size will be and vice versa. Those 100 mb respectively 300 mb are based on my 1920x1080 resolution!

This guide is intended for 16:10 and 16:9 resolutions. If you're playing on a 4:3 resolution, do not resize down to 1280*720p without maintaining aspect ratio, because the end-result will otherwise look over-stretched/-squeezed.

My settings for VirtualDub are in the picture below. If you want a very detailed explanation what each option does, check this out!

VirtualDub settingsBy the way, you have to have the H.264 codec installed to get it working. Download and install the latest VFW-version build here. PAY attention which version you're downloading, x86 (=32bit) or x86_64 (=64bit).

A warning about the Option "Multithreading" -> "Threads" don't set it higher than [# of your CPU Cores * 1.5] because then your whole system will start chugging. For example a Core 2 Duo would be 2 Cores * 1.5 = 3, a Q9550 would be 4 Cores * 1.5 = 6 and an AMD Phenom II X3 would be 3 Cores * 1.5 = 4.5 4.

This is by no means a guarantee that it will or will not work on your system. Each system, its components and its software are unique. You'll probably have to experiment a bit on your own. But those mentioned numbers are a good start.

It also might be necessary for you to adjust the audio volume to your liking. I have -10 dB, because the sound I record is terribad. My onboard sound sucks, period. Some people also experience asynchronous sound, here's how you can fix it.

On a side note: When you have uploaded your clip on YouTube and YouTube processed it the quality then will be lowered again. There's nothing you or I can do about that, it's up to YouTube.

The whole tutorial is also available on YouTube as a video:
http://www.youtube.com/watch?v=o9XOgnaJ_Hs

A few links to my own HD clips:
http://www.youtube.com/watch?v=nxijbXfIs4A&hd=1
http://www.youtube.com/watch?v=3yt35f2WFFY&hd=1
http://www.youtube.com/watch?v=Oe4jCQ8zzz0&hd=1
http://www.youtube.com/watch?v=eNLlobJbrm8&hd=1

 

Addendum 16.September 2009: Enabling GPU acceleration
Since version 1.9.4 it is possible to use the GPUs processing power (if your GPU supports it, which most modern GPUs do) as part of whole the transcoding process. This way you can speed up the transcoding process significantly (depending on your compression settings!).

On my computer this cut my transcoding time from an average 1h for a 10 min. clip down to some 40-ish minutes. Under "Options" -> "Preferences" enable "3D accel".

VirtualDub: 3D acceleration enabled

Addendum 23.10.2009: Crashes during encoding
There's currently a problem causing VirtualDub 1.9.4/5/6/7/8/9 to crash under Windows 7 while encoding sometimes. The culprit is 3D accel! Turn it off under "Preferences" -> "3D accel" and enjoy VirtualDub once again!

Addendum 16.05.2010: Option "3d accel" slowing down encoding
I've been getting mixed messages. Apparently using "3d accel" causes it to render slower than usual on some systems. I can confirm that. With 3d accel turned on, a 10min video takes about 1 hour 10-20 minutes, while turned off it takes about 1 hour max. You'll have to experiment on your system!

And if you are running on a multicore cpu, don't forget to enable threading via "Option" -> "Preferences" -> set "Threading" to 1!

Update 27.01.2011:
Updated Setting Screenshot

Be Sociable, Share!

Related posts:

  1. Fraps & VirtualDub: How to save disk space and enjoy good quality, small file size HD video clips
  2. VirtualDub: How to use mkv, mp4, flv, mov and other file formats with VirtualDub
  3. VirtualDub: How to split and merge video files
  4. VirtualDub: How to watermark your videos
  5. VirtualDub: How to prevent asynchronous sound

Posted by Don Salva

Comments (89) Trackbacks (2)
  1. Hello Don,

    I have a really weird problem with virtualdub (used to be ok few days ago) maybe i have done something I don’t remember…

    Anyways after encoding the movie my VIDEO is in .mp4 file as it should be thee is no sound… instead the AUDIO is in dummy .avi file which is created while encoding…

    It is weird because couple days ago it was normal… after encoding the mp4 file had sound with it…

    Any idea?

    • Oh and btw it only happend when encoding in .mp4 when I don’t choose mp4 format and encode it in .avi there is only one output file with video and sound.

      But when i try to encode it in .mp4 it finish with 2 files:

      .avi- the dummy file with audio only
      .mp4- video only without the sound

      :(

    • I guessing you’re using either a modded VirtualDub or a plugin for mp4. Because the official VDub cannot handle mp4 output.

      I can’t help you in this matter as I’ve never used a VDub other than the official one.

      However there’s a workaround I believe. You got a mp4 with video and no audio, and you got an avi with sound.

      Load up the avi, then “File” -> “Save Wav…” and extract the audio.

      Load up the mp4, go to “Audio” -> “Audio from Another File” and select the newly extracted wav-file.

      Then save as mp4 I guess. Should work then, I believe. If not then I can’t help you, because I don’t use a modded VirtualDub or a mp4 output plugin.

  2. Fixed it a little bit with the new version of Virtual Dub 1.10.0 and putting the same settings that were shown in the picture. I now do around 10min for a 6go file. But I am still running at 50-65% cpu usage. I am sure I could get more from my cpu, I have put the Multithreading – Threads at 8 in the video encoder settings. Any tips would be appreciated. Thanks!

  3. Hey, I have a 2600k and I am wondering what I should change in the settings above to be able to encode faster. I mean a 6go video with the settings at the top takes around 25minutes to encode. I do not think that it should be slow like that, I was wondering what I could do to be able to encode faster. Thanks!

  4. appreciate the help, i think right now i got the encoding dialed in, whether using virtual dub or cs5. The finished product quality is amazing, and what im posting on youtube now looks 10x cleaner. The only catch is, i still gotta figure out the initial project settings in premiere, since i have some preset limitations. Thanks a ton for your time. learned alot since yesterday.


Leave a comment Cancel reply

(required)