Kdenlive/Manual/Effects/Alpha manipulation: Difference between revisions

From KDE Wiki Sandbox
< Kdenlive‎ | Manual‎ | Effects
(mask o mate is rectangular alpha mask)
(ver 17.04 don't always need transition applied now)
Line 7: Line 7:


<!--T:3-->
<!--T:3-->
As far as I am aware, Alpha Manipulation effects are always used in combination with a [[Special:myLanguage/Kdenlive/Manual/Transitions/Composite|composite transition]]. This is because Alpha Manipulation has to do with manipulating the so called "alpha-channel" of images and videos. The alpha channel is data that describes how two images are to be combined (or composited) into one. So you need a composite transition on the timeline to tell '''Kdenlive''' that you are compositing the videos from two different tracks into one image.  
In previous versions of Kdenlive (<17.04 ??) Alpha Manipulation effects always needed to be used in combination with a [[Special:myLanguage/Kdenlive/Manual/Transitions/Composite|composite transition]] or an [[Special:myLanguage/Kdenlive/Manual/Transitions/Affine|Affine transition]] . This is because Alpha Manipulation has to do with manipulating the so called "alpha-channel" of images and videos. The alpha channel is data that describes how two images are to be combined (or composited) into one. So you needed a composite (or affine) transition on the timeline to tell '''Kdenlive''' that you are compositing the videos from two different tracks into one image.
 
However, in version 17.04 of kdenlive an option was introduced that automatically composited two tracks that have Alpha channel data in them.  


<!--T:4-->
<!--T:4-->

Revision as of 14:54, 14 August 2017

Other languages:

Effects - Alpha manipulation

General Information about Alpha Manipulation

In previous versions of Kdenlive (<17.04 ??) Alpha Manipulation effects always needed to be used in combination with a composite transition or an Affine transition . This is because Alpha Manipulation has to do with manipulating the so called "alpha-channel" of images and videos. The alpha channel is data that describes how two images are to be combined (or composited) into one. So you needed a composite (or affine) transition on the timeline to tell Kdenlive that you are compositing the videos from two different tracks into one image.

However, in version 17.04 of kdenlive an option was introduced that automatically composited two tracks that have Alpha channel data in them.

This image shows two video tracks with no transition.
The project monitor shows how the upper track takes precedence when no transition is in play.
This image shows two video tracks with a composite transition in place but with no alpha information to tell Kdenlive how to combine the images.
With a composite transition but no alpha info to describe how to composite the picture, the top track still takes precedence.
This image shows the situation with alpha info now added via the blue screen method.
The blue screen effect is also known as "Color to alpha" [1] and all the blue screen effect does is say that where the video is blue, the alpha value is 0 (i.e. transparent).
So now that we have alpha information, the second track's image shows through where the alpha channel says the image should be transparent.

Once you have some alpha channel data in play you can alter the settings in your composite transition to change how the images will combine. See the composite transition page for details.

You can also combine two video tracks together using the screen transition (if one of them is filmed on a black background).

Hint for previewing the alpha manipulation effects

The preview in Project monitor might go all strange when you select the composite transition in the timeline or the Video 1 in the timeline. (Reported at bug 2990 and fixed in ver >=0.9.5 of Kdenlive)

This is what the project monitor looks like when you have just selected the composite transition in the timeline. This is not what the rendered video will look like. To get a preview of what the rendered video will look like, you need to click Video 1 and then Video 2 in the timeline.

What the preview looks like once you select Video 2 in the timeline. This is what the rendered file will look like



Effects in the Alpha Manipulation Category

  1. Alpha gradient
  2. Alpha operations
  3. Alpha shapes
  4. Chroma Key (formerly Blue Screen)
  5. Color Selection
  6. Rectangular Alpha mask (Formerly Mask0Mate)
  7. Rotoscoping
  8. Key Spill Mop Up

Compositing Reference Material

For some background, the Wikipedia article in alpha compositing is useful. See also Porter, Thomas; Tom Duff (1984). "Compositing Digital Images". Computer Graphics 18 (3): p253–259 1984 pdf