Extracting audio from an avi movie?

Discussion in 'MPEG-1 and MPEG-2 encoding (AVI to DVD)' started by mordath1, Nov 17, 2005.

  1. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    In trying to compress an avi movie file, I get this error message:

    VirtualDub has detected an improper VBR audio
    encoding in the source AVI file and will rewrite
    the audio header with standard CBR values during
    processing for better compatibility. This may
    introduce up to 5648ms of skew from the video
    stream. If this is unacceptable, decompress the
    *entire* audio stream to an uncompressed WAV file
    and recompress with a constant bitrate encoder.
    (bitrate 133.2 +_ 20.7kbps)

    How would I extract the audio and what programs should I use to do what the error message suggests?
     
  2. Lethal_B

    Lethal_B Moderator Staff Member

    Joined:
    Jul 12, 2005
    Messages:
    4,061
    Likes Received:
    6
    Trophy Points:
    68
  3. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    Apparently I used that program a long time ago because my 15 day trial period is up...any other suggestions?
     
  4. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    VirtualDub itself can decode to wav. Just set the audio to full processing and save it.

    If you don't want to re-compress the audio you could just use VirtualDubMod which is able to handle VBR mp3 audio.
     
    Last edited: Nov 17, 2005
  5. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    Tried that, it told me: "no audio decompressor could be found to decompress the source audio format. (source format tag 0055)".
     
  6. Rikoshay

    Rikoshay Regular member

    Joined:
    Apr 13, 2004
    Messages:
    302
    Likes Received:
    0
    Trophy Points:
    26
    Try going back to Virtual Dub Mod. Go to Streams, then Stream List, and highlight the audio file. Then go to Save as and save it wherever. That should take care of that.

    If the audio isn't readable, you may want to look for the codec for it, but I don't think that was one of the tags that had a problem. But, I have that problem too, so just say No when the window comes up, It just might crash the program when you play the file.

    As for the file, I think you should try to Disable the audio stream from there as well, compress the file with no sound (but make sure you set the bitrate to match it right!), and add the stream after that. If that doesn't work, just save it as a .wav file, get CDex or something, Use the LAME MP3 encoder it comes with (best sounding MP3 to date), and mux it back into the video file. Good Luck.
     
    Last edited: Nov 17, 2005
  7. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    I looked in every option in every place I could but there was no "streams" option. I'm using ver. 1.6.11 build 23774 if that helps
     
  8. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    There is no 1.6.x version of VirtualDubMod. You must be refering to a regular version.
     
  9. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    My mistake, I was looking at virtualdub (wrong program), for the suggested options, just opened up the right program and saved the audio file. Got the audio track back in as .wav, now just have to get it to sync with the video so it doesn't look like an english dubbed kung-fu movie.
     
    Last edited: Nov 18, 2005
  10. The_OGS

    The_OGS Active member

    Joined:
    Feb 18, 2004
    Messages:
    1,461
    Likes Received:
    0
    Trophy Points:
    66
    All you guys,
    mordath1, Lethal_B, and Rikoshay, need to know enough to use [bold]NanDub[/bold].
    NanDub is a mod of VirtualDub that works with AC3 and VBR MP3 audio.
    Don't just give mordath1 a good extraction program - inform him he does not need to extract ;^)
    You guys are, however, suggesting he demux the audio and decompress into WAV file, then re-encode the audio into - what, CBR MP3?
    Mordath, just do whatever to your AVI file (you are trying to compress it? It's already compressed).
    Then use Nandub to interleave the audio from your previous file with your new more-compressed video.
    Simple. Easy!
    NanDub may be found within the GordianKnot rippack
    http://www.afterdawn.com/software/video_software/dvd_rippers/gordian_knot.cfm
    Regards
     
  11. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    VirtualDubMod includes about every piece of usefull code from NanDub. The only noticable thing missing is SBC encoding.
     
  12. Rikoshay

    Rikoshay Regular member

    Joined:
    Apr 13, 2004
    Messages:
    302
    Likes Received:
    0
    Trophy Points:
    26
    Yeah, I tried Nandub, but it didn't work correctly for my purpose, that's why I told him to use VDM instead. Look, Don't encode it to .wav to put it back in, just extract it as it is, then put it back in after you do whatever you did with the .AVI file. The audio size is small enough to work for it. It could be that you don't have the codec for the file that you're trying to change, so you should download AVIcodec and find out if you really need to re-encode it. Just tell us the size of the file and what codec it was created from, like DivX or what-not.

    -To the OGS:
    Isn't Virtual Dub Mod a mod of Virtual Dub as well? :)

    Late.
     
    Last edited: Nov 21, 2005
  13. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    How would I just extract it "as is" ? I've got vdub, vdub mod and nandub, only thing I know of is "save as wav" to get the audio extracted. D/l avi codec and here's what I got from it as far as the codec info. " Audio : 39 MB, 128 Kbps, 48000 Hz, 2 channels, 0x55 = MPEG Layer-3, Supported"
     
    Last edited: Nov 21, 2005
  14. Rikoshay

    Rikoshay Regular member

    Joined:
    Apr 13, 2004
    Messages:
    302
    Likes Received:
    0
    Trophy Points:
    26
    That's not exactly what I asked for. I meant, what is the codec used for the file? Do you really need to re-encode the .avi file? Are you putting it at the right fps? Tell me! The Video, not audio.

    As for the audio, going back to VDM (or Virtual Dub Mod), and when you go to Streams, then stream list, select the one item that comes up, Then, one of the buttons should say "Save AS" and it should tell you where it would like to save it. The save type should look like "file.MP?" or whatever. Save it as THAT. It'll come out as the .mp3 file, and then you have the file. That's called Demuxing the audio.

    Or, you could just encode the file to a smaller size, with the audio still in it, by just selecting "Direct Stream Copy" in the Streams menu. If it's having problems with syncing properly, then in one of the menus is the option to sync with the video, either the option is called that, or the option is what the_OGS said, Interleaving.

    Please, just try this. And Tell me what codec the Video is in, not the audio! I already knew what the audio was from your first post.
     
    Last edited: Nov 22, 2005
  15. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    Ok, wasn't too sure what you were asking for the first time. Here's what comes out via avi codec with the video portion: 310 MB, 1019 Kbps, 23.976 fps, 608*336 (16:9), XVID = XVID Mpeg-4, Supported

    Reason I'm trying to compress the avi file is it's rather large, I want to save it on a backup service online and have a limit on how much I can upload. When trying to compress it using vdub or vdub mod I got the original error which is what led me to try compressing the audio, just can't get it to synch right to the video after that.

    Now I'm having issues with an xvid codec missing, d/l divx and tried to watch the file through wmp but it's not having it, any idea where I can get the xvid codec? I checked google but there's a bunch of sites that refer me to a ton of them, not sure which is the best to get now.
     
    Last edited: Nov 22, 2005
  16. blue1

    blue1 Guest

  17. Rikoshay

    Rikoshay Regular member

    Joined:
    Apr 13, 2004
    Messages:
    302
    Likes Received:
    0
    Trophy Points:
    26
    You can get the main site here:

    http://www.koepi.org

    Or you can get the file from this link:
    http://www.afterdawn.com/software/video_software/codecs_and_filters/xvid_koepi_unstable.cfm
    But it's a beta so just go with the home website first.

    Hmmm...The only thing I can think of now is to ask where you're going to put it, and how much of a quality reduction do you intend to place it in.

    I'm not really too keen on lowering the audio any more than that, but if you really need to, then just decode it to .wav from Streams, then recode it to a smaller bitrate in CDex or some MP3 converter that supports LAME encoding. Tell me how much you can upload and for what reasons exactly.
     
  18. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    It's just over the limit of 500kb for the trial account and I'm not too keen to pay for more space, just for one file...hence why I'm trying to compress it. Is it possible to burn an avi to a cd rw or do I need to get a dvd burner for that? That would save me the loss of quality and compression issue.
     
  19. Rikoshay

    Rikoshay Regular member

    Joined:
    Apr 13, 2004
    Messages:
    302
    Likes Received:
    0
    Trophy Points:
    26
    What exactly are you trying to do? Are you just backing it up? If you are, then just burn it to a CD-R.

    You mean that the file has to be less than or equal to 500kbps? Or do you mean that the file size has to be 500 kilobits(Kb) or 500 kilobytes (KB)?

    Tell me what site your going to and give me specs on what exactly they are supposed to do for you.
     
  20. mordath1

    mordath1 Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    11
    I think I said I was trying to back it up, the site (xdrive.com) has an allotment of 5gb but I've only got a little over 500kb left because I've got my backup file of the hd on there, was trying to squeeze the file in there before I do a complete reformat of my hard drive. If I want to pull it back off the cd r and put it on my hd, wouldn't I be better off using a cdrw? It's an avi a relative saved on my computer that they took of my son's birthday party, would like to save it one day to dvd once I get a burner for it.
     

Share This Page