Mar
2007
1

Cure for your shaky videos

by Matt

In my quest to make perfect homemade videos, I ran across a very cool tool to remove your shaky hands when walking. The great part is that it’s completely free, works well, and fairly easy to use. It’s called Deshaker, and it’s a filter used in Virtual Dub (Free Video Editor)

Going back to the beginning of my quest for the perfect homemade video, (TPHV) from now on, I have a sony DCR-SR40. It’s nice but of course when I was buying it, I had these great ideas about making videos for youtube, DVD’s, and movies, but this camera will just not do the kind of quality that I was hoping for. It has a 30 gig hard drive which is nice, and a large viewing/touchscreen to configure the camera…of course most of the time I’m using “Easy mode”. One of the first posts on this blog was a video post of my talking about how I was going to make more video posts. Well, this is my second post about videos. I’m trying to do more, but I’ve been having trouble with my lighting, and I just don’t look good on camera, even though I’ve dressed up and tried make-up…:)

The biggest problem I have is lighting. It seems that inside my house there just is not enough lighting and all the videos look bad. I have tried bringing in lights, but then you get shadows, anyhow, I’m working on it, and hopefully I will figure it out and start making some video casts soon.

Back to this cool Deshaker tool. Deshaker is a filter that you run in Virtual Dub that removes the shakes out of your video. The process is simple, load you AVI video, run the first pass to build a log file on the frame locations, and then run the second pass to smooth out the video. The first pass take a while to complete, but the second pass is much quicker, and you can run the second pass over and over until you get the desired effects without have to run pass one again.

here is a sample, 2 videos before and after of me walking around my car.

With the Shakes

Shake Free after Deshaker

First let’s get Deshaker…
Download both of these
Homepage for Deshaker: http://www.guthspot.se/video/deshaker.htm
Download Virtual Dub: http://www.VirtualDub.org/download

Unzip all the files for VDub into a folder. There is no install for Vdub, when you want to use it just click on VirtualDub.exe in your VDub folder. Inside the Vdub folder you will see a plugins folder. unzip the Deshaker file into the plugin folder.

Now you are ready to dehake.
Open Vdub, and load a video. (must be AVI). Then in the top menu go to video->filters click add, and load the deshaker filter. Once the filter is loaded, select it and click on configure. This will open a screen like this (click to enlarge)
vdub.png

The setting in this image are the setting that I used for the sample videos. Go ahead and use the same setting when deshaking your videos. You can go the dehaker homepage for more information about all the setting. I also hit more info below.

When configuring the filter, you start with the input video.
You will most likely use this as an Source pixel aspect: Standard NTSC (0.912)
For Video Type: Interlaced, Lower field first
You can put the log file anywhere on your computer, I just leave it on C:/

Now for the 1st Pass
click on pass 1, if not selected so you can edit Pass 1 fields.
Most of this will stay default.
Change Scale to Full, and change Use Pixels to All

Now for 2nd Pass.
Click the big pass 2 button.
Make the Destination Pixel Aspect the same as your input (Standard NTSC (0.912))
Make Destination Video Size = to input, or in Most cases 720×480
Change Edge Compensation = None (Large Borders)
Check the box for Use previous and future frames to fill in borders, and leave the previous and future frames at 30
Motion Smoothness…This is what removes the shakes. Setting all to 0 will make the output look exactly like the input video. You should change these in increments of 3000. I leave zoom at 0 and set all the other to 3000…The highest you want to go is 18,000 for smoothness.
Set all Max Correction limits to 99

Again, look at the image for all these configuration numbers.

Important** Click on Pass 1 button, then click on OK…you need to run your first pass.

close the filter window, and make sure the video is at the beginning, and play for output…Make sure you press the play button with the ‘0′ on it, third button from left

it will take a while for the first pass to complete. Once it is done, open the filter window and go to the configuration of the deshaker filter again. click on the Pass 2 button. You should already have this configured so you are ready to run your second pass. Click OK, and close the filter window.

Make sure you are at the beginning of the video again. Choose your codec, by clicking on video->compression. I choose Cinepak Codec because it makes the video byte size small.

Then Click on file->Save as AVI

The second pass is much faster and, you can run it over and over without changing your first pass to fine tune your video. I was suprised to see Sony Vegas didn’t have this filter, but this works great, it’s free.

Source Articles: http://premiere.digitalmedianet.com/articles/viewarticle.jsp?id=28849

Tags:

Popularity: 7% [?]

Other posts you might be interested in
  • Video Players and Video Plugins for Blogs  There must be scores of video players available across the net to help you display real estate video tours in
  • The Future of Home Searching in 5-8 Years  Watch this video about the new ways to interact with your computers. No more mouse, only hand movements and voice.
  • Featured Listing Plugin - video tutorial  Here is a quick video showing how easy it is to add featured listings to your wordrpess blog: View the video It
  • pingback bouncer…stop the refer spam with this plugin  I was reading a post on condodomain, about a crackberry???? and email addiction. Good post, but you will never get
  • Tutorials for video editing with Windows Movie Maker - Step 1 Import  2007 will see a huge increase in the number of real estate videos avalable on the internet. Video is great


  • Close
    E-mail It
    Rodney's Adsense-Deluxe Add ons plugged in.