1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Replacing the audio in a movie (AVI, MPG)

Discussion in 'MPEG-1 and MPEG-2 encoding (AVI to DVD)' started by aldaco12, May 12, 2005.

Thread Status:
Not open for further replies.
  1. aldaco12

    aldaco12 Active member

    Joined:
    Nov 6, 2002
    Messages:
    2,544
    Likes Received:
    0
    Trophy Points:
    66
    I decided to write this 'sticky' thread because often an AVI movie can have AC3 audio (which one cannot decode), MP3 VBR audio [which gives problem when you try to encode the movie to MPG (which is encoded CBR)], a sound stream (in an AVI or in a MPG) which must be delayed, and so on. I present a tutorial for making an AVI with MP3 sound stream. You also might insert a sound in different format (WMA, AC3..), if you knew how to use it.

    The correct procedure to replace the sound stream from a movie is:

    1) In VirtualDub do File___File Information. You'll see the AVIs audio bitrate. Let it be B a number slightly larger than the averege VBR bitrate (for instance: 128 if you have 118 kbps, 160 of you have 135 kbps and so on.
    Extract the audio as uncompressed WAV, setting on Audio = Full processing mode. Do File___Save WAV.

    2) [bold] Modify the sound stream [/bold]. Load the sound stream with HeadAC3he (option a) or FFMPEG GUI (option b).

    2.a1) In HeadAC3he choose, as destination format, MP3.
    2.a2) Click 2 times the [options>>] button and you shuold see on the right of the screen the [LAME configuretion] screen.
    2.a3) Choose 'Preset' = NONE.
    2.a4) Set Bitrate Min = Max = Ave = B.
    2.a5) Choose Mode = CBR.
    2.a6) Press [Stert]. In few minutes you'll create a proper MP3 CBR sound stream.

    2.b1) In FFMPEG GUI let Audio Sttings: AC3, Bitrate = B; Let the other as default, choose the output name and press [convert].

    3) [bold]Replace the old sound stream with the new sound stream, in the movie [/bold] :
    - open the movie with VirtualDubMod
    - do Stream___Stream List ; click Disable to disable the old stream, click Add to add the new one.
    If teh video type is AVI, just set Video to Direct Stream Copy and do File__Save (F7). The video will remain the same. If the video type is MPG, you have to keep Video to Full Processing Mode, choose with Video__Compression the codec you'll use, configure the compression in a proper way, such to have minmum losses in your video, and do File__Save (F7). In few minutes you'll have , in AVI form, the new movie with the correct sound (and the same video if the movie was a AVI, a video re-encoded to AVI if the movie was a MPG).
     
    Last edited: Feb 26, 2007
Thread Status:
Not open for further replies.

Share This Page