PDA

View Full Version : Help using the TransAll plugin


jjones3535a
2nd July 2009, 01:51
Hi,

I'm using the wonderful TransAll plugin to create transitions between clips, but I'm having a bit of an issue.

I have 2 clips (all the same frame rate, height, width, color format, etc) that I'd like to have a transition placed in between each. Each clip is also 30 seconds in length and has a frame rate of 5 fps.

I'm using this code:
Clip1 = DirectShowSource("Clip_1.avi")
Clip2 = DirectShowSource("Clip_2.avi")
aa=TransAccord(Clip1,Clip2,15,"hor")
aa

The transition occurs at about 27 seconds, however the total duration is 57 seconds (instead of 60 seconds). It appears that about 3 seconds of Clip2 starts early, while Clip1 is still playing (which accounts for the shorter duration of the total video).

So, how do I call the Transition properly and have the full video duration play?

Also, I tried using this line instead:
aa=TransAccord(Clip1,Clip2,2,"hor")
--> (the 3rd argument is a 2 instead of 15) and this gives the proper duration of the video, but the transition effect is very quick and not really noticeable.

Any help would be greatly appreciated.

Thanks.

Gavino
2nd July 2009, 10:25
This is normal behaviour for transitions (including Avisynth's built-in Dissolve). The resulting length will be shorter than the sum of the two clips as there is an overlap where the transition occurs.

You are using an overlap of 15 frames, which equates to 3 seconds at 5fps.
The last 3 seconds of clip1 are mixed with the first 3 seconds of clip2.
What did you expect/want to happen?

jjones3535a
2nd July 2009, 16:06
Thanks for the response. I understand the notion of overlapping clips to visually create a transition effect (one clip into another). So that makes sense. I guess that I was surprised that using a transition actually shortened the overall video.

Thanks for your help.

JohannesL
31st July 2009, 01:12
As a late side note, transitions will look bad at 5fps. I suggest you use this:

Clip1 = DirectShowSource("Clip_1.avi").ChangeFPS(15)
Clip2 = DirectShowSource("Clip_2.avi").ChangeFPS(15)
TransAccord(Clip1,Clip2,45,"hor")