Bug 472449 - Regression: pan_zoom effect with keyframes on an image produces a graphical glitch that darkens the surrounding screen
Summary: Regression: pan_zoom effect with keyframes on an image produces a graphical g...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Effects & Transitions (show other bugs)
Version: 23.04.3
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
: 472551 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-07-21 02:32 UTC by Elliot Killick
Modified: 2023-07-24 11:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elliot Killick 2023-07-21 02:32:42 UTC
SUMMARY

This problem only happens starting with 23.x.

I've been able to fix it by changing this value from the <property name="kdenlive_id">pan_zoom</property> filter:

<property name="producer.resource">00:00:00.000=0x00000000;00:00:03.100=0x00000000</property>
TO
<property name="producer.resource">00:00:00.000=0x00000000</property>

This also works (and is the value used in 22.x Kdenlive):
<property name="producer.resource">0=/home/user/Videos/0x00000000</property>

I found this out by diffing the files produced by 22.x vs 23.x where the bug occurred until I changed the exact line that fixed the issue.

STEPS TO REPRODUCE
1. Create new 23.x project
2. Add video in V1 track
3. Add image (I test PNG and WEBP, this bug occurs with both) in V2 track
4. Add pan_zoom ("Position and Zoom") effect to image
5. Add keyframe to image that just makes it move (for example)
6. Save project
7. Re-open and observe the bug (rendering even without re-opening will also allow you to observe it)

OBSERVED RESULT

Graphical glitch causes screen to be darkened around image.

EXPECTED RESULT

No graphical glitch.

SOFTWARE/OS VERSIONS

AppImage, tested on Fedora 38 and Debian 11VM

ADDITIONAL INFORMATION

A project converted from 22.x to 23.x will not see the issue at first. It's only when you add a new pan_zoom effect with keyframes on an image that you will see the graphical glitch on that new element.
Comment 1 Jean-Baptiste Mardelle 2023-07-21 08:28:32 UTC
Thanks for your report. Problem is that in Kdenlive, we marked the background color property as mutable (that can be animated with keyframes), but this is not supported in the MLT framework. I will fix it by making the color it a fixed property again
Comment 2 Jean-Baptiste Mardelle 2023-07-21 08:29:34 UTC
Git commit 6feb13f87e6b16b9a3917ae6d66da7d876a9e444 by Jean-Baptiste Mardelle.
Committed on 21/07/2023 at 08:29.
Pushed by mardelle into branch 'release/23.08'.

Fix broken color parameter for some effects (producer color in MLT does not support color animation)

M  +1    -1    data/effects/pan_zoom.xml
M  +1    -1    data/effects/rotation.xml
M  +1    -1    data/effects/rotation_keyframable.xml

https://invent.kde.org/multimedia/kdenlive/-/commit/6feb13f87e6b16b9a3917ae6d66da7d876a9e444
Comment 3 Jean-Baptiste Mardelle 2023-07-24 11:36:19 UTC
*** Bug 472551 has been marked as a duplicate of this bug. ***