Log in

View Full Version : Multiple trims not working


avinewbie
4th March 2023, 20:19
Hi folks

I am not able to get trim to work on multiple clips.
using AVPMod V 2.6.7.0
using AVSplus V 2.7.2 64 bit

script tried for testing:
video=FFVideoSource()
Trim(video, 18133,27421)ColorYUV(gain_y=74, gamma_y=90, off_y=-9).tweak(sat=10)
b=trim(video, 33478,42974) ColorYUV(gain_y=90, gamma_y=90, off_y=64).tweak(sat=9.00)
c=trim(video, 61235,74272) ColorYUV(gain_y=74, gamma_y=90, off_y=-9).tweak(sat=9)
return(last++b++c)

ISSUES:
1)
I cannot label the first trim as a=Trim(video, 18133,27421)ColorYUV(gain_y=74, gamma_y=90, off_y=-9).tweak(sat=10)
I get an error:invalid arg to function colour YUV. removing "a= " works
so how do some post get a+b+c to work? here only Last+b+c works
BUT
2)
Filtering is only working on the first script when i scroll thru the Last++b++c video in preview on AVSPMod.
Runing each script individually makes the filtering work but when joined, only the first video is filtered.

Any guidance appreciated
avinewbie

Selur
5th March 2023, 09:16
Looks like you are missing dots,..

video=FFVideoSource()
a=Trim(video, 18133,27421).ColorYUV(gain_y=74, gamma_y=90, off_y=-9).tweak(sat=10)
b=trim(video, 33478,42974).ColorYUV(gain_y=90, gamma_y=90, off_y=64).tweak(sat=9.00)
c=trim(video, 61235,74272).ColorYUV(gain_y=74, gamma_y=90, off_y=-9).tweak(sat=9)
return a++b++c

avinewbie
5th March 2023, 09:50
[QUOTE=Selur;1983980]Looks like you are missing dots,..

Hi Selur,

YEESS! that was it.
Thank you so much. I had spent all yesterday to find a solution.I suspected such a stupid error but could not see it.
Thank you for this (and for all your help in the forum)