Extract and Insert New Audio Into MP4 Video

Discussion in 'Other video questions' started by DeathOfCh, Nov 3, 2009.

  1. DeathOfCh

    DeathOfCh Member

    Joined:
    Dec 22, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    11
    I have two versions of the same video. One video is an MP4 video. The video quality is really good, but the sound is terrible. Then I have an AVI file that has a pretty decent audio to it, but the video isn't quite as good. Not bad, but the other video just blows it away. What I've been trying to find out is how to take out the bad audio file from the MP4 file with the audio from not as good visual quality AVI file. I converted the AVI file into an MP3 and have it as the audio, but I just can't get the audio to the MP4 Video...I also read somewhere about using WAVE format audio, but the bigger problem is finding a program that works. I've tried MPEG Streamclip, Graphedit, and a list of other programs, but none of them will work for what I'm wanting. I'm wanting to keep the same exact video quality as is, and windows movie maker lowered the quality down quite noticeably, which was my first attempt. I'll even add the info given from a program I found called MediaInfo. It would be great to figure this out so I could know how to in the future.

    --------------------------------------…
    This is the good quality video:

    General
    Complete name : C:\9.mp4
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom
    File size : 700 MiB
    Duration : 1h 16mn
    Overall bit rate : 1 288 Kbps
    Encoded date : UTC 2009-10-06 06:40:12
    Tagged date : UTC 2009-10-06 06:40:12

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Main@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 1h 16mn
    Bit rate mode : Variable
    Bit rate : 1 170 Kbps
    Maximum bit rate : 8 576 Kbps
    Width : 704 pixels
    Height : 368 pixels
    Display aspect ratio : 1.875
    Frame rate mode : Constant
    Frame rate : 25.000 fps
    Resolution : 24 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.181
    Stream size : 636 MiB (91%)
    Writing library : x264 core 76 r1271M 496d79d
    Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x1:0x111 / me=umh / subme=9 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / slices=3 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=1170 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
    Encoded date : UTC 2009-10-05 17:30:14
    Tagged date : UTC 2009-10-06 06:40:31

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format version : Version 4
    Format profile : LC
    Format settings, SBR : No
    Codec ID : 40
    Duration : 1h 16mn
    Bit rate mode : Variable
    Bit rate : 114 Kbps
    Maximum bit rate : 160 Kbps
    Channel(s) : 2 channels
    Channel positions : L R
    Sampling rate : 48.0 KHz
    Resolution : 16 bits
    Stream size : 61.9 MiB (9%)
    Encoded date : UTC 2009-10-06 06:40:28
    Tagged date : UTC 2009-10-06 06:40:31
     
  2. DeathOfCh

    DeathOfCh Member

    Joined:
    Dec 22, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    11
    Come on, guys! I was expecting some know-how on this! I've been doing all I can for 3 days straight trying to get this working and decided maybe someone on this site would help. I think my respect for this site has gone down hill now...
     
  3. davexnet

    davexnet Active member

    Joined:
    Jul 7, 2003
    Messages:
    1,856
    Likes Received:
    0
    Trophy Points:
    66
    It's actually quite simple. You can use a tool such as
    YAMB to demux the streams from from the mp4 and Virtualdub to demux
    the avi streams.

    Then use YAMB to mux together the avi audio and mp4 video.
    http://www.free-codecs.com/download/Yamb.htm
     
  4. jony218

    jony218 Guest

    womble mpeg video wizard dvd. Put your mp4 onto the timeline drag the second audio track into the audio timeline. Next on the mp4 file disable the audio (otherwise you have 2 audios on the finish file). This is a easy way of doing it, it will allow you to easily move the audio track so it lines up with the video.

    Also avidemux is a free way of doing it, it handles mp4 and will let use a different audio track.
     

Share This Page