View Full Version : Mute a 2 second part of a video??


BlockABoots
16th July 2013, 23:56
Im want to mute a 2 second part of a video. The script im using in AvsP is...

video=AVISource("F:\Video Captures\amarec(20130716-2155).avi")
video1=trim(video,0,2006) + trim (video,50246,66406) + trim(video,66407,69819) + trim (video,85180,0)
video2=lanczos4resize(video1,1920,1080)
video3=fadein(video2,25).fadeout(50)
return video3
ConvertToYV12()

I have edited the video and trimmed out all the bits i dont want. The part i want to mute is at frame 66406 to 66482, i know about the command amplify but if i add that to the end of the '+ trim (video,50246,66406)' part of the script it appears to mute everything between 50246 and 66406. Any ideas??

IanB
17th July 2013, 03:15
video=AVISource("F:\Video Captures\amarec(20130716-2155).avi")
video1=trim(video,0,2006) + trim (video,50246,66405) \
+ Trim(video, 66406, 66482).Amplify(0.0) \
+ trim(video,66483,69819) + trim (video,85180,0)
video2=lanczos4resize(video1,1920,1080)
video3=fadein(video2,25).fadeout(50)
return video3

BlockABoots
17th July 2013, 18:15
Thanks!

So the script to mute a section of frames is

\ + Trim(video, 66406, 66482).Amplify(0.0) \

so the frames between 66406 and 66482 will be muted?

StainlessS
17th July 2013, 22:19
Sounds about right.
When you say you want half to be mute, you really need to define half (or 2nd part) a bit better. (you have done same before).