Mr_Frenillo
10th November 2005, 17:35
:helpful: Hi, I have a problem with a function of avisynth...
The problem is this: I need a remove the frames 10515 to 10529 so i used this function: Trim(0,10515)+Trim(10529,0) and its result all good but the audio is wrong because modify the video frames, then use the option 'false' in the third parameter of the function like saw in the description of the url.
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)
But this cause error when i try to open the script with virtualdubmod.
Thanks in advance.
The problem is this: I need a remove the frames 10515 to 10529 so i used this function: Trim(0,10515)+Trim(10529,0) and its result all good but the audio is wrong because modify the video frames, then use the option 'false' in the third parameter of the function like saw in the description of the url.
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)
But this cause error when i try to open the script with virtualdubmod.
Thanks in advance.