Bug 496069

Summary: "Rotation effect" - unsightly “edge flutter” during short, slow movements” during short, slow movements
Product: [Applications] kdenlive Reporter: fehler-im-programm
Component: Video Effects & TransitionsAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: normal CC: berndmj, fritzibaby
Priority: NOR Keywords: triaged
Version First Reported In: 24.08.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Projectfile - Bug - unsightly Edgeflutter by 'Rotate-Effect'.kdenlive
Video - Bug - unsightly Edgeflutter by 'Rotate-Effect'.mp4
Testbild5.jpg
Flickering edge by Position & Zoom Effect
Compare 'Rotate' & 'Transform' Effect (Flickering)
Influence by the mere presence of “Rotate effect” on Transform effect
Projectfile - Influence by the mere presence of “Rotate effect” on Transform effect
Video "Bug Transformeffekt"
Projectfile - Bug Transformeffekt
Picture "Peter Steele (RIP 1962-2010).jpg"

Description fehler-im-programm 2024-11-11 00:14:59 UTC
Created attachment 175718 [details]
Projectfile - Bug - unsightly Edgeflutter by 'Rotate-Effect'.kdenlive

Flatpak Version 24.05.2 (Ubuntu 18.04)

STEPS TO REPRODUCE
1. Open Projectfile (see Attachments)
2. Render
3. Pay attention to the upper edge


OBSERVED RESULT
“Edge flutter”

EXPECTED RESULT
No “edge flutter”
Comment 1 fehler-im-programm 2024-11-11 00:16:30 UTC
Created attachment 175719 [details]
Video - Bug - unsightly Edgeflutter by 'Rotate-Effect'.mp4
Comment 2 fehler-im-programm 2024-11-11 00:18:19 UTC
Created attachment 175720 [details]
Testbild5.jpg
Comment 3 Bernd 2024-11-11 16:44:53 UTC
Hmm, I looked at the project file and am wondering why you are keyframing the Offset Y parameter. There is no rotation. Effectively you are moving the image down by 3 pixels which reveals the background and therefore creates the flickering edge.
Comment 4 fehler-im-programm 2024-11-11 19:41:48 UTC
(In reply to Bernd from comment #3)
> Hmm, I looked at the project file and am wondering why you are keyframing
> the Offset Y parameter. There is no rotation. Effectively you are moving the
> image down by 3 pixels which reveals the background and therefore creates
> the flickering edge.

Moving to Y is also part of the “rotation effect”.  Whether it is rotated or not.

I don't think the flickering is normal, especially as this unsightly effect also occurs with the Position & Zoom effect
https://bugs.kde.org/show_bug.cgi?id=474511
Comment 5 fehler-im-programm 2024-11-11 19:43:14 UTC
Created attachment 175736 [details]
Flickering edge by Position & Zoom Effect
Comment 6 Bernd 2024-11-11 20:14:09 UTC
The Position and Zoom effect has its own issues with compositing, and I strongly recommend to use the Transform effect instead.

The new examples you uploaded play fine in my browser (Firefox on Pop!_OS 22.04 LTS). No unsightly flickering.

Your animation of the Offset Y parameter from 0 to -3 and back to 0 a few times reveals the black background (with our without rotation), and I guess based on your computer's resolution causes the flickering.
Comment 7 Bernd 2024-11-11 20:16:02 UTC
(In reply to Bernd from comment #6)
> The Position and Zoom effect has its own issues with compositing, and I
> strongly recommend to use the Transform effect instead.
> 
> The new examples you uploaded play fine in my browser (Firefox on Pop!_OS
> 22.04 LTS). No unsightly flickering.
> 
> Your animation of the Offset Y parameter from 0 to -3 and back to 0 a few
> times reveals the black background (with our without rotation), and I guess
> based on your computer's resolution causes the flickering.

Or it could be some rounding issues?
Comment 8 Bernd 2024-11-11 20:23:42 UTC
(In reply to fehler-im-programm from comment #4)
> I don't think the flickering is normal, especially as this unsightly effect
> also occurs with the Position & Zoom effect
> https://bugs.kde.org/show_bug.cgi?id=474511

Both, Rotate and Position and Zoom use the affine effect in the background. Therefore, both seem to suffer from the same implementation in melt (the engine Kdenlive uses for applying all effects, filters, compositions, and transitions). Can you try with the Transform effect? It has values for position (X and Y coordinates), allows rotation, and all of that is keyframable.
Comment 9 fehler-im-programm 2024-11-11 20:35:21 UTC
(In reply to Bernd from comment #6)
> The Position and Zoom effect has its own issues with compositing, and I
> strongly recommend to use the Transform effect instead.
> 
> The new examples you uploaded play fine in my browser (Firefox on Pop!_OS
> 22.04 LTS). No unsightly flickering.
> 
> Your animation of the Offset Y parameter from 0 to -3 and back to 0 a few
> times reveals the black background (with our without rotation), and I guess
> based on your computer's resolution causes the flickering.

The second, narrow picture flickers, the first does not.
Comment 10 fehler-im-programm 2024-11-11 20:43:42 UTC
(In reply to Bernd from comment #7)
> (In reply to Bernd from comment #6)
> > The Position and Zoom effect has its own issues with compositing, and I
> > strongly recommend to use the Transform effect instead.
> > 
> > The new examples you uploaded play fine in my browser (Firefox on Pop!_OS
> > 22.04 LTS). No unsightly flickering.
> > 
> > Your animation of the Offset Y parameter from 0 to -3 and back to 0 a few
> > times reveals the black background (with our without rotation), and I guess
> > based on your computer's resolution causes the flickering.
> 
> Or it could be some rounding issues?

No. Flickering even at 4px.
Comment 11 fehler-im-programm 2024-11-11 20:55:27 UTC
(In reply to Bernd from comment #8)
> (In reply to fehler-im-programm from comment #4)
> > I don't think the flickering is normal, especially as this unsightly effect
> > also occurs with the Position & Zoom effect
> > https://bugs.kde.org/show_bug.cgi?id=474511
> 
> Both, Rotate and Position and Zoom use the affine effect in the background.
> Therefore, both seem to suffer from the same implementation in melt (the
> engine Kdenlive uses for applying all effects, filters, compositions, and
> transitions). Can you try with the Transform effect? It has values for
> position (X and Y coordinates), allows rotation, and all of that is
> keyframable.

The Transform effect semms to work. Seems to work. 
Thanks for the hint. But it shouldn't be the case that identical effects don't work properly.

I only saw the “Transform Effect” for the first time a few weeks ago. 
Probably because Kdenlive is now only available in English due to “flatpak update” and I now have to search for the effects in English.
Comment 12 fehler-im-programm 2024-11-11 20:56:36 UTC
Created attachment 175739 [details]
Compare 'Rotate' & 'Transform' Effect (Flickering)
Comment 13 fehler-im-programm 2024-11-12 00:44:34 UTC
Created attachment 175743 [details]
Influence by the mere presence of “Rotate effect” on Transform effect

Small addendum: The mere presence of “Rotate” causes “Transform effect” to flicker (sequence: Rotate - Transform).
Comment 14 fehler-im-programm 2024-11-12 00:45:19 UTC
Created attachment 175744 [details]
Projectfile - Influence by the mere presence of “Rotate effect” on Transform effect
Comment 15 Bernd 2024-11-12 19:35:54 UTC
(In reply to fehler-im-programm from comment #11)
> But it shouldn't be the case that identical effects
> don't work properly.

They are not identical. "Transform" uses qtblend, "Rotate" and "Position & Zoom" use affine. A combination may influence the output because melt goes through all of them thus "applying" the issues ...

BTW, qtblend has better performance during the rendering.
Comment 16 fehler-im-programm 2024-11-12 19:46:59 UTC
Thanks for the info!
Comment 17 fehler-im-programm 2024-11-26 22:40:48 UTC
Hallo Bernd, 

danke für den Hinweis. 

Ich habe den "Position & Zoom" durch den "Transform-Effekt" ersetzt. Zumindest an den Stellen wo, das unschöne Flackern auftauchte.
Allerdings hat auch der "Transformation-Effekt" seine Probleme. Dieses Bild zum Beispiel "wackelt" vor sich hin. Siehe Anhang. 

Notlösung: "Position & Zoom" Effekt einfach hinzufügen ("Rotate" geht auch). Es flackert hier nur zweimal.



Hello Bernd, 

thanks for the tip. 

I have replaced the “Position & Zoom” with the “Transform effect”. At least in the places where the unsightly flickering appeared.
However, the “Transform effect” also has its problems. This picture, for example, “wobbles”. See attachment. 

Emergency solution: Simply add the “Position & Zoom” effect (“Rotate” also works). It only flickers twice here.

Translated with https://www.deepl.com/
Comment 18 fehler-im-programm 2024-11-26 22:43:44 UTC
Created attachment 176153 [details]
Video "Bug Transformeffekt"
Comment 19 fehler-im-programm 2024-11-26 22:44:27 UTC
Created attachment 176154 [details]
Projectfile - Bug Transformeffekt
Comment 20 fehler-im-programm 2024-11-26 22:45:18 UTC
Created attachment 176155 [details]
Picture "Peter Steele (RIP 1962-2010).jpg"