Virtualdub stabilizer

You really only want to perdevelop some video processing features as soon as -- for example, inverting upside-down video; photo stabilization; resizing. The freeware Windows video handling application VirtualDub, (at is lean and also quick. By prehandling in VirtualDub and also saving the resulting file, you stop having your main video editing suite perform the exact same processing again and also again as it provides video.

Tright here is another post on this site about VirtualDub. Please check out it in connection through this article.

You watching: Virtualdub stabilizer

VirtualDub percreates many features using filters. One VirtualDub filter, Deshaker, is the finest picture stabilization software program I have encountered. VirtualDub is provided via a variety of filters by default, but Deshaker is an add-on. You acquire it from the Deshaker Web page (at, and also install it in the VirtualDub folder on your computer system. Like VirtualDub, Deshaker is freeware, yet the Web website researches a docountry.I phelp.

VirtualDub and also Deshaker are accessible in 32-bit and 64-little bit versions. The 64-bit version runs substantially much faster, and also so I recommfinish it, if your computer supports it. Some filters are obtainable only in 32-bits, so you may want to keep a 32-little version of VirtualDub too.

Filters are the peak item in VirtualDub's Video menu. When you click that item, the filter dialog box will open up. Click on "Add" to see the list of obtainable filters. Then click on a filter in the list to add it. Filter indevelopment will appear in the filter dialog box. You may even more than one filter at a time, though certain combinations are not compatible. Think of the filter list as a type of pipeline, working in order from peak to bottom of the list. So, for instance, you may invert the video photo, and adjust color in one pass via VirtualDub.

Adding a filter in VirtualDub


Deshaker and also Bicycle Video

There is an additional post on this website about image stabilization in basic. While wonderful documentation is available on the Deshaker website, below are some specifics relating to bicycle video.

Bicycle video is going to be shaky, whether you shoot it through a helmet camera or via a camera mounted on the bicycle. Tright here will be small, rapid shakes and also additionally wide sweeps from a turn of the head, or of the bicycle.

Shoot at the highest resolution your cam, editing and enhancing suite and also tolerance for processing time can assistance, to protect against much loss of sharpness. I commonly shoot at 1080 x 1920. There is not much noticeable loss of top quality through the slight enlargement of the image which I usage in Deshaker, displaying at the very same resolution. Display at a reduced resolution will certainly prevent any kind of loss of sharpness -- at that resolution. Shoot gradual video. Most action camperiods execute. Interlaced video doesn't procedure too and must preferably be deinterlaced prior to running Deshaker -- watch our article about deinterlacing. .

Deshaker runs two passes with the video file, analyzing it on the initially pass and adjusting it on the second. In this method, Deshaker deserve to look ahead in time, staying clear of it from confutilizing panning with shaking.Single-pass photo stabilization have the right to run to the finish of its array, causing jerky motion in the time of wide pans.

Deshaker allows you restrict the component of the image which it senses, and that can be beneficial. More about that later.

The screen shot below is of the Deshaker interconfront, with my preferred settings for 1920 x 1080 HD video from a forward-encountering helmet cam via a fisheye lens. A few settings (pixel facet proportion, scan type, rolling shutter setting) are particular to the video camera. You may refer to the display swarm while analysis the instructions below.


Deshaker's default motion-smoothness worths of 1000 produce floating-on-a cloud-smooth pans. For bicycle video, I recommend lower worths for horizontal and vertical pan, approximately 100. These settings will certainly remove the quick shake that is usual on a bicycle, while decentering the picture less and leading to minimal geometric distortion in imperiods swarm through a fisheye lens.I set motion smoothness for zooming to zero, to stop "ballooning" of the picture.

On the first pass, I choose "Run Video Analysis Pass" in VirtualDub's Data menu, and "Uncompressed RGB/YCbCr" in the Video food selection. On this pass, Deshaker will certainly save a log file, and VirtualDub will not save a video file. Still, handling will run much much faster without a compressor -- even more than twice as rapid as through the XVid MPEG-4 compressor. Evidently, VirtualDub sends out the video to the compressor for processing also if it isn't saving a file.

For each video that you stabilize, save a log file under a various name, so you deserve to re-use it with different stabilization setting. The video file need to be the exact same geometrically and also frame-by-frame to job-related with the same log file.

Processing on the second pass can be sluggish. In 1920 x 1080 HD resolution, on my computer system with an Intel i7-3770 processor and making use of the XVid MPEG-4 codec, it's about 7.5 frames per second, so it takes about 4 times as long as the clip ran. Still, I prefer to have actually the entire stabilized video file to job-related via, and so I let my computer run Deshaker as soon as I'm working on something else.

Uncompressed video files are so astronomical (5 GB per minute!) that you will quickly run out of disk space. These files won't play at normal rate either, even from a fast difficult drive. So, on the second pass, pick "Save as AVI", and a compressor in the file menu. The totally free XVid MPEG-4 compressor is my favorite. If the original file is in any kind of format other than AVI, you can conserve the stabilized version making use of the exact same filename and the various fileform. Keeping the original file, log file and also processed file in the exact same folder (or the processed file in a parallel folder on a different difficult drive, for much less drive wear) renders them simple to discover.

(There is a workabout to get VirtualDub to conserve a record as an MP4. This results in a smaller file which additionally procedures faster in some video editors. There is a connect to an post on exactly how to do that at the bottom of this page. Or you might reprocedure the .AVI file)

At the output of Deshaker, an enlarged or rotated picture will be cropped unmuch less you pick an image dimension in the second pass big enough to hold every one of it. VirtualDub have the right to run multiple filters, yet making added transforms to the video picture only after the second pass will certainly conserve handling time: any kind of geometric adjust prior to Deshaker need to be done on both passes, so the input on the second pass will match the log file.

VirtualDub's rotate filter works OK to revolve the image upside down or on its side, yet introduces jaggies once rotating by one more amount, so it's better to use another application for that. It commonly provides even more sense, all in all, to run other procedures after Deshaker. The exception would certainly be if you are correcting for geometric distortions such as fisheye distortion which affect the operation of Deshaker itself.

As the image shifts place to remove shake, black border locations will certainly show up unmuch less you usage one of the several tricks that Deshaker provides.

One is adaptive zoom, which enlarges the photo to press the border areas off the display. If adaptive zoom is turned on in Deshaker, the picture will certainly "balloon" in dimension whenever tbelow is a huge shake. If the electronic camera is encountering forward or rearward, this deserve to make it look as if you are suddenly speeding up or slowing down on your bicycle -- even riding backwards.

Another choice is to use earlier and later on frames to fill in the border areas. This doesn't work-related perfectly via a relocating cam. Imeras of objects closer to the video camera readjust size quicker, and also so activity forward or backward results in bad matches wbelow the various other imeras fill in. Still, the fill works well sufficient that it's worth doing also if the outcomes aren't perfect. The transitions between the current and also other imeras are less distracting if you collection Deshaker to produce soft boarders. If the camera is looking sideways, you deserve to get a good complement if the margins of the image are all at the exact same distance (for instance, a wall).

Filling in boundaries using bordering frames will certainly occupational poorly if you run the geometric correction before Deshaker. With a rotated image, for instance, the fill will be only at the corners, where the photo reaches the edges of the structure.

On the second pass, setting movement smoothness for zooming to zero eliminates the "ballooning" effect. Setting 100 for horizontal, vertical and rotational motion smoothness (or 200 at 50 or 60 frames per second) will remove annoying rapid shake and also create an outcome more prefer your regarded head activity as you are riding -- while minimizing decentering of the picture.

See more: Change Excel Icon S ? How To Change Excel And Word Desktop Icons

You might likewise disable stabilization versus rotation in the second pass if tbelow is bit rotational shake, reducing the dimension of border locations. But rotational shake can be annoying.

If the video camera doesn't adjust place or zoom, you can use the stabilization options even more freely. Stabilized imeras can then look as smooth as if the camera is on a tripod. Visible errors through fill frames are then much less most likely.

If you have chose from the start to usage just a resolved, zoomed-in location of your picture, you can have Deshaker chop it for you. An extra zoom element of about 1.1 will certainly keep border locations and also fill out of the picture nearly all the time through the motion-smoothness settings I recommend. As Deshaker itself resizes the image, tbelow will certainly be only one re-encoding. In instance babsence borders remajor, you may rerelocate them later on by zooming the picture in your editing suite. It's time-consuming, yet you can make much better artistic decisions than Deshaker have the right to, recentering the image if necessary.

I recommend that you have actually Deshaker look backward and forward the full 30 frames to fill in the border areas. When these locations fill in seamlessly, you have a bigger photo location to occupational through.

It is possible to play some interesting tricks via Deshaker's Motion Smoothness setting in Pass 2. Setting Motion Smoothness for panning, zoom or rotation to -1 in pass 2 outcomes in "infinite" smoothness: the place or rotation stays the same as in the first framework. (Tbelow can be a very slow-moving drift, which you might have to correct in post-handling.) One usage for this is to stabilize the photo if the camera is on a tripod but the tripod is disturbed. I had a (non-bicycling) video wright here the cam was unpurposely zoomed in, then back out. All of the motion, fortunately, remained in the zoomed-in location. Saving this segment of video as a file and also establishing Zoom to -1 retained the range of the photo constant. Fill utilizing surrounding frames avoided black borders for the the majority of part. Cropping the processed photo and overlaying it on a still from the unzoomed section developed a result with only the slightest visible artifacting! You deserve to extract a file, or set In and also Out points in VirtualDub, to conserve time by stabilizing just the short segment of a video with the disturbance.

Anvarious other trick is to develop 3D video from 2d video shot from a cam in movement. For this, you want zero vertical panning and also extremely smooth horizontal panning. Video swarm out the side home window of an aircraft, for example, deserve to create hyperstereo of the landscape below, so it looks choose a table-height version.

Rolling Shutter

Many cameras have a "rolling shutter", which scans the image from optimal to bottom, rather than capturing it as a whole. The image will then appear extended vertically if the electronic camera is panning upwards conveniently, squimelted if the camera is panning downward and skewed if it is panning sidemethods.. If Deshaker knows the amount of rolling shutter for your video camera, it deserve to compensate for this. It cannot, however, compensate for very fast shake which occurs in the time of the scan of each video framework. If this shake is vertical, objects at various heights in the image may become compressed and broadened -- the dreaded "Jell-o" effect. Very fast horizontal shake have the right to make vertical lines show up wavy.

The Deshaker Net website lists rolling-shutter worths for a variety of camages. I have actually added measurements for my cameras:

GoPro HD HeroContour HD1080Samsung S4 Mini smartphoneMobius M800.Sony AS100VGit II Pro GoPro Hero 5 Session

The Deshaker site explains a unique test procedure to measure the rolling shutter amount of a video camera, however you have the right to calculate it without having to execute a distinct test, utilizing a video clip with a rapid pan throughout a structure or other object that has horizontal and also vertical lines at appropriate angles. This is prevalent enough in helmet-electronic camera videos, as soon as the cyclist transforms the head. If the camera has actually a rolling shutter, the object will certainly show up skewed. Speak the picture on the display screen, so you deserve to advancement it a framework at a time, simply as through the test explained on the Deshaker Net site. Lay a straightedge -- the edge of a sheet of paper will execute -- alengthy a vertical edge which appears skewed in the picture. Extend the line upward and also downward to meacertain the horizontal positions at the top and bottom of the display.

Checking for rolling shutter without having actually to execute a distinct test shoot.The electronic camera was panning and also so the structures are skewed.


The still-structure worths in the rolling shutter formula serve just to make a correction if the vertical line in the test swarm was not exactly vertical -- so, draw a right angle across a horizontal line in the image you are measuring from, and also carry it to the top and also bottom of the display screen to simulate the areas of the top and also bottom of a still frame. A sheet of paper conveniently has actually square corners and also have the right to be offered to derive the vertical line from the horizontal. The horizontal and also vertical lines need to cross close to the center of the display screen, to stop geometric errors resulted in by the lens itself, and also especially if it is a fisheye lens.

Rolling-shutter correction is direct from peak to bottom of the structure, and also so a slight jitter may remajor close to the height and bottom if tright here was quick shake. I like to mount my forward-dealing with video camera on my helmet quite than on the handlebar bereason activities are smovarious other than those of the bicycle.

Deshaker can produce astonishingly great results via a conventional lens -- one which images right lines as straight lines. Telephoto and also "normal" lenses are of this kind, as are some wide-angle lenses. These lenses project a specific geometric depiction of the subject onto the level sensor in the cam. This type of lens cannot look behind itself, or incredibly much out to the sides.

A fisheye picture is easy to recognize: directly lines curve choose parentheses close to edges of the photo. A fisheye lens can cover a more comprehensive angle, as much as 180 degrees and periodically also even more. Due to the fact that a fisheye lens looks in extremely various directions at the exact same time and also compresses the photo at the edges, shake will certainly be different tbelow.

Tright here is a lot of image area out at the edges, and also Deshaker takes an average as soon as calculating how to reposition the picture to stabilize it. Including the edges in the sensed location once using a fisheye lens will certainly leave the facility of the picture shaky -- though the center is normally the major area of interest. With a fisheye lens, I recommend tracking a space only about half as high and also wide as the photo once running Deshaker's pass 1, the evaluation pass. (For instance, if you are shooting in 1080 x 1920 HD, you can exclude everything exterior 270 pixels from the peak and bottom, and 480 pixels from the ideal and also left. If the horizon is high in your photo as it frequently is in a bicycle video, area the sensed rectangle closer to the peak.) Some visible shake will certainly still occur in your last outcome, however it will certainly greatly be near the edges of the image. You might desire to use a smaller sensing area if you are going to chop the picture substantially.Processing in pass 1 will certainly be quicker through a smaller analyzed area.

In a fisheye photo via quick panning, image stabilization will cause visible alters in photo geomeattempt as compressed and curved components come closer to the center. The photo can end up being "wavy" once panning direction reverses. This problem is nearly removed through the low motion-smoothness settings I recommfinish. Anvarious other means to minimize distortion is to crop the image after stabilizing it, however the finest method of all is the old-fashioned way, to protect against shake as much as possible in the initially place!

You might likewise desire to minimize the analyzed area in pass 1 if a video camera has a non-fisheye wide-angle lens (that is, if directly lines remajor right at the edges of the image). With these lenses, objects show up bigger close to the edges of the image, and photo geomeattempt alters noticeably as the cam pans, or if it shakes wildly. With a normal or telephoto lens, though, it's better to feeling the entire picture, providing Deshaker more to work-related through.

Deshaker provides the choice to have the analyzed location follow movement in the photo. This deserve to be helpful if objects are relocating with the image and also making it tough for Deshaker to track the stationary background. However before, if the cam pans, this setting have the right to move the analyzed area totally out of the photo. If you are going to usage this establishing, monitor the display in Deshaker's Pass 1 to make sure that you haven't defeated stabilization in this way.

See more: Tip: How To Change Cursor Size : Wow Cursor Size, World Of Warcraft

Deshaker numbers the frames in the log file and also so you have the option to run even more than one log file on the very same video, in case you should use various settings in tricky areas, or make hand-operated adjustments. This deserve to be time-consuming, however if you are a perfectionist, tright here you go.

Some activity camages have their own internal picture stabilization. This have the right to job-related rather well, yet using it along with post-handling in Deshaker produces the ideal outcomes of all. I describe just how to do this, with examples, in my testimonial of the Sony HDR-AS100V action camera.

A 360-degree camera such as the Garmin VIRB 360 requirements to usage its own photo stabilization and/or the photo requirements to be cropped before running Deshaker. Deshaker cannot stabilize the whole 360-level image, as the camera is looking in eincredibly direction at when.

In my suffer, Deshaker running in VirtualDub occasionally inserts a number of empty frames at the begin of the video, and shifts the audio track by a few frames. To address this concern, I import the complete, unedited file which VirtuaDub has actually developed right into my modifying suite, Pinnacle Studio Ultimate, detach the audio, placing it in a separate track, and then shift the start of that track to wright here it needs to be. Any good modifying suite should have the ability to execute this. Often, placing the start of the audio at the initially non-empty frame of video will certainly realign them. I usage the two tracks together from that suggest onward. It is additionally feasible to resynchronize the audio and also video using a cue such as a hand also clap, however unmuch less you have intentionally developed a cue, you may need to go hunting for one. We have an write-up extending that topic.

The picture listed below reflects the start of a one-minute-lengthy clip as displayed in the timeline of Pinnacle Studio Ultimate 20. The display screen will be equivalent in any type of multi-track video editing suite.


The upper track is from the original MP4 file. The pink section at the left is a placeholder still image created by the software. The longer blue section to the best starts via the first framework of the clip. This track consists of both video and audio.The middle track is from the AVI file generated by Deshaker. The blue section at the left reflects the initially frame, a babsence framework that Deshaker generated. I separation the clips so the much longer blue section to the right starts through the initially structure from the original clip -- no frames are shed. As I have actually detached the audio, tbelow is no blue waveform line in this track.. The bottom, yellow track is the detached audio from the track developed by Deshaker. Using the audio wavedevelops as a reference, I slid this track earlier by numerous frames so that audio matched that from the original track -- well, practically. I had to slide it farther than the video. Audio for roughly the initially 30 frames is lost. And, despite my having actually realigned the clips, if you look carefully at the audio under the cursor (vertical lines near the ideal side of the image), you'll see that the timing of a small audio top is off by about 1/2 frame compared via the original. This is not enough to matter if you are making use of this track alone, yet it have the right to influence stereo imaging and create comb-filtering effects (hollow-sounding audio) if mixed with other audio caught at the same time, or with the original track. Retain the original track and also usage its audio in case those problems aincrease.


The picture over shows the finish of the clips. The processed clip is lacking the last numerous frames. The audio exoften tends farther than mirrors through the original clip, but in truth, this audio was recorded!

The ethical of the story is, if you are recording a clip on which you will usage Deshaker, record a 2nd or 2 added at the start and also end. And if you didn't perform that, append additional frames before handling, so namong your original clip is shed.

The clip below was swarm making use of a Samsung Galaxy S4 Mini Android smartphone. Oddly, VirtualDub running Deshaker identified the structure rate as 31.48 frames per second. I obtained jerky activity once I put the processed clip right into Pinnacle Studio. AVS4YOU Video Converter properly figured out the clip as running at 30 frames per second (well, actually, 29.999, however close enough) and also by initially copying the clip utilizing that software, I gained a good result. I still had actually to transition the video and audio, though.


The Garmin VIRB 360 camera

The Sony AS100V helmet camera

the Mobius M800 action camera/dashcam

The Contour HD1080 helmet camera

The GoPro Helmet Hero HD helmet camera

The GoPro Session activity camera

Synchronizing multi-camera shoots

Image stabilization for bicycle video

VirtualDub video processor

Image stabilization plugin for VirtualDub

Deinterlacing in VirtualDub

Saving to MP4 in VirtualDub

Using VirtualDub to improve video from VHS tape

Pinnacle and also Avid editing and enhancing software

Five Ways to Create a Picture in Picture in Pinnacle Studio Ultimate

Pinnacle overwrites voiceovers...

Techmoan Net site -- reviews of activity cams

Articles by Sheldon Brown and Others

Harris Cyclery Home Page

If you would certainly like to make a connect or booknote to this web page, the URL is:https://www.sheldonbrvery Updated: John Allen June 9, 1012 22:00 EDT