I have an image clip which I am applying a rotate to
image_clp_rotated = image_clip.fx(mp.vfx.rotate, rotate_emoji, expand=False)
The method
def rotate_emoji(t):
"""Calculates the rotation angle for each frame."""
if int(t) % 3 == 0:
return -20
elif int(t) % 2 == 0:
return 20
else:
return 0
This is the image before rotate is applied
This is the image after it has been rotated.
Why is the circle effected like this?
Note:
Image clip is a CompositeVideoClip of the circle and the emoji clips.
image_clip= CompositeVideoClip([circle_image_clp, emoji_image_clp])