Bug 422316 - Rotate Effect (keyframe) not rotating like expected
Summary: Rotate Effect (keyframe) not rotating like expected
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Effects & Transitions (show other bugs)
Version: 20.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Vincent PINON
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-01 08:33 UTC by J Appel
Modified: 2021-04-07 14:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.04


Attachments
kdenlive sample file for the described rotation issue (16.66 KB, application/x-kdenlive)
2020-06-01 08:33 UTC, J Appel
Details
working keyframes example (272.24 KB, video/mp4)
2021-04-07 14:21 UTC, farid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Appel 2020-06-01 08:33:57 UTC
Created attachment 128969 [details]
kdenlive sample file for the described rotation issue

SUMMARY


When trying to start a rotation around the z-axis(value 800, keyframe 1), stopping when the rotation is at value 0 (keyframe 2 and 3) and then trying to continue the rotation (keyframe 4, value -800), the rotated clip spins in the direction "where it came from", instead of continuing the rotation. 

Sample clip attached.


STEPS TO REPRODUCE
1. Add clip (text clip making it more obvious than color clip for example)
2. Add rotation keyframable effect
3. add keyframe-rotation around z-axis at first frame with for example 800
4. add keyframes 2 and 3 after 1s and 2s with 0 rotation, add 4th frame with -800 (or +800)

OBSERVED RESULT
Clip spins around z-axis counter-clockwise until keyframe 1 and rotates clockwise after the 3rd keyframe. Changing the z-axis value in the 4th keyframe does not change the rotation.

EXPECTED RESULT
When the rotation initiates on a negative value (keyframe 1, gets stopped at 0 (keyframe 2 and 3) and continues the rotation with a positive value (keyframe 4) the direction of the rotation should be the same.

At the moment it seems to be impossible to continue the rotation into the same direction as both negative and positive values in keyframe 4 do not seem to change the spins direction.



SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 farid 2021-04-02 17:40:21 UTC
Could you please test with the latest version? It seems to be working as expected now.
Comment 2 J Appel 2021-04-03 10:34:26 UTC
Still present in 20.04.3. 

The rotation comes from one direction, stops, (as expected) and returns into the direction to where it came from (instead of continuing the rotation).


After the last keyframe there is still more rotation going on, which is also unexpected.
Comment 3 farid 2021-04-03 11:47:23 UTC
Now I see. Confirmed
Comment 4 farid 2021-04-07 14:21:34 UTC
Created attachment 137403 [details]
working keyframes example
Comment 5 farid 2021-04-07 14:24:13 UTC
Fixed with: https://invent.kde.org/multimedia/kdenlive/-/commit/7a9a9a03bacd53f843a43d9a8485c4a2bc46ab6b


Will be out next release. 

(See attached example.)