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

14Dec/110

Intel Core i7-2600K and encoding with VirtualDub

A couple weeks ago I retired my old 3GHz overclocked Q6600 and upgraded to Intel's new flagship CPU i7 2600k. Now before I start writing up my very short opinion and review, those are the settings I still use in VirtualDub. Virtually nothing has changed. Even after more than 2 years, those settings are still the best in terms of  "filesize:video quality"-ratio.

Encoding speed is measured in (average) frames per second. The more, the merrier. It's also important to know that there are, what I like to call, "motion-heavy" and "motion-light" scenes.

This is, like the name suggests, a scene in-game (or anywhere for that matter, but I'm talking video gameplay specifically here) in where there's either very much motion / moving happening on the screen or the opposite. Why is that important you ask?

3Jul/117

VirtualDub: How to use mkv, mp4, flv, mov and other file formats with VirtualDub

A lot of people keep asking me how to use VirtualDub with other files formats besides .avi. Like mkv, flv, mp4 or even .mov.

VirtualDub, as stand-alone, cannot handle mkv, mp4, flv, mov or any other files besides avi. You need a plugin or plugins to load anything else besides avi. Mind you, VirtualDub still only can and will save in avi!

There are a couple plugins that can handle loading different files formats. For me personally only 2 come to mind:

There's my personal favorite: Ffmpeg Input Driver which can handle 31 different file formats according to the plugin developer. Among them are the popular mkv, mp4, flv, mov, rm, rvmb, wmv and ts. The plugin is based, as the name may suggest, of the ffmpeg libraries. And if something doesn't work, remember, this is a plugin still in early development stage as of 03.07.2011.

Then there's fccHandler, which can handle mpeg-2, flv, wmv, fli, flc, mkv. However fccHandler also offers the AC-3 ACM codec, which I use for sound in my videos.

Download whichever plugin you prefer, and unpack it into your VirtualDub plugin folder.

Remember however that those plugins only allow you to load said file formats. You cannot save those loaded files in mp4, mov, flv, only in avi.

9Feb/113

VirtualDub: Use ffdshow filters (resize, sharpen, wartermark) in VirtualDub

In the guides here and here I talk about using the VirtualDub internal filters, namely the resize and sharpen filters. But you can also use external filters. I use the ffdshow filters.

What is ffdshow, you ask? Here's the quote from the ffdshow sourceforge page

ffdshow tryouts is a DirectShow and Video for Windows codec with support for a wide range of audio and video formats, such as Xvid, DivX, and H.264. It includes a powerful filter set that can enhance the video quality - with filters for resizing, deinterlacing, and displaying subtitles - as well as audio quality through normalization, down-/upmixing, and resampling.

24Aug/100

VirtualDub: How to prevent asynchronous sound

According to some comments from here, here and in some of the Emails I get people sometime experience asynchronous sound. As I have speculated here, this is most likely due the CPU being overwhelmed with the whole encoding process. Let me try to explain, and bear in mind, this is just speculation based on nothing but my own suspicions.

When you set the threads in the x264 codec to fully utilize your CPU, meaning all cores, and then some, you make sure the CPU is working at its maximum capacity just for video processing.

If you then add audio to the pile, the CPU just hasn't got any resources to spare, and if it does, it does a miserable job, thus resulting in lag which translates in asynchronous sound.

If that is the case, lowering the numbers of threads in the x264 codec should fix it. This way you can have both audio and video encoding in one go. I haven't tried this method, because I employ a different solution.

24Aug/102

VirtualDub: How to split and merge video files

Folks have been asking me here, here and on my YouTube channel how to split a single movie file into multiple ones, and how to merge multiple ones into a single movie.

I made 2 How-to clips way back then, but somehow forgot to include them in my previous tutorials, so here they are:

How To: Split a single video file into multiple video files with VirtualDub
YouTube Preview Image

How To: Add multiple video files into one single one with VirtualDub
YouTube Preview Image

22Aug/105

Make your Firefox load faster!

Me dad was complaining that his Firefox takes ages to start up and didn't want to run yet another application in the background.

So I hit google and came up with UPX, Ultimate Packer for eXecutables. What it does, is very simple: It compresses the .exe and all the DLLs associated with said .exe! Thus reducing its total size and load time.

  1. Download UPX and unpack the upx.exe into your Firefox folder, usually it's C:\Program Files\Mozilla Firefox.
  2. Close Firefox, and make sure its not running by checking the task manager
  3. Start the command prompt, the cmd.exe in ADMIN MODE!
  4. go to C:\Program Files\Mozilla Firefox in cmd.exe
  5. enter this command and execute it
    for %v in (*.dll *.exe plugins\*.dll components\*.dll) do upx "C:\Program Files\Mozilla Firefox\%v" -9

Should you, for whatever reason, need to decompress and get the original files back, run this command
for %v in (*.dll *.exe plugins\*.dll components\*.dll) do upx "C:\Program Files\Mozilla Firefox\%v" -d

What does it do?
It compresses all the DLLs and all the *.exe in C:\Program Files\Mozilla Firefox, then it goes to C:\Program Files\Mozilla Firefox\plugins and compresses all the DLLs, lastly it goes to C:\Program Files\Mozilla Firefox\components and compresses the DLLs in there. The -9 is for the best possible compression. The -d is for decompression.

My dad's Firefox folder went from 31 MB down to 20 MB. A 35% save!

The best bit?
UPX is usable on any other application you have. As long as they have *.exe and DLLs, you can use UPX on it.