Skip to main content

Stabilize shaky video footage

If you shoot footage using a handheld camera, you will probably end up with shaky shots. Unless this look is intentional, you’ll want to stabilize your shots to eliminate unwanted motion.

About bicubic scaling

In this tutorial, you will scale the video sample. When you scale video footage or an image to a larger size, After Effects must sample data to add information where none existed before. You can choose which sampling method After Effects uses when scaling a layer. For details, see the video, Set scaling quality using bicubic sampling.
In previous versions, After Effects has used only bilinear sampling. Bicubic sampling, new in After Effects CC, uses a more complex algorithm that typically provides better results when color transitions are more gradual, as in nearly all real-world photographic images. Bilinear scaling may be a better option for sharp-edged graphics.
To choose a sampling method for a layer, select the layer, and choose Layer > Quality > Bicubic or Bilinear. Bicubic and bilinear sampling are available only for layers that are set to Best quality. (To change a layer’s quality setting to Best, choose Layer > Quality > Best.)

Setting up the project

As you start After Effects, restore the default application settings for After Effects:
  1. Start After Effects, and then immediately hold down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS) to restore default preferences settings. When prompted, click OK to delete your preferences.
  2. Click Close to close the Welcome screen.
  3. After Effects opens to display a new, untitled project.
  4. Choose File > Save As > Save As.
  5. Name the project Stabilize.aep, and then click Save.

Importing the footage

You need to import one footage item to start this project. Download the sample tutorial files that accompany this tutorial to follow along.
  1. Double-click an empty area of the Project panel to open the Import File dialog box.
  2. Select the flowers.mov file in the sample tutorial files, and then click Import or Open to import the footage into your project (see Figure 1).
Figure 1. Importing the sample flowers.mov file into the project

Creating the composition

You’ll start by creating the composition.
  1. Drag the flowers.mov clip in the Project panel onto the Create A New Composition button at the bottom of the panel.
    After Effects creates a new composition named Flowers with the same pixel size, aspect ratio, frame rate, and duration of the source clip.
  2. Click the RAM Preview button in the Preview panel to preview the footage. Press the spacebar to stop the preview when you’ve seen the whole clip. This clip was shot with a handheld camera in the late afternoon. A slight breeze rustles the vegetation, and the camera moves unsteadily.

Applying Warp Stabilizer VFX

Warp Stabilizer VFX starts analyzing footage as soon as you apply it. Stabilization is a background process, so you can work on other compositions while it finishes. How long it takes depends on your system. After Effects displays a blue banner while it analyzes the footage and an orange banner while it applies stabilization (see Figure 2).
Figure 2. Analyzing and stabilizing the footage

  1. Select the flowers.mov layer in the Timeline panel, and choose Animation > Warp Stabilizer VFX. The blue banner appears immediately.
  2. When Warp Stabilizer VFX has finished stabilizing, and the orange banner has disappeared, create another RAM preview to view the changes.
  3. Press the spacebar to stop the preview.
The clip is still shaky, but it’s smoother than it was initially. Warp Stabilizer VFX moved and repositioned the footage. To see how it applied changes, view the effects in the Effect Controls panel. For example, the clip’s borders were scaled up (to about 103%) to hide black gaps that occur when the image is repositioned in the stabilization process. You’ll adjust the settings that Warp Stabilizer VFX uses.

Adjusting the Warp Stabilizer VFX Settings

You’ll change the settings in the Effect Controls panel to make the shot smoother.
  1. In the Effect Controls panel, increase the Smoothness amount to 75%.
    Warp Stabilizer VFX immediately begins stabilizing again (see Figure 3). It doesn’t need to analyze the footage, because the initial analysis data is stored in memory.
Figure 3. Adjusting the stabilization settings and seeing the results

  1. When Warp Stabilizer VFX has finished, create another RAM preview to view the changes.
  2. Press the spacebar to stop playback when you’re done.
    It’s better, but still a little rough. The Auto-scale setting in the Effect Controls panel now displays 103.7%; the effect moved the frames more dramatically, requiring more scaling to eliminate black gaps around the edges.
    Rather than change the amount Warp Stabilizer VFX smooths the footage, now you’ll change its goal.
  3. In the Effect Controls panel, choose No Motion from the Result menu (see Figure 4).
Figure 4. Choosing No Motion from the Result menu in the Effect Controls panel

    With this setting, Warp Stabilizer VFX attempts to lock the camera in position. This requires even more scaling. When No Motion is selected, the Smoothness option is dimmed.
  1. When the orange banner disappears, create another RAM preview. Press the spacebar to stop the playback.
Now the camera stays in position, so that the movement you notice is the rustling of the flowers in the wind, not the shakiness of the camera. In order to achieve this effect, Warp Stabilizer VFX had to scale the clip to 112.4% of its original size.

Fine-tuning the results

The default analysis works well most of the time, but sometimes you may need to massage the end results even further. In this project, the clip skews subtly in a few places, most noticeably at about the five-second mark. Casual viewers may not notice the problem, but a keen producer will. You’ll change the method that Warp Stabilizer VFX uses to remove the skew.
  1. In the Effect Controls panel, choose Position, Scale, Rotation from the Method menu.
  2. Choose Stabilize Only from the Framing menu.
  3. Increase the Additional Scale to 114% (see Figure 5).
Note: Scaling a video layer up degrades the image. A good rule of thumb is to keep the Additional Scale value below 115% if possible.
Figure 5. Increasing the scale in the Effect Controls panel

  1. Create another RAM preview.
    Now the shot looks rock-steady. The only movement is that caused by the wind rustling the flowers.
  2. Press the spacebar to stop the playback when you’re done.
  3. Choose File > Save to save your work.
  4. Choose File > Close Project.
Open Stabilize.mov included in the sample tutorial files to see how the final, stabilized footage should look.
As you have discovered, stabilizing a shot is not without its drawbacks. To compensate for the movement or rotation data applied to the layer, the frames must be scaled, which could ultimately degrade the footage. If you really need to use the shot in your production, this may be the best compromise.

Warp Stabilizer VFX settings

This is just a summary of the Warp Stabilizer VFX settings to help you get started. To learn more about the settings, and to read more tips for using the effect successfully, see After Effects Help.
  • Result controls the intended result. Smooth Motion makes camera movement smoother, but doesn’t eliminate it; use the Smoothness setting to control how smooth the movement becomes. No Motion attempts to remove all of the camera motion.
  • Method specifies the most complex operation the Warp Stabilizer VFX performs on the footage to stabilize it: Position, which is based on position data only; Position, Scale, Rotation, which uses these three types of data; Perspective, which effectively corner-pins the entire frame; or Subspace Warp (the default), which attempts to warp various parts of the frame differently to stabilize the entire frame.
  • Borders settings adjust how borders (the moving edges) are treated for footage that is stabilized. Framing controls how the edges appear in a stabilizing result, and determines whether the effect crops, scales, or synthesizes edges using material from other frames.
  • Auto-scale displays the current auto-scale amount, and allows you to set limits on the amount of auto-scaling.
  • Advanced settings give you even greater control over the actions of the Warp Stabilizer VFX effect.

Comments

Popular posts from this blog

Video format explained and compared

 This article explains main video formats and later compares with photos the quality. Audio Video Interleave (.avi) Developed by Microsoft and released with Windows 3.1 way back when false teeth were still made out of wood, AVI files have been a work horse of digital video. Although its popularity has been waning, lots of legacy video in AVI can be found all over the web. More recently, AVI has been abandoned for Microsoft's WMV (Windows Media Video). One of the most maddening things about AVI today is that the format doesn't allow for specifying an aspect ratio, so a 16:9 AVI video may start displaying at 4:3 - this is less of a problem if your player allows you to manually select aspect ratios. If you're watching in the non-pro version of QuickTime though, you'll have to learn to live with people being unusually narrow. Advanced Systems Format (.asf) ASF is a proprietary Microsoft container that usually houses files compressed with Microsoft's

Best noise reduction software

Shooting in dark conditions or in high ISO results are video with noise.But you dont have to worry. Neat Video  is a video filter designed to reduce visible noise and grain in video footage produced by digital video cameras, camcorders, TV-tuners, digitizers of film or analog video. Neat Video provides the  most accurate video noise reduction  currently available. Neat Video efficiently reduces noise of the following types: - digital sensor noise  produced by digital video capturing devices - film grain  visible in digitized film or analog video - dust ,  scratches ,  compression artifacts  and more. Neat Video is a video noise reduction plug-in for: Premiere Pro , Premiere Elements After Effects Final Cut Pro X / 7 / 6 , Motion, Final Cut Express AVX  hosts:  Media Composer , News Cutter, Avid DS OFX  hosts:  Nuke ,  Scratch ,  Resolve ,  Mistika / Mamba ,  Fusion , Natron, Quantel Pablo Rio ,  DustBuster+ Vegas Pro , Sony Movie Studio VirtualDub  (and AviSynth

MPEG 2 vs H264 vs H265

As time moves away,  compression techniques are created.  As a beginning we all have seen an AVI movie about 2 hours and equal to 30-40 GB. After that nee techniques were invented with a main reason : Same quality, less storage.  MPEG group created  some compression  standarts like MPEG1,2 and 4 but MPEG 2 became really  important and is being used in many devices.  What about H264 and H265? Well,  the quality is the same but they use less memory in your disk,  H265 < H264 < MPEG 2. But, is H265 worth? Well the simpliest answer is you but rembere : the higher the compression the higher the export time is. So if you have a powerfull computer use it. But  H265 is new and it is not tested in some devices. The good news is that google supports H265. This format is the greatest solution for youtube videos. Photo from : https://www.linkedin.com/pulse/future-video-encoding-h265-vs-h264-security-system-depot