Log in

View Full Version : Trim and trim (to the nth degree) weirdness


shredness
20th April 2003, 21:50
hey all, i'm owndering if you can explain this odd behavior/problem i am having with avisynth 2.5.1:

i am currently capturing/archiving columbo movies. i capture to a 30gb drive using avi_io with mjpeg (the captures are 1.5 hour so i can't use huffy).

using the latest vdubmod, i open the segmented avi's and use the built in editor to copy the non-commercial segments into trim statements. typical hour and a half show results in 9 segments that need to be added together. here's what my script looks like:

_______________BEGIN SCRIPT______________________

#PLUGINS_____________________________________________
LoadPlugin("C:\Program Files\Avisynth 2.5\plugins\deen.dll")

#SOURCE______________________________________________
#DEFAULT
SegmentedAvisource("F:\capture.avi")

#EDIT COMMERCIALS____________________________________
clip1 = trim(7584,15411)
clip2 = trim(18434,33808)
clip3 = trim(37617,51394)
clip4 = trim(66725,84219)
clip5 = trim(91327,93876)
clip6 = trim(100690,106937)
clip7 = trim(111181,126257)
clip8 = trim(130033,139849)
clip9 = trim(143651,155741)

#COMBINE CLIPS_______________________________________
#9 CLIPS (COLUMBO)
clip1+clip2+clip3+clip4+clip5+clip6+clip7+clip8+clip9

#FILTERS_____________________________________________
telecide()
decimate(cycle=5)
levels(10,1.0,240,0,255)
converttoyv12

#DEFAULT
crop(0,2,0,-4).deen("a3d",2,10,12).lanczosresize(480,360)

_________________END SCRIPT________________________

for some reason, after the 6th clip, avisynth gives up trimming (commercials are still in, despite the trim statements)

however, if i load the segmented avi in vdubmod and save the first and last halves of the captures as seperate files, and load them into avisynth like this:

Avisource("E:\capture_1.avi")+Avisource("E:\capture_2.avi")

i have no problems after the sixth clip.

any ideas?

kayman
21st April 2003, 22:37
that seems like alot of work for trims i do mine like this

trim(7584,15411) ++ trim(18434,33808) ++ trim(37617,51394) ++ trim(66725,84219) ++ trim(91327,93876) ++ trim(100690,106937) ++ trim(111181,126257) ++ trim(130033,139849) ++ trim(143651,155741)

ive never had 9 trims in 1 command at the most 6 , but try that and see what you get

kayman