VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    Sep 2007
    Location
    Unflushable, Turdistan
    Search Comp PM
    Using an AVS script in VDM (or VD) I'm trying to fade in/out BOTH the video and an MP3 audio stream (in VDM, I disabled the AVI file's original audio).

    However, only the video fades in/out -- not the audio. What am I doing wrong?

    Here's the script:

    AviSource(".06-06-01_18-06.00_AVS_Lanczos.avi")
    FadeIn(30)
    FadeOut(30)
    Quote Quote  
  2. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Fade only does video. There isn't a built in fader for audio in avisynth.
    Read my blog here.
    Quote Quote  
  3. Hi-

    I don't know for sure, but my educated guess says the fades will work only on WAV audio.

    Did you know you're adding 2 frames, one at the beginning and one at the end, by using Fade that way? A more efficient way to do it, and one that doesn't add any frames in case it matters to you, is this way:

    FadeIO0(30)

    Guns1inger, it works with audio:
    The sound track (if present) also fades linearly to or from silence.
    http://avisynth.org/mediawiki/FadeIO0
    Quote Quote  
  4. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Didn't drill down that far. The main index lists it as only affecting video.
    Read my blog here.
    Quote Quote  
  5. Member
    Join Date
    Sep 2007
    Location
    Unflushable, Turdistan
    Search Comp PM
    Originally Posted by manono
    I don't know for sure, but my educated guess says the fades will work only on WAV audio.

    Did you know you're adding 2 frames, one at the beginning and one at the end, by using Fade that way? A more efficient way to do it, and one that doesn't add any frames in case it matters to you, is this way:

    FadeIO0(30)

    Guns1inger, it works with audio:
    The sound track (if present) also fades linearly to or from silence.
    http://avisynth.org/mediawiki/FadeIO0
    Thx for the tip on FadeIO0() -- I've updated my AVS file accordingly.

    Is there an AVS command similar to WavSource() for MP3 (I can't find one)?
    Quote Quote  
  6. Originally Posted by hollowman
    Is there an AVS command similar to WavSource() for MP3 (I can't find one)?
    AFAIK, there's not one built in and I haven't seen a specific plug-in for it, but if you have a Direct Show codec for MP3, then it can be opened with DirectShowSource(Video = false). At that point it will be uncompressed audio and once it's AudioDub()ed with video, fadeio0 should work on it.
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  



Similar Threads

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