I need to produce timelapse video from a webcam that was mounted at a slightly off-vertical angle, and I need to rotate the image about 3 degrees counter-clockwise. (The webcam is in a virtually inaccessible location and due to weather may get kicked askew eventually even if we did fix the angle. So I need to fix it in software.)
I have had success using ImageMagick's convert tool with the command line option:
convert infile.jpg -distort ScaleRotateTranslate 750,50,-3 outfile.jpg
but of course it is painfully slow to convert. I can do absolutely everything else I need to do (cropping and overlaying a logo on the image) using FFmpeg filters, but there doesn't seem to be a filter that allows rotating an image by an arbitrary angle, only by 90 or 180 degrees.
Perhaps there is some sort of generic linear transformation filter that can do this?
Thanks for any help.