Trixter
24th October 2006, 01:57
I'm assembling a 3 hour video using avisynth, and this is the syntax I'm using:
AviSource("NTSC_megademo.avi") + \
AviSource("NTSC_MentalHangover.avi") + \
AviSource("NTSC_Enigma.avi") + \
AviSource("NTSC_Voyage.avi") + \
AviSource("NTSC_Hardwired.avi") + \
AviSource("NTSC_HumanTarget.avi") + \
...etc., for a total of 30 clips joined together. However, I just learned that I need to trim the last frame from only six of the 30 clips. The lengths of the clips are not known (meaning, I don't have the exact length in frames written down for all the clips, but I would assume that's something Avisynth can gather).
I know which clips need the last frame trimmed off, but I can't get it to work -- I've been messing around with trim, like "AviSource("NTSC_Voyage.avi").trim()", but I'm not getting the results I was expecting -- for example, "0" is a shortcut to "end of file" but is there some way to tell it "length-1" or something?
Can anyone advise me on the proper way to accomplish this?
AviSource("NTSC_megademo.avi") + \
AviSource("NTSC_MentalHangover.avi") + \
AviSource("NTSC_Enigma.avi") + \
AviSource("NTSC_Voyage.avi") + \
AviSource("NTSC_Hardwired.avi") + \
AviSource("NTSC_HumanTarget.avi") + \
...etc., for a total of 30 clips joined together. However, I just learned that I need to trim the last frame from only six of the 30 clips. The lengths of the clips are not known (meaning, I don't have the exact length in frames written down for all the clips, but I would assume that's something Avisynth can gather).
I know which clips need the last frame trimmed off, but I can't get it to work -- I've been messing around with trim, like "AviSource("NTSC_Voyage.avi").trim()", but I'm not getting the results I was expecting -- for example, "0" is a shortcut to "end of file" but is there some way to tell it "length-1" or something?
Can anyone advise me on the proper way to accomplish this?