TransAll

From Avisynth wiki
Revision as of 00:23, 11 October 2015 by Raffriff42 (Talk | contribs)

Jump to: navigation, search


Abstract
Author V.C.Mohan
Version 1.0.0.0.0
Download 2.5.8 versionTransAll 2.6.0 alpha5 version URL -->TransAll
Category External filters
License GPLv2
Discussion Announced TransAll plugin


Contents

Description

During editing of a video, at scene changes or at splice a smooth transition of about 28 types can be used. A full description is available here.

Requirements

* color format not available in AviSynth 2.5.8.


"cc[overlap]i[[transition specific parameters]*"

Syntax and Parameters

Trans**** (clip "clip1", clip "clip2", int "overlap", transition specific parameters)
clip clip1
First input clip1.
clip clip2
Second input clip2.
int overlap
Number of overlapping frames.
transition specific parameter(s):
see particular effect description


List of Available Transitions

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, opening 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 can 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 circular disks. 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.
TransPeel
Left (first) clip rolls and optionally pulls out revealing Right clip. The roll is given a center shading if shade is a positive number, or edges shaded more if shade is a negative number. If shade is zero no shading is done. If pull is true the roll remains stationary and image is pulled into the roll. Otherwise the roll moves in any of the four (east, west, north, south) directions.
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.
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 and merging 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.
TransSlantRollIn
Right (second) clip rolls in along diagonals as a carpet over the Left(First)clip, masking it. Roll diameter, style of shading and the direction (up down, left or right) of rolling are the parameters that can be specified.
TransSlantRollOut
Left (first) clip rolls out along the diagonals as a carpet over the Right (second) clip revealing it. Roll diameter, style of shading and the direction (up down, left or right) of rolling are the parameters that can be specified.
TransSlantWipe
Right (second) clip wipes over the Left(First)clip along the diagonal in the direction specified.
TransSlideIn
Right (second) clip slides in over Left clip. If center is selected then left clip disappears towards the center of Right clip shrinking in all directions. Any of 8 directions or center can be opted.
TransSlideOut
Left clip slides out in the selected direction revealing Right clip. If center is opted, then the right clip gradually emerges out from frame center.
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 possible four directions.


Examples

## This is some example code to remove noise from an image.
imagereader("C:\avi_plugins\varianslim\theoin.jpg", end = 10)
converttoyv16()
Trans.....(clip,clip2,100,.....)
## 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)




Back to External Filters

Personal tools