VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Oct 2009
    Location
    United States
    Search Comp PM
    Hi,

    I need to programatically join a couple avi files together with a script.

    The way I am doing it now is by using a jobs script and passing it to the command line virtualdubmod. This produces an error saying that "The audio streams have different sampling rates".

    However, in the virtualdubmod gui, if I append the same files, it all works out groovy.

    Is there something I need to add to the jobs script? Maybe I could use an avisynth script?

    Thanks
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    In Avisynth you can try something like:

    Code:
    AVISource("video1.avi") ++AVISource("video2.avi").SSRC(48000,false)
    This assumes video1 has a sampling rate of 48000 and you want to adjust video2 to be the same.
    SSRC doesn't work for all rates, but when it does it's the best method.

    Otherwise you can use ResampleAudio(48000) which works in all cases.

    Then you can open the AVS in VirtualDub and save to a new AVI.

    This will reencode all the video though.
    If you want to avoid that you would have to directstreamcopy the video and filter the audio.
    Quote Quote  



Similar Threads

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