VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. I need to mute the audio in a portion of an avi video file using AviSynth. I have split out the portion to be muted using the trim() function. If I use the KillAudio() function on the clip I cannot concatenate the clips back together because I get an error.

    Can someone out there tell me how to mute the audio in a range of frames using AviSynth?

    Thanks

    Steven
    Quote Quote  
  2. You may not be able to join clips that have dissimilar properties. You may need to create a silent wave file for the required duration using your favorite sound editor. Use AudioDub() and join the clips.
    Quote Quote  
  3. I got it. I split the audio from the video as a wav file using VirtualDub. I brought the audio file into CoolEdit and made it a wav file of nothing but silence. I then used the AviSynth function AudioDub() to put the muted wav file back with the video.

    Worked like a champ.

    Thanks
    Quote Quote  
  4. I know this is a really old thread and sorry for the revive, but I was looking for a solution myself and stumbled across it. I figured I may as well post an easier method.

    I was looping a segment and needed to kill the audio because it sounded distorted and generally horrible. The problem being how can I kill the sound without killing the audio, thus keeping files compatible for splice and other functions? Turns out it can all be done completely from within an avisynth with a little ingenuity. Here's a simple example:
    Code:
    vid = avisource("file.avi")
    v = vid.trim(300,500)
    b = vid.blankclip()
    v = audiodub(v,b)
    return vid.trim(0,299) ++ v ++ vid.trim(501,0)
    Blank clips receive blank audio that has the same properties as the passed clip. This way I've killed the sound, but not the audio and can splice them back together.

    If you're having trouble because audiodub is choosing the incorrect clips (blank for vid, other for sound), use audiodubex.
    Quote Quote  
  5. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by Attack View Post
    I know this is a really old thread and sorry for the revive, but I was looking for a solution myself and stumbled across it. I figured I may as well post an easier method.
    Even easier:

    Code:
    Avisource("file.avi")
    Trim(0,299) ++ Trim(300,500).Amplify(0)++ Trim(501,0)
    see http://avisynth.org/mediawiki/Amplify
    Quote Quote  
  6. Awesome, thanks!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!