Log in

View Full Version : script help


Naked Misty
24th May 2003, 16:55
I would like some help with the following script. It looks simple but I've tried just about everthing I could think of. Here is whats going on, source is 24fps with a total of 1400 frames. Can select odd or even which cuts it down to 12 fps. Duplicate the rest of the frames so there is a total of 1400 again. Two exact copys of every frame, which has us back to 24fps.

AVISource("I:\raider.avi")
SelectODD
#SelectEven
DuplicateFrame(0)
DuplicateFrame(2)
DuplicateFrame(4)
DuplicateFrame(6)
AssumeFPS(24.976)

What I would like to do is automate the DuplicateFrame function so I don't have to enter it 1400 times. Any ideas? Maybe there is a plugin which does this? I'm just doing this for some testing, to see how the clip looks and how it compresses.

Guest
24th May 2003, 19:11
That's easy:

Interleave(clip, clip)

Naked Misty
25th May 2003, 03:17
Thanks neuron2 for giving me a push in the right direction. I was totaly lost, with some fine tuning I was able to get it working. The script now looks like this.

AVISource("C:\raider.avi")
SelectOdd
#SelectEven
A=SelectEvery(4,0,1,2,3)
B=SelectEvery(4,0,1,2,3)
Interleave(A,B)
AssumeFPS(24.976)

Guest
25th May 2003, 03:26
Originally posted by Naked Misty
Thanks neuron2 for giving me a push in the right direction. I was totaly lost, with some fine tuning I was able to get it working. The script now looks like this.

AVISource("C:\raider.avi")
SelectOdd
#SelectEven
A=SelectEvery(4,0,1,2,3)
B=SelectEvery(4,0,1,2,3)
Interleave(A,B)
AssumeFPS(24.976) Simpler is:

AVISource("C:\raider.avi")
SelectOdd
#SelectEven
A=SelectEvery(4,0,1,2,3)
Interleave(A,A)
AssumeFPS(24.976)