VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Mar 2002
    Location
    United States
    Search Comp PM
    Hello.
    I've been trying to convert an xvid file to mpeg2 for over a day now with no luck.

    Included is the information data from VirtualDubMod and GSpot, along with the video & audio codecs I have installed.

    This thing is driving me nuts. I've tried converting it with all the one-click progs (DIKO, AVI2DVD, etc) and while most of them worked, the audio was out of synch by a few seconds. Right then, I dumped all of those and went with TMpegEnc 2.5.

    Everything looked good, but ran into the same problem, the audio lagged (by the same amount too it seemed). VdubMod did throw the VBR audio warning when I opened it up.

    Next I read through the forums here and found out that Tmpeg doesn't really like mp3s. Ok then, I dumped the audio into an uncompressed wave file then used that as my source with Tmpeg. Now with that combination....
    there's no audio. A second's worth at the beginning then silence throughout.

    I also noticed that with some of the 1-click progs the results ended with a slightly vertically stretched ratio and faster than normal movement. Some just had the audio lag, some had both.

    No bad frames with vdub-mp3-freeze.
    Using toolame for layer 2 and lame for layer 3 in tmpeg in the environmental settings.

    So, I'm stuck. What could be the problem here?

    I haven't tried burining any of the results to dvds, wanted to make sure they were ok on the comp first. I recently reinstalled XP so I'm going to try converting one of my older avis to mpeg2 & see if it does it to all of them.

    Haven't had these problems before, but then my old setup was so full of codec packs and whatnot that who knows what made it work before. ^_^

    Thanks in advance for any help.

    info.zip
    Quote Quote  
  2. You have to encode video & audio separately.

    Load file in VirtualDubMod. Go to streams > streams list and select the audio. Click demux to extract the audio.

    Now load the xvid file in TMPGEnc and encode only the video portion to MPEG2 by selecting the video ES option. This will give you a M2V file.

    Encode the extracted audio to MPEG-1 Layer-2 audio at 224 Kbps 44.1 Khz using BeSweet or HeadAC3he or any other. If it is for DVD you have to up-sample to 48KHz.

    Once you have the M2V file and MP2 file simply mux them using the MPEG options in TMPGEnc to get MPEG2 file.

    Good Luck.
    When I was born I was so shocked that I could'nt speak for 18 months.
    Quote Quote  
  3. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    I'm guessing you used virtualdubmod to extract the audio to a WAV file ?

    I wrote a guide for it and it's in the guides sefction, but whilst writing it I noticed that it seemed to be hit or miss across a variety of sources, but worked well enough often enough for me to stick with it. However, when it would not work, I found this guide http://members.dodo.net.au/~jimmalenko/ExtractAudio.htm to work every time.

    Also, should be unwritten, but after extracting the WAV, take a look at the filesize and make sure it matches up to what it should be - roughly 11.25MB a minute or thereabouts. Also play the file in windows media player or your favorite player and skip through it to random points to make sure that the WAV is OK before you do anything with it.
    If in doubt, Google it.
    Quote Quote  
  4. The critical step in jummalenko's guide is the selection of "Full Processing mode" for the audio before saving as WAV. If you don't do this your audio will simply be copied to the WAV file in the same compressed format as the source file.
    Quote Quote  
  5. Member
    Join Date
    Mar 2002
    Location
    United States
    Search Comp PM
    Ah, well, I tried a few different methods outlined here. Converted just the video using tmpeg. Re-extracted the wav file using full compression in virtualdub, encoded them together, same error.

    Tried converting the wave using Headache, got an error about packets when I muxed the video and audio together & the resulting file had the synch errors.

    Tried converting the wave using tmpeg and then remultiplexing, got the same errors.

    I think I'm gonna have to give up on this one, either tmpeg just can't handle it or the xvid is screwed up.

    Thanks for the help all the same.
    Quote Quote  
  6. If it's out-of-sync by a constant amount, you can correct it in TMPGEnc. Configure -> Advanced -> Source Frame Range. Click it and a window will appear. At the bottom is "Audio Skew" in my version, think later versions have "Audio Gap Correct". If the audio is, say a half-second too late, enter 500. (It's in milliseconds). If the audio is too early, use a negative number. Don't try to sync to people talking, use a sudden sound like a hammer strike, etc., to determine how much correction you need. Encode as usual.

    Here's another way:

    http://www.johnisme.com/

    Look near the bottom. Good luck.
    Pull! Bang! Darn!
    Quote Quote  
  7. Member
    Join Date
    Mar 2002
    Location
    United States
    Search Comp PM
    Hmm, actually, yeah, it seems to be giving me a constant skew rate whenver tmpeg does this...I've never messed with trying to re-sync the sound before but I might as well give it a try.
    Quote Quote  
  8. Member Capt.Video's Avatar
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    I encode Divx/Xvid files with MP3 audio all day long in TMPGEnc, never a problem! It will even read the VBR MP3s, though the A/V sync goes to Hell. I dont know what to suggest since Ive never experienced the same problem, other than adjust the priority of the filters in the config of TMPGEnc.

    Good luck,
    Andrew
    I have been into computers since 1980. Ive been tinkering with DV in one flavor or another since 1990.
    Quote Quote  
  9. One other option: use VirtualDubMod to extract the audio as WAV. With VBR MP3 audio it often pops up a dialog saying there is a problem with the audio header and asks if you want to fix it. Sometimes answering Yes and sometimes answering No will give you the proper audio skew. So try both.
    Quote Quote  
  10. Member
    Join Date
    Feb 2004
    Location
    Australia
    Search Comp PM
    You could try super to convert it to mpeg2 .

    http://super.free.free.fr/home.html

    As for the audio issue , I have always used virtualdub , locate audio area with first detectable problem , set audio scew to required value , full processing , save as wav .

    Remove audio , change to wav , and sellect wav that was just produced , check , reset audio scew , churn it out as wav .

    Repeat as required till good results are reached .

    In some titles I have had to do this more than 40 times , a pain , but worth it , considering how long it took to download initially .
    Quote Quote  
  11. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Hello All! First time poster. Extreme Newb Alert! Very sorry to bother y'all. Sanjyak, I followed the instructions you posted, am having trouble cmpleteing the BeSweet portion. I think I have manipulated the GUI properly, but I don't know what 'button' to hit to make it 'go'. LOL Sorry for my complete lack of brain-power. Could y'all point me in the right direction? Thank You.
    Quote Quote  
  12. In BeSweet a button will appear depending on the file you are converting. For example if you are converting from VOB to AC3 a button will appear so as shown below. If you are converting from WAV to MP3 then the button will appear accordingly.



    If you are not comfortable with BeSweet then use HeadAC3he. IMO it is better than BeSweet.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!