Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th March 2023, 20:19   #1  |  Link
avinewbie
Registered User
 
Join Date: Dec 2010
Posts: 28
Multiple trims not working

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
avinewbie is offline   Reply With Quote
Old 5th March 2023, 09:16   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Looks like you are missing dots,..
Code:
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
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 5th March 2023, 09:50   #3  |  Link
avinewbie
Registered User
 
Join Date: Dec 2010
Posts: 28
[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)
avinewbie is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.