Bug 501227

Summary: Motion Tracker cannot save filter with changes and new name
Product: [Applications] kdenlive Reporter: garyasangabryan
Component: Video Effects & TransitionsAssignee: Jean-Baptiste Mardelle <jb>
Status: REOPENED ---    
Severity: major    
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 25.04.0
Sentry Crash Report:
Attachments: attachment-2928303-0.html
Start of Clip with Blur rectangle and red x
End of Clip with Blur and red x
My saved effect (Blur Tracker)
attachment-3271993-0.html
Blur Tracker xml file
Screenshot of Kdenlive Blur Tracker trial
attachment-3718431-0.html

Description garyasangabryan 2025-03-08 13:10:15 UTC
In Kdenlive version 24.12.2, I cannot save custom version of  "motion tracker" effect.   When I try to use that saved filter and click "Analyse to Apply Effect" I keep getting an error that reads "Cannot create filter ***".   What could be wrong.   If I save "motion tracker" effect with a saved preset that preset works.


STEPS TO REPRODUCE
1. Put Motion Tracker effect on clip
2. Change settings in effects stack
3. Click icon on Motion tracker bar to drop down "Save effect"
4. Save effect with new name
5. Start a new project and use the new saved effect on new clip
6. Click on "Analyse to Apply Effect"


OBSERVED RESULT
1. Get error message that reads "Cannot create filter ***".
2. Cannot use the saved filter


EXPECTED RESULT
1. Should work the same as Motion Tracker effect with changes saved with new name.

SOFTWARE/OS VERSIONS
Kdenlive 24.12.2 flatpak version/Linux Mint 22.1


ADDITIONAL INFORMATION
Comment 1 garyasangabryan 2025-03-08 13:19:34 UTC
Here's debug info

Kdenlive: 24.12.2
Package Type: Flatpak
MLT: 7.30.0
Qt: 6.8.2 (built against 6.8.2 x86_64-little_endian-lp64)
Frameworks: 6.11.0
System: KDE Flatpak runtime
Kernel: linux 6.8.0-55-generic
CPU: x86_64
Windowing System: xcb
GPU: 
Movit (GPU): disabled
Track Compositing: qtblend
Comment 2 garyasangabryan 2025-03-11 08:12:51 UTC
Forgot to mention that if I use multiple uses (4) of "Motion Tracker" with Blur type "Gaussian" on a single clip and then split the clip into multiple clips, then render all clips, the result doesn't have the Motion Trackers with blur on them. I use the Motion Tracker with Blur to blur out static areas in different clips, not with tracking keyframes. I've used Kdenlive with this method for 5 years and no problem. Just started last week. Kdenlive must have updated through my Linux Mint Update Manager from earlier Flatpak version.
Comment 3 Jean-Baptiste Mardelle 2025-03-13 12:25:05 UTC
Thanks for your report, I am working on a fix
Comment 4 Jean-Baptiste Mardelle 2025-03-13 18:03:46 UTC
Git commit 21c6c6610ecaa8199f0f5b923cc3332c9561039d by Jean-Baptiste Mardelle.
Committed on 13/03/2025 at 18:03.
Pushed by mardelle into branch 'release/25.04'.

Fix saved tracker effect doesn't work
FIXED-IN: 25.04.0

M  +1    -1    src/assets/model/assetparametermodel.cpp
M  +4    -4    src/assets/view/widgets/buttonparamwidget.cpp
M  +1    -1    src/timeline2/view/timelinecontroller.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/21c6c6610ecaa8199f0f5b923cc3332c9561039d
Comment 5 garyasangabryan 2025-03-15 04:00:11 UTC
Just tried out saving this effect in nightly build 25.07.70. Motion Tracker does save with new name and that effect is usable, however it doesn't render out to a finished clip. Just thought I'd pass this trial on. I maybe jumping ahead to early. Noticed you said fixed in 25.04.0.
Comment 6 garyasangabryan 2025-03-15 04:03:26 UTC
Created attachment 179408 [details]
attachment-2928303-0.html

Just tried out saving this effect in nightly build

Just tried out saving this effect in nightly build 25.07.70. Motion Tracker
does save with new name and that effect is usable, however it doesn't
render out to a finished clip. Just thought I'd pass this trial on. I maybe
jumping ahead to early. Noticed you said fixed in 25.04.0.  (Posted also on
bug report)

On Fri, Mar 14, 2025 at 5:03 AM Jean-Baptiste Mardelle <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=501227
>
> Jean-Baptiste Mardelle <jb@kdenlive.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>    Version Fixed In|                            |25.04.0
>              Status|CONFIRMED                   |RESOLVED
>       Latest Commit|                            |
> https://invent.kde.org/mult
>                    |
> |imedia/kdenlive/-/commit/21
>                    |
> |c6c6610ecaa8199f0f5b923cc33
>                    |                            |32c9561039d
>          Resolution|---                         |FIXED
>
> --- Comment #4 from Jean-Baptiste Mardelle <jb@kdenlive.org> ---
> Git commit 21c6c6610ecaa8199f0f5b923cc3332c9561039d by Jean-Baptiste
> Mardelle.
> Committed on 13/03/2025 at 18:03.
> Pushed by mardelle into branch 'release/25.04'.
>
> Fix saved tracker effect doesn't work
> FIXED-IN: 25.04.0
>
> M  +1    -1    src/assets/model/assetparametermodel.cpp
> M  +4    -4    src/assets/view/widgets/buttonparamwidget.cpp
> M  +1    -1    src/timeline2/view/timelinecontroller.cpp
>
>
> https://invent.kde.org/multimedia/kdenlive/-/commit/21c6c6610ecaa8199f0f5b923cc3332c9561039d
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 7 Jean-Baptiste Mardelle 2025-03-15 05:01:48 UTC
Thanks for testing. It works for me, that might be another bug. Can you give me more details:
* Where did you apply the effect: on a project bin clip, timeline clip, track ?
* what parameters did you use for the filter ?

Can you maybe attach the saved effect in this bug report ? It is in :
$HOME/.local/share/kdenlive/effects

and called your-effect-name.xml
Comment 8 garyasangabryan 2025-03-15 06:26:59 UTC
Its rendering now with the effects. However when I first place the effect on the clip, a red x  appears as I move the blur rectangle into position.  Then when I play the clip the blur rectangle moves along the line back to the x. Before the rectangle would remain static unless I Analyed to Apple Effect if I used the effect to follow motion. I just want to use it to blur still areas. I could do this in previous Kdenlive versions. I've attached screenshots.
Comment 9 garyasangabryan 2025-03-15 06:30:10 UTC
Created attachment 179411 [details]
Start of Clip with Blur rectangle and red x
Comment 10 garyasangabryan 2025-03-15 06:31:59 UTC
Created attachment 179412 [details]
End of Clip with Blur and red x
Comment 11 garyasangabryan 2025-03-15 09:11:34 UTC
Created attachment 179419 [details]
My saved effect (Blur Tracker)
Comment 12 garyasangabryan 2025-03-15 21:29:27 UTC
Created attachment 179439 [details]
attachment-3271993-0.html

I added more detail on the bug site. Attachments include xml file and 2
photos.

On Sat, Mar 15, 2025 at 4:01 PM Jean-Baptiste Mardelle <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=501227
>
> Jean-Baptiste Mardelle <jb@kdenlive.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>          Resolution|FIXED                       |---
>              Status|RESOLVED                    |REOPENED
>
> --- Comment #7 from Jean-Baptiste Mardelle <jb@kdenlive.org> ---
> Thanks for testing. It works for me, that might be another bug. Can you
> give me
> more details:
> * Where did you apply the effect: on a project bin clip, timeline clip,
> track ?
> * what parameters did you use for the filter ?
>
> Can you maybe attach the saved effect in this bug report ? It is in :
> $HOME/.local/share/kdenlive/effects
>
> and called your-effect-name.xml
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 13 garyasangabryan 2025-03-16 03:48:43 UTC
(In reply to garyasangabryan from comment #8)
> Its rendering now with the effects. However when I first place the effect on
> the clip, a red x  appears as I move the blur rectangle into position with a red dotted line, then
> when I play the clip the blur rectangle moves along the line back to the x.
> Before the blur rectangle would remain static unless I clicked "Analyse to Apply Effect".
>  I just want to use it to blur a still area in the clip not use the effect to blur a moving area.
> I could do this in previous Kdenlive versions. I've attached
> screenshots.
Comment 14 garyasangabryan 2025-03-16 07:16:37 UTC
I decided to start fresh with 24.12.3. The Motion Tracker effect wouldn't work as a static blur but would work as motion tracking by analysing for keyframes and would render. I did manage to get it to use a saved static blur effect by adding a copy of the first keyframe to the end of the clip. That got the blur to stabilize in place and was able to render. Also I could use multiple instances of saved blur effect each with added copy of its first keyframe added to end of clip. Also tried to split clips to see if each effect would remain in place and they did.

Would be nice if just adding the motion tracker and adding blur would remain in place and render with just the first keyframe after placement. This is how it use to function for me. Appeciate your work on such an amazing piece of software. Hope this bug gets added
Comment 15 garyasangabryan 2025-03-17 01:08:19 UTC
I apologize for another comment. I am amending previous comment. I can use multiple instances of Blur Tracker (saved Motion tracker with changes) on clip in the Timeline then move each instance of Blur Tracker rectangle on  project monitor window into different places (static). When I've done that I then go to end of clip in the Timeline and in the Effects Stack I add a keyframe in each instance of Blur Tracker. That holds each instance in place and also can Render. I am also sending new Blur Tracker xml as attachment and desktop pic.
Comment 16 garyasangabryan 2025-03-17 01:11:24 UTC
Created attachment 179481 [details]
Blur Tracker xml file
Comment 17 garyasangabryan 2025-03-17 01:13:32 UTC
Created attachment 179482 [details]
Screenshot of Kdenlive Blur Tracker trial
Comment 18 garyasangabryan 2025-03-17 01:16:31 UTC
Created attachment 179483 [details]
attachment-3718431-0.html

Sent my latest trial to https://bugs.kde.org/show_bug.cgi?id=501227

On Sun, Mar 16, 2025 at 8:29 AM Gary Asanga Bryan <garyasangabryan@gmail.com>
wrote:

> I added more detail on the bug site. Attachments include xml file and 2
> photos.
>
> On Sat, Mar 15, 2025 at 4:01 PM Jean-Baptiste Mardelle <
> bugzilla_noreply@kde.org> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=501227
>>
>> Jean-Baptiste Mardelle <jb@kdenlive.org> changed:
>>
>>            What    |Removed                     |Added
>>
>> ----------------------------------------------------------------------------
>>          Resolution|FIXED                       |---
>>              Status|RESOLVED                    |REOPENED
>>
>> --- Comment #7 from Jean-Baptiste Mardelle <jb@kdenlive.org> ---
>> Thanks for testing. It works for me, that might be another bug. Can you
>> give me
>> more details:
>> * Where did you apply the effect: on a project bin clip, timeline clip,
>> track ?
>> * what parameters did you use for the filter ?
>>
>> Can you maybe attach the saved effect in this bug report ? It is in :
>> $HOME/.local/share/kdenlive/effects
>>
>> and called your-effect-name.xml
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>
>