From Avisynth wiki
Jump to: navigation, search
Author Fizick
Version v1.6.0
Category Rotation
License GPLv2
Discussion Doom9 Thread



Rotate plugin makes frames rotation or shear on any given angle.

It may be used for perspective correction of amateur films or for special effect. AviSynth internal functions TurnLeft and TurnRight can rotate image on 90 degrees only. The Rotate plugin is faster than Zoom plugin (by WarpEnterprises) and EffectRotation (from EffectsMany plugin by vcmohan) and produces good quality images (IMO). Implemented Alan Paeth's method of bitmap rotation by means of 3 shears. Pixel (linear) interpolation is used at every shear. Size (scale) and aspect ratio of source picture are preserved.


*** vcredist_x86.exe is required for Rotate-x86
*** vcredist_x64.exe is required for Rotate-x64

Syntax and Parameters

Rotate is rotation, HShear is horizontal shear, VShear is vertical shear.

Rotate (clip, float "angle", int "color", int "start", int "end", float "endangle", int "width", int "height", float "aspect")
HShear (clip, float "angle", int "color", int "start", int "end", float "endangle", int "width", int "height", float "aspect")
VShear (clip, float "angle", int "color", int "start", int "end", float "endangle", int "width", int "height", float "aspect")

clip   =
Input clip.

float  angel = 0.0
angle is rotation angle in degrees clock wise. Default 0.

int  color = 0
color is background color of part of clip. Integer or hex or global color constant like color_gray (see colors_rgb.avsi). Default 0 (color_black)

int  start = 0
start is first frame number to rotate. Default 0.

int  end = -1
end is last frame number to rotate. Default is -1 (as final frame).

int  endangle =
endangle is rotation angle of end frame. Default is same as angle. If not the same, then rotation angle of intermediate frames is linear function.

int  width = 0
int  height = 0
width and height are sizes of destination output frame. Default 0 is to be equal to input clip size.

float  aspect = 1.0
aspect is pixel aspect ratio. Default 1.0 (square pixel).


1 degree rotation:



Version      Date            Changes
v1.6 2020/06/27 - Mods by StainlessS, compile for avs 2.58 and 2.60 x86 and x64. v1.5 2016/03/11 - Added support for differently subsampled planar formats. - Added parameter "aspect". - Changed processing of big angles (about 90) to be compatible with aspect, but it is more blurred now. v1.4 2016/02/28 - Updated to vc2005. Upgrade to avisynth 2.6 (all planar formats).

Archived Downloads

Version Download Mirror
v1.6 Rotate_25&

External Links

Back to External Filters

Personal tools