Trim
From Avisynth
Trim(clip clip, int first_frame, int last_frame [, bool pad_audio])
Trim(clip clip, int first_frame, int -num_frames [, bool pad_audio])
Trim trims a video clip so that it includes only the frames first_frame up to last_frame (first_frame and last_frame are included). The audio is similarly trimmed so that it stays synchronized. Remember AviSynth starts counting at frame 0.
pad_audio (default true) causes the audio stream to be padded to align with the video stream. Otherwise the tail of a short audio stream is left so. When last_frame=0 and pad_audio=false the end of the two streams remains independant.
Trim(100,0) # delete the first 100 frames, audio padded
# or trimmed to match the video length.
Trim(100,0,false) # delete the first 100 frames of audio and video,
# the resulting stream lengths remain independant.
Trim(100,-100) # is the same as trim(100,199)
Trim(100,199,false) # audio will be trimmed if longer but not
# padded if shorter to frame 199
Trim(0,-1) # returns only the first frame
Trim(0,100)+Trim(200,300) # returns frames 0 to 100 and 200 to 300 (i.e. removing 101 to 199)
Changes:
| v2.56 | Added pad audio. |

