PDA

View Full Version : Scripting for a different part


legionstar
6th May 2009, 03:54
Hi guys,

I need help with something i have never done before.

Say you have a dvd movie you want to rip. You start making script adding deinterlacement and color script, but that color script colors the whole movie through one parameter. Is there any filter on the net that can let me choose selected frames that i want different parameters for the color and still encode the whole movie. I tried the trim filter like this.

ColorMatrix(hints=true, interlaced=true, threads=0)
tfm(order=1).tdecimate()
crop( 0, 44, 0, -44)
Tweak(sat=1.1, hue=2)
LimitedSharpenFaster(strength=30)
LanczosResize(640,288) # Lanczos (Sharp)
Trim(25,50)
Tweak(sat=1.1)

but it cuts off the rest of the frames and only shows the script results for the 26 frames in between.

I hope you guys get what i am trying to do.

legionstar

TinTime
6th May 2009, 05:35
Try...

Trim(0,24) + Trim(25,50).Tweak(sat=1.1) + Trim(51,0)

If you're processing audio in the script too then this may or may not work properly - I never process audio so I'm not sure. See the AviSynth documentation for Trim and AlignedSplice / UnalignedSplice if it gives you problems.

Hope this is what you were after.

legionstar
7th May 2009, 01:59
I was not worrying about audio... But you did do my job :)

ty so much.