This forum has been archived. All content is frozen. Please use KDE Discuss instead.

PNG transparency

Tags: None
(comma "," separated)
Pierre-Yves
Registered Member
Posts
2
Karma
0

PNG transparency

Sun May 08, 2016 12:50 pm
Hello,

I am trying to use a PNG clip for a title. This PNG has a transparent background, and also a white area which is semi transparent (30%). When I select transparency for the clip, the background is transparent, but the white area is full white. However, I also select the "dissolve in" and "dissolve out" effects for this clip. During the "dissolve in" and "dissolve out" process, the white area is correctly displayed (30%). But as soon as the the dissolve in operation is finished, the white area suddenly become 100% white (non transparent). When the dissolve out operation starts, it is again suddenly correctly displayed.

I temporarily found a solution which is to make the dissolve in and dissolve out operation each half the duration of the clip. This is however not fully satisfactory. Is there a solution to have this semi transparent area be displayed as semi transparent?

Thanks
TheDiveO
Registered Member
Posts
595
Karma
3
OS

Re: PNG transparency

Sun May 08, 2016 1:13 pm
You didn't say which Kdenlive version you're working with.

Anyway, the central thing to understand here is that for any clip with alpha information the alpha information isn't used unless you do compositing by adding a transition. This is what you're seeing with the dissolve transition.

Instead of using dissolves at the beginning and end of your title clip either use a composite or an affine transition that spans the full length of your title clip. Next, set four keyframes, so that you can first ramp up opacity from 0% to 100%, then keep it until the ramp down from 100% to 0%. As far as I remember this is described in Kdenlive's documentation.

For more insight into working with transitions, see here: http://thediveo-e.blogspot.de/2014/07/k ... art-1.html

As of Kdenlive 15.12 and later, tracks have an automatic transparency mode. However, when you need to fade in and out, you'll need to work with transitions and keyframes anyway.
Pierre-Yves
Registered Member
Posts
2
Karma
0

Re: PNG transparency

Tue May 10, 2016 5:19 pm
Thanks for the explanation. It works fine! And thanks for your excellent article!

I could do with a single Affine with four key frames. By the way, do you know if there is a a way to store this configured Affine for future reuse? (version is 15.12.2)
TheDiveO
Registered Member
Posts
595
Karma
3
OS

Re: PNG transparency

Tue May 10, 2016 7:48 pm
Within the same project, simply copy and paste the transition, then adjust the last two keyframes as needed. It's already a rhythm I do automatically when editing projects.

At this time there is only an indirect method to store the affine transition with keyframes: the library mechanism. I didn't try this, but I would suspect this to work: select the transition, go to the library pane, click the bookmark button, and give a name to this. In another project press the plus button in the library to add the item to your project bin, then drag this new bin item into the timeline after the last clip, select it, choose expand, finally remove the now unnecessary bin item (mlt clip). That's a hassle, so you will be faster creating the affinr with keyframes anew in new projects.

For details on how to use the library, see here: http://thediveo-e.blogspot.de/2016/03/k ... -ends.html


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft