How do I add audio to an Xvid/LAME avi made in VDub?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Video Idio
    Junior Member
    Junior Member
    • May 2006
    • 33

    How do I add audio to an Xvid/LAME avi made in VDub?

    I am having a very hard time trying to find out how to add background audio to my Xvid/LAME videos I make in VDub. I've read this is referred to as "muxing", but have yet to find any easy to follow tutorials on it.

    Every time I try to add background audio via NanDub to the Xvid/LAME avi made in VDub, whether mp3 or wav, I get an error and it crashes NanDub with a very sarcastic "you managed to crash VirtualDub!" message.

    The best I seem to be able to do is import a wav in VDub, then the video, but can only play one or the other depending on whether I set the audio to source or wav. Saving the avi only reslts in the original audio from the video playing without the background music I try to add.

    These are captures of video games like Far Cry done via Fraps. I have been told of a few applications like Beelight, Audacity, NanDub, but don't know how to join the audio to the video
    Last edited by Video Idio; 6 Dec 2006, 11:28 PM.
  • paglamon
    Lord of Digital Video
    Lord of Digital Video
    • Aug 2005
    • 2126

    #2
    Load ur video in VD.Select VIDEO/Direct Stream Copy.In AUDIO select Full processing mode.Then browse for audio(where u have saved ur WAV audio).Select Compression(if u want any) and conversion(if needed).Then Save as AVI.
    sigpic

    ONLY MOMENTS LINGER...DEWDROPS ON A FALLEN LEAF

    Comment

    • Video Idio
      Junior Member
      Junior Member
      • May 2006
      • 33

      #3
      Originally Posted by paglamon
      Load ur video in VD.Select VIDEO/Direct Stream Copy.In AUDIO select Full processing mode.Then browse for audio(where u have saved ur WAV audio).Select Compression(if u want any) and conversion(if needed).Then Save as AVI.
      OK, followed this advice to the letter, if you meant to leave audio in full process mode after importing the wav, which I did after setting the compression to 192kbps LAME. What I end up with is the video direct stream copy only, without the game sound and the added music track taking the place of the game sound. This is not what I want, I want both the game sound and the music track to play with the video.

      This is why I tried doing it with Nandub instead, as NanDub has a "secondary stream" tab in audio. When I try doing it with NanDub though, I get the crash error indicating an "access violation" for the reason.

      Comment

      • anonymez
        Super Moderator
        • Mar 2004
        • 5525

        #4
        I want both the game sound and the music track to play with the video
        having more than one audio stream is usually to have a choice of different languages/director's commentary, not for mixing audio tracks.

        use audacity to mix them into a single track, encode to mp3, then mux with virtualdub or avi-mux GUI
        "What were the things in Gremlins called?" - Karl Pilkington

        Comment

        • Video Idio
          Junior Member
          Junior Member
          • May 2006
          • 33

          #5
          Originally Posted by anonymez
          having more than one audio stream is usually to have a choice of different languages/director's commentary, not for mixing audio tracks.

          use audacity to mix them into a single track, encode to mp3, then mux with virtualdub or avi-mux GUI
          Hey anonymez, I was hoping you'd jump in, I think I got what you're saying. You mean to run the original clip through VDub and save wav as well as the video only with no audio, take that wav of game sound and join it with a wav version of the music track in Audacity, then convert them as one track to mp3 in Audacity, and finally import the video only file in VDub, then the mp3 and save as avi?

          Only one thing I don't get about that, I only see an option to import wav audio files in VDub, not mp3. NanDub will import VBR mp3 as far as I know, but won't I have to leave them as wav to import to VDub, then convert to mp3 as I save the avi? At any rate, this is something I had not thought of and I see how this would likely work, thanks.

          Hopefully this process will not affect the game audio's length. I have used the audio interleaving function on several occasions to sync audio that is not stretched though, so if it's just a bit offset I can easily correct that.
          Last edited by Video Idio; 7 Dec 2006, 05:10 PM.

          Comment

          • anonymez
            Super Moderator
            • Mar 2004
            • 5525

            #6
            You mean to run the original clip through VDub and save wav as well as the video only with no audio, take that wav of game sound and join it with a wav version of the music track in Audacity, then convert them as one track to mp3 in Audacity, and finally import the video only file in VDub, then the mp3 and save as avi?
            correct

            I only see an option to import wav audio files in VDub, not mp3
            plain virtualdub requires wav audio, but you can encode to mp3 and mux in a single process. or you can encode to mp3 with audacity or any app of your choosing, then mux with avi-mux GUI
            "What were the things in Gremlins called?" - Karl Pilkington

            Comment

            • Video Idio
              Junior Member
              Junior Member
              • May 2006
              • 33

              #7
              Originally Posted by anonymez
              correct



              plain virtualdub requires wav audio, but you can encode to mp3 and mux in a single process. or you can encode to mp3 with audacity or any app of your choosing, then mux with avi-mux GUI
              OK, success at last, I ended up just saving the game audio as wav and using wav music files to join to it in Audacity then importig them both along with the video into stock VDub. I don't have the avi-mux plug-in you spoke of, but have heard of it and may install it.

              Things went pretty well except for it taking me a while to grasp how Audacity works. After getting most of it figured out I'm liking it a lot, there are lots of nice effects features. The game audio matches the video perfectly without any syncing required. Now if I can just figure out how to do video effects in VDub like fades and maybe even titles and credits I won't miss Movie Maker at all.

              Since I have been using Xvid to compress Fraps files, I generally have to do a couple two pass runs, the first at about 20%, the second at about 25-30%. Thus, the wav goes well with the 1st video compression and I can compress it to mp3 during the 2nd video compression.

              Thanks a lot for your help.
              Last edited by Video Idio; 7 Dec 2006, 08:26 PM.

              Comment

              Working...