VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. I've been reading the help file for VDubMod and I'm trying to create a batch script to make my life easier but I just can't figure it out even if my life depended on it...

    All I need to do is take a video file (e.g.: video.avi) and replace the audio with a new audio that I have.

    I'm going to start off with video.avi and newaudio.mp3 in the same folder and I want the batch file to replace audio.mp3 in video.avi with newaudio.mp3. I hope this makes sense

    It should direct stream copy both the new audio and the video.

    It sounds simple but I really can't figure this out. I normally do it manually within the program itself but this time I have 78 videos to replace audio for and it gets frustrating when you have to do that many the manual way.

    If anyone can help me out, thanks a bunch.
    Quote Quote  
  2. btw, here is what I have in the .vcf file I wrote:

    Code:
    VirtualDub.Open("video.avi");
    VirtualDub.stream[0].SetSource("newaudio.mp3");
    VirtualDub.stream[0].SetMode(0);
    VirtualDub.video.SetMode(0);
    VirtualDub.SaveAVI("newvideo.avi");
    VirtualDub.Close();
    Although, it doesn't seem to be working.

    P.S.: The audio is VBR MP3 (just in case that matters... and I have a feeling it does because whenever I do it the manual way VDubMod always asks me about it)
    Quote Quote  



Similar Threads

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