Log in

View Full Version : script for multiple video sources with different filters


nicco
10th May 2004, 17:01
I have two video source an I want to align them and apply different filters to eachone

I do the following avs script:


a = AVISource("E:\prova.avi",audio=false,pixel_type="yuy2").Tweak(hue=-174,sat=7,bright=-248)

b = AVISource("E:\prova.avi",audio=false,pixel_type="yuy2")


UnalignedSplice(a,b)

So I can apply tweak only to "a".
It works, but I have to apply alot of filters with ApplyRange function to "a" so dot after dot after dot my string become very long!
Is there another way to do this?

Leak
10th May 2004, 18:21
Originally posted by nicco
It works, but I have to apply alot of filters with ApplyRange function to "a" so dot after dot after dot my string become very long!
Is there another way to do this?

Of course there is... :)


a = AVISource("E:\prova.avi",audio=false,pixel_type="yuy2")
a = a.Tweak(hue=-174,sat=7,bright=-248)
a = a.<insert next filter here>


That should fix it.

np: Telefon Tel Aviv - Nothing Is Worth Losing That (Map Of What Is Effortless)

nicco
10th May 2004, 18:54
Thanks a lot, I'll try it:D

nicco
10th May 2004, 20:02
By the way I thought it can work too:

AVISource("clip a")+AVISource("clip b")
ApplyRange(start_frame,end_frame,"filtername",args)
ApplyRange(start_frame,end_frame,"filtername",args)
ApplyRange(start_frame,end_frame,"filtername",args)
#and so on..

Isn't it?

Leak
10th May 2004, 20:19
Originally posted by nicco
By the way I thought it can work too:

AVISource("clip a")+AVISource("clip b")
ApplyRange(start_frame,end_frame,"filtername",args)
ApplyRange(start_frame,end_frame,"filtername",args)
ApplyRange(start_frame,end_frame,"filtername",args)
#and so on..

Isn't it?

Sure. I just thought you wanted to apply the filters before splicing the parts together...

np: Richard Devine - Flask (Asect : Dsect)