Perspective image placement

Following "Pan and Zoom" in our last release in Kdenlive 0.8 there will be a new GUI for the Corners effect, unleashing its real power:
Corners monitor example
read more »

Corners was already available in Kdenlive 0.7.8 (under its frei0r name c0rners) but probably remained unrecognized because it was very hard to use. The x, y position of every corner had to be adjusted using a slider. In the next release this should be whole lot easier. The corners can be moved directly on the monitor. Additionally there are some more controls to make your life easier: The red cross in the center of the upper layer moves all corners at once. Using the controls on the edges of the upper layer you can move the two corners next to them.

Let's have a closer look at the interface and some of the parameters:
Corners interface

  1. This button is the new way to turn on the keyframe mode. Most effects supporting keyframes do now have this.
  2. This parameter controls the size (in pixels) of the alpha gradient the effect tries to create at the edges of the layer to make it composite smoother onto the bottom layer. Feathering with two edges switched is not implemented (yet).
  3. The interpolation functions are sorted from low quality and fast to high quality and slow. While editing I therefore always use Nearest Neighbor. When rendering for me Bilinear or Bicubic is usually sufficient. In most cases you won't see a difference when switching to higher quality options. Especially Lanczos should be used only when really needed for it is extremly slow.
  4. When compositing Transparent background has to be turned on. If the image already has an alpha channel (title, bluescreen stacked before corners, ...) you need to specify how the filter should combine the existing alpha channel with the channel it created.
  5. All effects with an on-monitor GUI (in 0.8 there will be three types of them) do now have their editing related controls located here. The two buttons at the top are Corners specific. This one (the top most) turns on/off the additional controls (move all corners, move two corners).
  6. This button turns on/off lines connecting the corners. This can come in handy if you want to do a precise placement. You can then turn of the top track of your composition and have a closer look at what is covered. Please note that when two corners are switched (lines cross each other) the filter won't produce a simple polygon.

Despite its power there are some things to consider before enjoying it:
The "c0rners" filter was introduced in frei0r 1.2. However when using keyframes and also when changing multiple parameters it was very, very slow. Additionally the parameter Alpha operation was not available. It is therefore highly recommended to upgrade to frei0r 1.3 (released today, 03/09/11).
You shouldn't use this effect to zoom into media with a resolution higher than the project resolution. If doing so the image will be scaled down first and then scaled up by c0rners afterwards. To avoid this loss use Pan and zoom. It will pass any downscaling. You can then afterwards apply c0rners for some fancy movements.

As you might have already noticed this effect can do much more than placing images inside each other.
I would therefore like to thank Marko for writing this awesome effect!

A quick note at the end: Attaching your video camera on a monopod and holding it upside down just a bit above the ground while riding a bike creates a nice look ;)


That's a nice feature. It brings Kdenlive closer to video composition. I'm looking forward for the 0.8 version.

HP envy 15 | OpenSuse 11.3.|

I use usually kdenlive on my kubuntu: I think that the solution of monitor effects "editing" will be surely amazing. I've tried the last OpenShot release: except some things (smooth scale animation & animated title) Kdenlive 0.8 will overcome Openshot in number of feature. I hope that kdenlive will remain well organized in all its numerous function (like now),to let people free to use easily this marvelous program.

Well done!

Openshot's scale animations shouldn't be any smoother than what we have in Kdenlive. Smooth affine transformations were added in MLT 0.5.6 and exposed in Kdenlive 0.7.8 through the Pan and Zoom effect.

I keep wondering what is the meaning of position values having a slider like seen on this screenshot, as they have not a minimum nor a maximum value (so slider values are completely arbitrary and so separated that turns sliding uncomfortable).
And also why don't we just implement a more compact parameter layout for this kind of cases whete X and Y parameters are on the same row.

Corner1 Xvalue, Yvalue
Corner2 Xvalue, Yvalue
Corner3 Xvalue, Yvalue
Corner4 Xvalue, Yvalue
Stretch Xvalue, Yvalue

Thanks for listening!!

Unfortunately the values do have a maximum and a minimum. Since this is a frei0r filters values are forced to be in the range [0,1], Then 1/3 is 0px and 2/3 is height or width px. This is mapped to [0,6000] in Kdenlive. And yes this is ugly. The range problem with frei0r's double parameter is currently discussed on their mailing list, so there might be a change to this somewhere in the future.
I think we've already discussed alternative parameter layouts on the mailing-list and came to the conclusion that your proposal is quite nice. So no developer is stopped from working on it. Unfortunately there aren't to many of us around here, so you'll have to wait a bit until somebody has the time and feels like working on this ;)
But anyways thanks for your valuable advice!

You're welcome, and of course I do understand there are not many developers.
But, on the other hand, I'm patient... ;P

Thank you and the other guys here, for developing such a great app.!

... I am using kdenlive 0.9.2 and I cannot find "Corners". Could you please tell me if this feature still exists and where?

Thanks! :)

Not sure where this effect is in 0.9.2 or if it exists there. But it does exist in 0.9.4 (well it exists in my version of kdenlive which is actually a recent git version) but my guess is that it does exist in 0.9.4

It is in the distort group of effects.