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

26Sep/102

How to set up your computer for gameplay recording

I've gotten a few eMails complaining that it takes a huge tool on some users computer performance while recording pc game-play. I cannot speak for any other recording software except Fraps because that's all I use.

Fraps records video and audio unencoded, uncompressed, raw. That means the files are huge. 30 minutes of recorded gameplay footage are about 50-70 gigabyte large, and there's absolutely no way around that. Which brings me to my first point of this how-to: get a large HDD/SSD. I'm talking about 1 single HDD/SDD, specifically just for Fraps. 250 Gigabyte ought to do it. Recording video and audio uncompressed also means a huge tool on your computer initially.

Now, the trick is to set up your system in a way that Fraps, while recording, takes as little a tool as possible on your running game.

I have 3 HDDs. 1st HDD is partitioned in C, F, G. 2nd HDD is partitioned in E, H and 3rd HDD is unpartitioned, D. C is my System partition, H is my games partition and D is my Fraps HDD.

You see, 1 HDD for my system, 1 HDD for my games, 1 HDD for Fraps. They are all physically separated, which is imperative. Why am I doing it this way? When a game runs the read/write heads goes back and forth reading the game and deploying the data to your CPU/RAM/GPU. When Fraps records it causes the read/write heads to move around and write data on the HDD.

Now imagine you have a game running and Fraps recording on the same HDD/partition. That means the read/write head has to do double the work namely reading the game and writing the recording (in simplified terms, realistically it's more than double the work) on the HDD which in turn translates into FPS drops and "lags" in the game. And remember, recording uncompressed with Fraps already takes a huge tool on your computer.

So ideally you'd want your game running on one HDD and Fraps recording on another, physically separated, (unpartitioned) HDD. Another important point is the swap/page file. Make absolutely sure your swap/page file is not on the same HDD as Fraps or your games are. I've my swap/page file stowed on C: .

It took me a bit experimenting back then but all this lead to a more stable, even increased, FPS while a massive drop in "lags". It may not work for each and every one of you, but it did for me.

On a side note: Perhaps some of you are using SSDs and can share your experiences? I don't have a SSD, yet, so I can't say how well it works on SSDs.

24Aug/101

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/104

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.

21Aug/100

VirtualDub: How to watermark your videos

There are many folks out there who like to watermark their videos in all possible kind of ways. Some like to use huge introductions and others, like me, are satisfied with small but noninvasive logos.

Before we start, you'll obviously need VirtualDub, and in this case for the watermark to work, the ffdshow codec. Yes, I'm afraid, yet another codec. You need this codec, because it provides filters we need, such as implanting the logo into a video. The ffdshow codec installs a plugin called "ffvdub.vdf" into your VirtualDub plugin directory. This plugin allows the access to ffdshows filters via VirtualDub.

VirtualDub has it's own internal logo filter, but the problem with this filter is it leaves a mess after encoding. The logo is barely readable, it's pixellated and all other sort of issues. Whereas the ffdshow filter leave a clear, readable logo instead.

20Aug/100

2 essential web-services for any web-designer & web-master!

There are 2 online tools I find myself using quite often and whose, in my opinion, should be in any utility belt of any web-designer and web-master.

WebPagetest, a site where it test the load time of your page and analyzes what loads, how long it loads, and even gives suggestion on how to improve it.

And of course the most important one: Browsershots. Ever wondered how your website looks in Opera 8? Or IE 6? Or any other dozen browsers out there? You don't have to install 10 browsers to find it out. This webservice takes care of it for you by taking screenshots in each browser and uploading said screenshots upon completion.