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

Alpha premultiply

Tags: None
(comma "," separated)
kde-cgvirus
Registered Member
Posts
13
Karma
1

Alpha premultiply

Mon Mar 21, 2022 10:16 pm
Hello,
I have a prores footage with alpha and I need to apply alpha premultiply rather than straight alpha. How to do it in kdenlive?
Thanks!
kde-cgvirus
Registered Member
Posts
13
Karma
1

Re: Alpha premultiply

Mon Mar 21, 2022 11:57 pm
Shotcut has an unpremultyply alpha effect which works perfectly, just FYI.
mickae
Registered Member
Posts
214
Karma
2
OS

Re: Alpha premultiply

Tue Mar 22, 2022 9:32 am
Could you perhaps describe a little more specifically what it is that you are trying to do and what it is that you are not succeeding with Kdenlive?
kde-cgvirus
Registered Member
Posts
13
Karma
1

Re: Alpha premultiply

Tue Mar 22, 2022 12:53 pm
More preciely:
Kdenlive requires an alpha changing mode in footage properties or an effect to unmult the alpha channel.
In vfx world some footage comes with straight alpha, some come as premulitplied alpha. Kdenlive I guess by default treats all alpha footage as straight alpha.

We got some prores 4444 with alpha, which requires to treat it as alpha premultiplied. Which Kdenlive can't do. Shotcut has an alpha unpremultiplied effect. Which is working perfectly.
The work around was converting the footage to qtrle with PNG.
mickae
Registered Member
Posts
214
Karma
2
OS

Re: Alpha premultiply

Tue Mar 22, 2022 2:42 pm
Oh, I'm afraid I'll have to pass. I see that I had never dealt with this issue.
Let's hope that another user who knows about it will have something to say about it soon. Sorry.
kde-camillem
Registered Member
Posts
14
Karma
0

Re: Alpha premultiply

Wed Mar 23, 2022 12:10 pm
Hi,

There is a frei0r plugin for that : https://www.mltframework.org/plugins/Fi ... emultiply/ but it has been blacklisted in Kdenlive in the category "# WORKING BUT NEED CHECKS"
https://invent.kde.org/multimedia/kdenl ... s.txt#L174

Could you compile Kdenlive with this line removed and test it with your footage ?

Cheers,
Camille
kde-cgvirus
Registered Member
Posts
13
Karma
1

Re: Alpha premultiply

Wed Mar 23, 2022 5:47 pm
kde-camillem wrote:Hi,

There is a frei0r plugin for that : https://www.mltframework.org/plugins/Fi ... emultiply/ but it has been blacklisted in Kdenlive in the category "# WORKING BUT NEED CHECKS"
https://invent.kde.org/multimedia/kdenl ... s.txt#L174


This one should work. Shotcut is using it. Will compile it after finishing the project. Thanks.
frdbr
Registered Member
Posts
9
Karma
1

Re: Alpha premultiply

Wed Mar 23, 2022 9:27 pm
mickae wrote:Oh, I'm afraid I'll have to pass. I see that I had never dealt with this issue.
Let's hope that another user who knows about it will have something to say about it soon. Sorry.


Maybe these links help:
http://dvd-hq.info/alpha_matting.php
https://en.wikipedia.org/wiki/Alpha_compositing
frdbr
Registered Member
Posts
9
Karma
1

Re: Alpha premultiply

Wed Mar 23, 2022 9:28 pm
kde-cgvirus wrote:
kde-camillem wrote:Hi,

There is a frei0r plugin for that : https://www.mltframework.org/plugins/Fi ... emultiply/ but it has been blacklisted in Kdenlive in the category "# WORKING BUT NEED CHECKS"
https://invent.kde.org/multimedia/kdenl ... s.txt#L174


This one should work. Shotcut is using it. Will compile it after finishing the project. Thanks.


Did a quick test and it seems to work fine. Would you like to send me some sample footage that you are using for me to test?
kde-cgvirus
Registered Member
Posts
13
Karma
1

Re: Alpha premultiply

Wed Mar 23, 2022 9:53 pm
frdbr wrote:
kde-cgvirus wrote:
kde-camillem wrote:Hi,

Did a quick test and it seems to work fine. Would you like to send me some sample footage that you are using for me to test?

Here is a test file
https://drive.google.com/file/d/1nzrN2K ... sp=sharing
frdbr
Registered Member
Posts
9
Karma
1
kde-cgvirus
Registered Member
Posts
13
Karma
1

Re: Alpha premultiply

Thu Mar 24, 2022 1:34 pm


Yes, this is exact. Thanks for checking it out!
kde-cgvirus
Registered Member
Posts
13
Karma
1


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]