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

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.

5Sep/0917

How to fix the video lag in Firefox!

firefoxLately my video (HD) playbacks in YouTube seemed to be lagging a LOT! I wondered why. I thought it would be me and my years old OS or perhaps even somehow my pc.

But no it wasn't. The lag was caused by Firefox's session saving feature. A simple and fast change in it and "poof" went the lag.

  • Open Firefox and type in "about:config" (without the ") in the Address Bar and hit Enter.
  • Type in "session" in the "Filter" line at the top of the list.
  • Find “browser.sessionstore.interval” and double click it. The 10000 milliseconds (equals 10 seconds) is the interval in which Firefox keeps saving your session in case of a crash; same amount of time between video lags.
  • Change it to something different. 120000 equals 2 minutes, 300000 equals 5 minutes or something else you desire. I went with 600000 (10 minutes), because I don’t particularly care about session saving.