I’m trying to overlay an image on a video, and add subtle rotating effects for that image, left, right, left right, and so on. (see pictures) The rotation works, however the edges are always very jagged and bad quality.
Is there a way to improve my filters, or is there a better approach that I can use, without jagged edges?
This works, overlays the image.png and applies to rotating effect:
ffmpeg -loop 1 -i image.png -i video.mp4 -t 10 -filter_complex "[0:v]scale=720:720:flags=lanczos,fps=25,format=rgba,rotate=0.05*sin(2*PI*t/4):c=black@0:ow=round(iw*1.5):oh=round(ih*1.5)[rotated];[1:v][rotated]overlay=(W-w)/2:(H-h)/2:shortest=1" -c:v libx264 -crf 16 -preset veryslow -c:a copy -y output.mp4
But the edges turn out to be very jagged: