Observations about keyframes and rotation

I’ve just done some video using the size/position/rotation filter with keyframes for pinning a moving closeup (cf https://www.youtube.com/watch?v=3VXQQpLe1Lk ). I did the keyframes by skipping forward in the movie until the bellows direction reverses, then using the handle on the size/position/rotation filter to put the right side bar into correct position/orientation.

Here are some observations: the motion tracking filter doesn’t do rotations. Putting that aside, there did not seem any way to cut out its tracked area and put it in a constant position. Putting that aside, it totally did not work: the preview was pretty promising, but after analysis, everything was totally off, including the starting frame set manually for tracking. No idea what editing operation caused the track to not work with analysis or caused the analysis results to get interpreted wrongly. I suppose that someone will hunt this down, but as I said: there are other hurdles for applying the results of the motion tracker to my problem anyway.

Then with regard to righting my right side bar using the size/rotation handles: it was rather awkward that pulling on the handle only results in angles 0° to 359° because whenever the tilt was to the left, I had to manually subtract 360° in order not to get caprioles due to the keyframing.

So my suggestion would be that if keyframing is in effect, the handle does not disambiguate the angle’s 360° multiplicity by minimizing the difference to 180° but by minimizing the difference to the last keyframe’s rotation angle. In case this still isn’t right (or not implemented) two buttons for fixing up the angle by -360° or +360° would make this somewhat less annoying.

Even better would be to just maintain continuity when pulling the handle around and not let it jump by 360° when the user drags it across the 0° mark. Then one could add twirls manually.

I don’t have a good idea how to deal with the situation that might arise when you edit stuff at the start, making things upright, then edit stuff at the end, and then end up with a 360° mismatch in the middle. The +/-360° buttons may help straightening things up all the way to end, but it would still be a nuisance.

But usually editing will move from start to end instead of doing patchwork, so I am probably overthinking this.

1 Like

I am getting the same result. In your application of the rotation keyframing, do not touch the rotation handle, instead use the CTRL + Wheel.
shotcut_2023-12-16_23-52-03

This is possibly a bug.

Example:
Rotate logo

  1. Start at 0
  2. Back 5 degrees
  3. Forward 5 degrees to 0

shotcut_2023-12-17_00-05-45
1st keyframe is at 0
2nd keyframe is set to -0.5 (using CTRL + Wheel)
3rd keyframe is set to 0 (using CTRL + Wheel)
4th keyframe is set to 355.2 (using the drag rotation icon)
5th keyframe is set to 0 (using the drag rotation icon)

<property name="transition.fix_rotate_x">00:00:00.000=0;00:00:00.500=-5;00:00:01.000=0;00:00:01.500=355.2;00:00:02.000=0</property>

rotation keyframes.mlt (5.4 KB)

2 Likes