Bug 499617

Summary: Layered video brightens bottom layer
Product: [Applications] kdenlive Reporter: Cheddar Fox <cheddarthefox>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: minor CC: berndmj, cheddarthefox
Priority: NOR Keywords: triaged
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of how the brightnes changes when the layer starts on timeline

Description Cheddar Fox 2025-02-06 22:03:13 UTC
I found an issue where when I put my face cam footage on top of the base video, the base video gets brighter. 
This happens even for parts of the video that are not covered by the top layer(face cam) and happens both in preview and render even when effects are disabled for the top layer. The bottom layer has no effects. 

This does not happen when the same Face cam footage is placed on top of an image of a frame exported from the video.

Here is a link to a short rendered clip when the face cam comes in to show how the brightness of the whole seen increases
https://drive.google.com/file/d/1ZoupWBysmx4kSnIN4WN_QOMesL4b0hwf/view?usp=sharing
Here is another clip with a similar situation but with the bottom layer as an image.
https://drive.google.com/file/d/1-JzVRiwzg3jzQsThjLtrR3gGA6WIvM9a/view?usp=sharing

These are not the exact same point in the video but I did test it again afterwards with the same part of the video just to make sure that it was not a problem with the clip itself and it is not the clip.

In its current state the brightens change is not huge so its not a problem for this project. 

GPU 1050Ti Driver date 2025-01-26
Kdenlive: 24.12.1
MLT: 7.28.0
FFmpeg
KDE Frameworks: 6.9.0
Qt: Using 6.8.0 and built against 6.8.0
Windows 11 Version 23H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.22631
Comment 1 Bernd 2025-02-08 18:15:34 UTC
What effect do you use for the overlaying?
Comment 2 Cheddar Fox 2025-02-08 18:52:12 UTC
I'm using separate video layers to overlay the camera video. The effects am using on the camera are the "Bluescreen0r" Effect and the "Transform" Effect. If I remove both effects, due to the camera video being 480x480 square and the main video being 16/9 I can still see the bottom layer and the problem is still occurring with no effects applied if the bottom layer is video.
Comment 3 Cheddar Fox 2025-03-12 18:19:36 UTC
Created attachment 179349 [details]
Example of how the brightnes changes when the layer starts on timeline

I have just discovered that this bug also exists for text objects. The moment a text object starts in the time line, whether it is being faded in or not, the overall image output for everything behind this layer is instantly brighter as if a white box with 5% transparency was put on top along with the text.  Even when the text has not faded in yet this filtering effect is happening. It is most obvious on dark clips.
Comment 4 Bernd 2025-03-14 13:58:07 UTC
What is the setting in Kdenlive > Settings > Configure Kdenlive > Misc for the preferred timeline compositing method?
Comment 5 Cheddar Fox 2025-03-14 22:40:50 UTC
(In reply to Bernd from comment #4)
> What is the setting in Kdenlive > Settings > Configure Kdenlive > Misc for
> the preferred timeline compositing method?

I have it set to auto currently. I went to try both the other options but when I did transparency on everything in the video stopped working all together and everywhere there should be transparency there is just black... I changed it back and reopened the program but it is still doing the same thing... Hopefully that is not going to be a problem next time I go to edit...
Comment 6 Cheddar Fox 2025-03-14 22:48:04 UTC
(In reply to Cheddar Fox from comment #5)
> (In reply to Bernd from comment #4)
> > What is the setting in Kdenlive > Settings > Configure Kdenlive > Misc for
> > the preferred timeline compositing method?
> 
> I have it set to auto currently. I went to try both the other options but
> when I did transparency on everything in the video stopped working all
> together and everywhere there should be transparency there is just black...
> I changed it back and reopened the program but it is still doing the same
> thing... Hopefully that is not going to be a problem next time I go to
> edit...

The good news is it seams the transparency only broke in the one project and i'm already done that one so its not a problem.
Comment 7 Cheddar Fox 2025-03-14 22:54:04 UTC
(In reply to Cheddar Fox from comment #6)
> (In reply to Cheddar Fox from comment #5)
> > (In reply to Bernd from comment #4)
> > > What is the setting in Kdenlive > Settings > Configure Kdenlive > Misc for
> > > the preferred timeline compositing method?
> > 
> > I have it set to auto currently. I went to try both the other options but
> > when I did transparency on everything in the video stopped working all
> > together and everywhere there should be transparency there is just black...
> > I changed it back and reopened the program but it is still doing the same
> > thing... Hopefully that is not going to be a problem next time I go to
> > edit...
> 
> The good news is it seams the transparency only broke in the one project and
> i'm already done that one so its not a problem.

Ok. So I did more experimentation and the problem that makes everything look lighter only happens on qtblend and auto. frei0r.cairoblend works fine but for whatever reason changing between any of these presets bricks the transparency on whatever project is open... Will need to make another bug report for that.