TransAll


Author V. C. Mohan
Date Sep 2015
EMail: mohanvc

Donations to : V.C.Mohan,
401 Gulmarg Enclave,
Plot 65 Srinagar Colony,
Hyderabad 500073, India

The transitions plug-in require two clips having equal frame width, height, pitch, color format. and similar Audio formats. The scene will gradually transform from the Left Clip to the Right Clip during the overlap of the clips. Audio of the Left clip fades out while of the Right fades in during transition. (24 bit audio is not accepted).. Brief description of all the 26 functions within this plugin is given in the Synopsis. Around 150 distinct transitions can be created with these functions. In the detailed descriptions typical images seen during transition are depicted.

Place the TransAll.dll in the Avisynth plugin folder (2.5+ version) . A LoadPlugin call will be needed if the plugin is put in any other folder. As there are many functions in this plugin and Avisynth has a limit on autoloading, it may be preferable to keep this plugin in a different folder and invoke loadplugin. All parameters excepting input clips and overlap frames, have default values.


A sample script may look like this :

#LoadPlugIn("C:\............\TransAll.dll")
Left=avisource("C:\...........\xxxxx.avi")
Right=avisource("C:\...........\yyyyy.avi")
#any desired transition call in place of TransSprite below
TransSprite(Left,Right,100,"left")
Copy of my test script to check most of the functions is after synopsis page.

Avisynth version supported all color formats are accepted


Synopsis of TransAll plugin for Avisynth

TransAccord: Left Clip opens out revealing the Right Clip or the Right Clip closes over the Left Clip in an Accordion Type folding. Single or Twin sections, openjng or closing, vertical or horizontal direction are the options.

TransBubbles:Bubbles of Right Clip randomly move on to Left Clip and lock into position.

TransCentral: Right (second) clip emerges from left clip or left clip disappears into Right clip. While emerging or disappearing the frame is resized to fit and or rotated by desired number of turns clockwise or counterclock wise.

TransCrumple: This function crumples or fanfolds (as one does with paper) Left Clip over the Right Clip thus revealing Right Clip or uncrumples (unfolds) Right Clip over Left Clip thus masking Left Clip.

TransDisco: Right (second) clip emerges over the Left(First)clip or the Left Clip disappears into Right Clip as circular rotating Disks during transition. Radius of discs, Emerge or disappear and number of revolutions and direction of rotation are options.

TransFlipPage: Left (first) clip is flipped either left or right or up or down as viewing in an album revealing Right Clip

TransFlipTurn: Right Clip (the second Clip) emerges flipping vertically and horizontally and rotating while gradually replacing the Left Clip. The number of times to flip horizontally, vertically, number of turns during effect, clock or anticlockwise are other parameters. Vertical and horizontal flips acan be considered as rotations about x and y axis, while turning is around z axis and therefore this is a 3d rotation transition.

TransFunnel: This function funnels out(wraps around a funnel shape) the Left Clip (the First Clip) and reveals the Right(the second) Clip while moving in any of the 4 (up down, left or right) directions.

TransMarbles: Over Left Frame, Right Frame appears as gradually enlarging circulardisks. Magnification in the disks produces the effect of viewing through glass marble. If drop is true the magnification in the discs vary from center to edges, otherwise remain constant through. Radius of discs, magnification and whether drop effect is required can be specified.

TransPaint: This function, from pieces of Right Clip frame, builds a fence or a brick wall or paint with brush strokes or draws rings over left clip and completes the build by the end of transition. May be TransBuild would be a more appropriate name. The style of build can be specified.

TransPush: Right Clip pushes out the Left Clip in any of the four (up down, left or right) direction.

TransRipple: A gradually increasing water ripple covers fully the Left Clip during 1/3 of transition (overlap) length. Thereafter the Right Clip emerges in the center as a growing Ripple fully covering frame by 2/3 of overlap length. This ripple then subsides (withdraws) revealing the Right Clip. The wave length lambda and wave amplitude can be specified.

TransRipples: Gradually increasing two water ripples cover fully the Left Clip during 1/3 of transition (overlap) length. Thereafter the Right Clip emerges in 2 ripples from opposite sides or positions and then the ripples subside. lambda and wave amplitude besides number and location of ripples can be specified.

TransRoll. Left (first) clip rolls out revealing Right Clip, or Right clip Rolls in masking out Left Clip.

TransScratch: Right (second) clip gradually is revealed by scratching the left Clip image, in a desired style similar to scratch cards. Falling rain, tv noise, water fountain, laser beams, dust storm, O Rings, horizontal lines, vertical lines are the styles currently available.

TransShuffle: Left (first) clip moves out on top, while Right Clip moves from below in opposite direction halfway, then Right clip moves back to the top position while left clip slides under in opposite direction resembling movement of shuffling of cards. Four directions (up down, left or right) of shuffling are possible.

TransSlide: Right (second) clip slides in over Left Clip or left clip slides out. If center is selected then left clip disappears towards the center of Right Clip shrinking in all directions or right emerges from center of left clip. Any of 8 directions or center can be opted.

TransSprite: Right (second) clip squeezes out left clip thereby appearing like a rotating sprite, exhibiting different faces. Movement can be specified as any of four possible directions.

TransSwing: Right (second) clip swings in or the left clip swings out as doors hinged at corners, thereby fully revealing or assembling the Right Clip. The number of doors can be one (single door attached at the selected corner swings out or in), two (twin doors hinged at opposite corners swing) and four (4 doors each at a corner swing).

TransSwirl: A gradually increasing swirl that covers fully the Left Clip by 1/3 overlap length is created. Thereafter the Right Clip emerges in the center as a growing Swirl fully covering frame by 2/3 overlap length. This Swirl then subsides (withdraws) over the Right Clip thus revealing it. The swirling can be clockwise or anticlockwise. The coarseness of depicting swirl can be specified.

TransTwinDoors: Twin vertical or Horizontal doors made out of Left Frame open or those made out of Right Frame close revealing Right Frame.

TransVenetianBlinds: In this transition vertical or Horizontal slats open (as Venetian blinds do) revealing Right Frame. Instead of linear blinds, checks or diamond pattern can also be opted. Pattern width can also be specified.

TransWeave: Interleaving together thin strips of Right frame over the left frame the transition occurs. The interleaving styles options are horizontal, vertical, jigsaw puzzle and basket weave.

TransWipe: Right Frame wipes away Left Frame in any of the 8 directions.



Script to test most of the functions at one go:-
Loadplugin call required only if TransAll.dll is not in Avisynth
 plugins folder

#loadPlugin ("------\TransAll.dll")
#for avisynth+ uncomment next line and a line at end of this script
#SetFilterMTMode("DEFAULT_MT_MODE",2)
time = -1
#time = 120
fps = 30
colorbars().trim(0,30)
Lanczosresize(600,400)

#convertToRGB24(last)
#convertToRGB32(last)
ConvertToYV16(last)
#ConvertToYUY2(last)
c=last
right = turnleft(c).turnleft()
right = invert(right)
audio = Tone (length= 1,frequency = 1000)
right=audiodub(right,audio)
audio = Tone (length= 1,frequency = 100)
left = audiodub(last,audio)

TransAccord(left,right,time,"vert",false,true)
last ++ TransAccord(left,right,time,"vert",false,false)
last ++ TransAccord(left,right,time,"hor",true,true)
last ++ TransAccord(left,right,time,"hor",true,false)
last ++ TransAccord(left,right,time,"hor",false,true)
last ++ TransAccord(left,right,time,"hor",false,false)
TA = last.subtitle("Trans A c c o r d",text_color=0,align=5,size=32)

TransBubbles(left,right,time,false)
last ++ TransBubbles(left,right,time,true)
TB = last.subtitle("Trans B U B B L E S",text_color=0,align=5,size=32)

TransCentral(left,right,time,false,false,-2)
last ++ TransCentral(left,right,time,false,true,2)	# check RGB32
Last ++ TransCentral(left,right,time,true,false,-2)
Last ++ TransCentral(left,right,time,true,true,2)	#YUY2 RGB32
TCN = last.subtitle("Trans C E N T R A L",text_color=0,align=5,size=32)

TransCrumple(left,right,time,"fan",false).subtitle("Trans C R U M P L E fan unfold",text_color=0,align=5,size=32)
last ++ TransCrumple(left,right,time,"fan",true).subtitle("Trans C R U M P L E fan fold",text_color=0,align=5,size=32)

TCL = last #.subtitle("Trans C R U M P L E",text_color=0,align=5,size=32)

transDisco(left,Right,time,40,2,false)
last ++ transDisco(left,Right,time,20,2,false)
last ++ transDisco(left,Right,time,40,2,true)
last ++ transDisco(left,Right,time,20,-2,true)
TDS = last.subtitle("Trans D I S C O",text_color=0,align=5,size=32)

TransDoor(left,Right,time,true,true)
last ++ TransDoor(left,Right,time,true,false)
last ++ TransDoor(left,Right,time,false,true)
last ++ TransDoor(left,Right,time,false,false)
TDO = last.subtitle("Trans D O O R",text_color=0,align=5,size=32)

TransFlipPage(left,right,time,"up")
last ++ TransFlipPage(left,right,time,"left")
TFP = last.subtitle("Trans F L I P P A G E",text_color=0,align=5,size=32)

TransFlipTurn(left,right,time,0,6,3)
last ++ TransFlipTurn(left,right,time,6,0,3)
last ++ TransFlipTurn(left,right,time,2,4,3)
Last ++ TransFlipTurn(left,right,time,4,2,-3)
TFT = last.subtitle("Trans F L I P T U R N",text_color=0,align=5,size=32)
part1 = ( TA ++ TB++TCN++TCL++TDS++TDO++TFP++TFT)

TransFunnel(left,right,time,"right")
Last ++ TransFunnel(left,right,time,"left")
Last ++ TransFunnel(left,right,time,"up")
Last ++ TransFunnel(left,right,time,"down")
TFN = last.subtitle("Trans F U N N E L",text_color=0,align=5,size=32)

TransMarbles(left,right,time,60, 16,true)
last ++ TransMarbles(left,right,time,60,16, false)
last ++ TransMarbles(left,right,time,32,20,true)
TMB = last.subtitle("Trans M A R B L E S",text_color=0,align=5,size=32)

TransPaint(left,right,time,"bricks")
last ++ TransPaint(left,right,time,"fence")
last ++ TransPaint(left,right,time,"rings")
last ++ TransPaint(left,right,time,"paint")
TPN = last.subtitle("Trans P A I N T",text_color=0,align=5,size=32)

TransPush(left, right, time,"left")
last ++ TransPush(left, right, time,"right")
last ++ TransPush(left, right, time,"up")
last ++ TransPush(left, right, time,"down")
TPS = last.subtitle("Trans P U S H",text_color=0,align=5,size=32) 

TransRipple(left,right,time,lambda=32)
last ++ TransRipple(left,right,time,lambda=64)
TRP = last.subtitle("Trans R I P P L E",text_color=0,align=5,size=32)

TransRipples(left,right,time,origin = "se",  lambda =64)
last ++ TransRipples(left,right,time,origin = "ne", lambda = 48)
last ++ TransRipples(left,right,time,origin = "nw" )
last ++ TransRipples(left,right,time,origin = "sw")
last ++ TransRipples(left,right,time, origin = "north")
last ++ TransRipples(left,right,time, origin = "south")
last ++ TransRipples(left,right,time, origin = "west")
last ++ TransRipples(left,right,time, origin = "east")
TRPS = subtitle("Trans R I P P L E S",text_color=0,align=5,size=32)

TransRoll(Left, Right, time,dir = 1, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 1, rollin = false)
last ++ TransRoll(Left, Right, time,dir = 2, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 2, rollin = false)
last ++ TransRoll(Left, Right, time,dir = 3, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 3, rollin = false)
last ++ TransRoll(Left, Right, time,dir = 4, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 4, rollin = false)
last ++ TransRoll(Left, Right, time,dir = 5, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 5, rollin = false)
last ++ TransRoll(Left, Right, time,dir = 6, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 6, rollin = false)
last ++ TransRoll(Left, Right, time,dir = 7, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 7, rollin = false)
last ++ TransRoll(Left, Right, time,dir = 8, rollin = true)
last ++ TransRoll(Left, Right, time,dir = 8, rollin = false)
TROL = last.subtitle("Trans R O L L",text_color=0,align=5,size=32)

TransScratch(left,right,time, style = "rain")
last ++ TransScratch(left,right,time, style = "dust")
last ++ TransScratch(left,right,time, style = "tv")
last ++ TransScratch(left,right,time, style = "hline")
last ++ TransScratch(left,right,time, style = "vline")
last ++ TransScratch(left,right,time, style = "laser")
last ++ TransScratch(left,right,time, style = "fount")
TSCR = last.subtitle("Trans S C R A T C H",text_color=0,align=5,size=32)

PART2 = TFN ++ TMB ++ TPN ++ TPS  ++ TRP ++ TRPS++ TROL ++ TSCR 

TransShuffle(left,right,time,"left")
last ++  TransShuffle(left,right,time,"right")
last ++ TransShuffle(left,right,time,"up")
last ++ TransShuffle(left,right,time,"down")
TSF = last.subtitle("Trans S H U F F L E",text_color=0,align=5,size=32)


Transslide(Left, Right, time,dir = 1, slidein = true)
last ++ Transslide(Left, Right, time,dir = 1, slidein = false)
last ++ Transslide(Left, Right, time,dir = 2, slidein = true)
last ++ Transslide(Left, Right, time,dir = 2, slidein = false)
last ++ Transslide(Left, Right, time,dir = 3, slidein = true)
last ++ Transslide(Left, Right, time,dir = 3, slidein = false)
last ++ Transslide(Left, Right, time,dir = 4, slidein = true)
last ++ Transslide(Left, Right, time,dir = 4, slidein = false)
last ++ Transslide(Left, Right, time,dir = 5, slidein = true)
last ++ Transslide(Left, Right, time,dir = 5, slidein = false)
last ++ Transslide(Left, Right, time,dir = 6, slidein = true)
last ++ Transslide(Left, Right, time,dir = 6, slidein = false)
last ++ Transslide(Left, Right, time,dir = 7, slidein = true)
last ++ Transslide(Left, Right, time,dir = 7, slidein = false)
last ++ Transslide(Left, Right, time,dir = 8, slidein = true)
last ++ Transslide(Left, Right, time,dir = 8, slidein = false)
last ++ Transslide(Left, Right, time,dir = 0, slidein = true)
last ++ Transslide(Left, Right, time,dir = 0, slidein = false)
TSI = LAST.subtitle("Trans S L I D E ",text_color=0,align=5,size=32)


TransSprite(left,right,time,"left")
last ++ TransSprite(left,right,time,"right")
last ++ TransSprite(left,right,time,"up")
last ++ TransSprite(left,right,time,"down")
TSP = LAST.subtitle("Trans S P R I T E",text_color=0,align=5,size=32)

PART3 = TSF ++ TSW ++ TSI ++  TSP

TransSwing(left,right,time,true,1,1)
last ++ TransSwing(left,right,time,true,1,2)
last ++ TransSwing(left,right,time,true,1,3)
last ++ TransSwing(left,right,time,true,1,4)
last ++ TransSwing(left,right,time,true,2,1)
last ++ TransSwing(left,right,time,true,2,2)
last ++ TransSwing(left,right,time,true,2,3)
last ++ TransSwing(left,right,time,true,2,4)
last ++ TransSwing(left,right,time,true,4,1)
last ++ TransSwing(left,right,time,true,4,2)
last ++ TransSwing(left,right,time,true,4,3)
last ++ TransSwing(left,right,time,true,4,4)
last ++ TransSwing(left,right,time,false,1,1)
last ++ TransSwing(left,right,time,false,1,2)
last ++ TransSwing(left,right,time,false,1,3)
last ++ TransSwing(left,right,time,false,1,4)
last ++ TransSwing(left,right,time,false,2,1)
last ++ TransSwing(left,right,time,false,2,2)
last ++ TransSwing(left,right,time,false,2,3)
last ++ TransSwing(left,right,time,false,2,4)
last ++ TransSwing(left,right,time,false,4,1)
last ++ TransSwing(left,right,time,false,4,2)
last ++ TransSwing(left,right,time,false,4,3)
last ++ TransSwing(left,right,time,false,4,4)
TSWG = LAST.subtitle("Trans S W I N G",text_color=0,align=5,size=32)

TransSwirl(left,right,time,"anti",4)
last ++ TransSwirl(left,right,time,"clock",8)
last ++ TransSwirl(left,right,time,"anti",12)
last ++ TransSwirl(left,right,time,"clock",16)
last ++ TransSwirl(left,right,time,"anti",20)
last ++ TransSwirl(left,right,time,"clock",24)
TSWR = last.subtitle("Trans S W I R L",text_color=0,align=5,size=32)

TransTwinDoors(left,right,time,false,true)
last ++ TransTwinDoors(left,right,time,false,false)
last ++ TransTwinDoors(left,right,time,true,true)
last ++ TransTwinDoors(left,right,time,true,false)
T2D = last.subtitle("Trans T W I N D O O R S",text_color=0,align=5,size=32)

TransVenetianblinds(left,right,time,16,"diam")
last ++ TransVenetianblinds(left,right,time,20,"cheq")
last ++ TransVenetianblinds(left,right,time,20,"hor")
last ++ TransVenetianblinds(left,right,time,20,"vert")
TVB = last.subtitle("Trans V E N E T I A N B L I N D S",text_color=0,align=5,size=32)

TransWeave(left,right,time,"jigsaw")
last ++ TransWeave(left,right,time,"vert")
last ++ TransWeave(left,right,time,"hor")
last ++ TransWeave(left,right,time,"weave")
TWV= last.subtitle("Trans W E A V E",text_color=0,align=5,size=32)

TransWipe(left,right,time,1)
last ++ TransWipe(left,right,time,2)
last ++ TransWipe(left,right,time,3)
last ++ TransWipe(left,right,time,4)
last ++ TransWipe(left,right,time,5)
last ++ TransWipe(left,right,time,6)
last ++ TransWipe(left,right,time,7)
last ++ TransWipe(left,right,time,8)
TWP = LAST.subtitle("Trans W I P E",text_color=0,align=5,size=32)


PART4 = TSWG ++ TSWR ++ T2D ++ TVB ++ TWV ++ TWP

all = PART1 ++ PART2 ++ PART3 ++ PART4
return (all)
#for avisynth+ delete comment
#prefetch(4)




To my index page To Avisynth