Need so help with merging audio and video file

Discussion in 'DivX / XviD' started by teflonz, Mar 13, 2006.

  1. teflonz

    teflonz Guest

    I need to convert .ac3 file i extracted to Mpeg3 and merge it back into the .avi. what free program can i use to do this ? Thanks for your help guys if u can.
     
  2. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    mencoder can do it in one go.

    mencoder.exe -ovc copy -oac mp3lame input.avi -o output.avi

    Otherwise BeSweet or HeadAC3he to convert the AC3, then mux with VirtualDubMod or AVIMuxGUI.
     
  3. Rotary

    Rotary Senior member

    Joined:
    Apr 10, 2003
    Messages:
    7,606
    Likes Received:
    0
    Trophy Points:
    116
    hi guys

    just curious as to why change AC3 to MP3 ?

    thanks for letting me tag along....
     
  4. teflonz

    teflonz Guest

    First, thanks for your help and quick response im trying the solution youve provided right now ill let u know how it goes thanks again.

    Yes your right to ask why do i need to change the audio .ac3 audio stream to mp3 ?

    I have a Portable multimedia player from RCA the Lyra 2780. ( http://www.rcaaudiovideo.com ) The Lyra™ A/V Jukebox plays back mpeg4-sp content created with the DIVX4/5 Codec. Please see the Video Compatibility Checklist for more details.

    Video type
    VGA
    QVGA

    Video Resolution (Lines)
    640 x 480
    320 x 240

    Maximum Video Bit Rate
    1 Mbps
    1.5 Mbps

    Maximum Audio Sampling Rate
    32 Khz
    44.1 Khz

    Maximum Audio Bit Rate
    96 Kbps
    128 Kbps
     
    Last edited by a moderator: Mar 14, 2006
  5. teflonz

    teflonz Guest

    I cant use mencoder cus im On XP. I ve extracted the .AC3 using the tutorial for Virtualdubmod. i converted the AC3 audio to .WAV using Headache.

    This is where i think im making a mistake becaus ei just dont know how to do it maybe lol. I open the Video file in virtualdubmod I select direct stream copy . the i open Stream List i add the .WAV file, i select the .WAV files so the speaker icon is visible I goto file-save as- save but when its done i check the Info in Gspot and it still says it has .AC3 Celtic maybe u can help me a with a lil more detail instruction how to do it with VirtualDUBMOD id appreciate it alot . thanks again
     
  6. The_OGS

    The_OGS Active member

    Joined:
    Feb 18, 2004
    Messages:
    1,461
    Likes Received:
    0
    Trophy Points:
    66
    I would extract the AC3 audio using Nandub, then decompress it to WAV using BeSweet (Azid).
    So you have your WAV? You now need to encode it to 128Kbs CBR MP3 @ 44.1KHz, I would use CDex
    http://www.afterdawn.com/software/audio_software/cd-da_extractors/cdex.cfm
    ...with the latest LAME codec
    http://www.afterdawn.com/software/audio_software/audio_encoders/lame_mp3_encoder.cfm
    but don't worry, there's already (a slightly older) LAME in place within CDex.
    Once you have your MP3 you can quickly and easily re-mux your AVI using Nandub.
    Regards
     
  7. teflonz

    teflonz Guest

    OMG U GUYS ARE SO Awesome thanks soo much its worked on my PC now i just gonna load it onto my RCA lyra and see if i can output to TV thanks soo much again i tell everyone about this site cus u guys r da bestest
     
    Last edited by a moderator: Mar 14, 2006
  8. The_OGS

    The_OGS Active member

    Joined:
    Feb 18, 2004
    Messages:
    1,461
    Likes Received:
    0
    Trophy Points:
    66
    Yes.
    WAV is uncompressed compared to AC3 or MP3 audio, and sometimes called LPCM in the DVD world.
    A typical WAV (and the best-known example) is an audio CD: Pulse-Code Modulation of a certain sample size (ie. 16-bit) at a certain sampling frequency (ie. 44.1KHz) defines the Redbook CD Standard.
    AC3 5.1 contains six channels, and these will be downmixed by Azid into a stereo WAV @ 48KHz. This WAV will then contain Dolby ProLogic-type surround 'matrixed' into the stereo channels.
    A 120 minute film will have AC3 5.1 ~500MB.
    The same thing in WAV will be ~1400MB.
    The final MP3 should be ~150MB.
    Your device requires 128Kbs bitrate; this would appear to require CBR (the old Napster standard, barely adequate).
    The AC3 audio is sampled @ 48MHz - this apparently must be down-sampled to 44.1MHz, either during the WAV extraction or when encoding the compressed audio file, to be compatible with your Lyra 2780 device.
    It is possible to encode MP3 audio using VirtualDub, but not a good plan... I had serious synch issues doing that, when making AVIs.
    Using CDex to encode audio, then interleaving final AVI using Nandub, works much better :^)
    L8R
     
    Last edited: Mar 14, 2006
  9. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    mencoder works fine under XP if that is what you meant.

    Why not convert directly to mp3 in BeSweet/HeadAC3he?

    You would be lucky if it works since according to the above it supports SP only and there is a fairly decent chance that your file uses bframes (an ASP feature).
     
    Last edited: Mar 14, 2006

Share This Page