From Videohelp.com:
AviSynth is a powerful tool for video post-production. It provides almost unlimited ways of editing and processing videos. AviSynth works as FrameServer, providing instant and very fast editing without the need for temporary files. Video editing using scripting.
(When you have Avisynth installed) An AVS-file is direct playable in Win Mediaplayer, Mediaplayerclassic and many more. So no need for cutting.
Trim (clip, int first_frame, int last_frame)
Trim trims a video clip so that it includes only the frames first_frame through last_frame. The audio is similarly trimmed so that it stays synchronized. If you pass 0 for last_frame it means "end of clip." A negative value of last_frame returns the frames from first_frame to first_frame + (- last_frame-1). This is the only way to get the very first frame!
Trim(100,0) # delete the first 100 frames
Trim(100,-100) # is the same as trim(100,199)
Trim(0,-1) # returns only the first frame
From the documentation its not clear how multiple trim statements work together. Does each trim statement work on the output of the previous?
Say I need to EXCLUDE the following frame sequences, each line denotes one sequence to be excluded, 3 in total (yes, like comskip would detect the location of the commercials). starting frame number is 0, end frame number is unknown yet. (or must the end frame number be known to be able to write the trim statemens, if yes, assume its 40000)
1000 2000
5000 9000
20000 25000
How would the sequence of trim statements look that has the same effect?