VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. when I convert my AVI file to MPG and it finishes, the frames are really slow. They aren't in sync with the audio.

    is there something wrong that I'm doing?
    Quote Quote  
  2. follow this guide (note: this isnt mine, someone gave it to me and it works from my experience, credit to whoever's it is)
    -----
    Fixing Audio Drift Without Postprocessing

    A common topic in the forums, here and elsewhere, are people complaining that their avi/DivX conversion to mpeg1/2 will have 'drifting audio'... the audio starts out in-sync and over the course of the movie, it gradually drifts out of sync. Several guides have been posted in the past for dealing with this problem by doing post-processing in Sound Forge or Video Vegas and the like, but hopefully this method provides an alternative that guarantees results before encoding.

    If this method is tedious, I point you to the 'NOTE' at the end of this guide. It seems to give 'close to perfect' results with less time taken to process the audio first, but for those that like their sync "exact", I recommend this lengthier process.

    Because these tools are commonly used, and are explained in great depth in other guides available on this site, I haven't included screenshots here.

    Step-by-step guide:

    1. Scan the .avi for bad frames and correct a/v sync in VirtualDub first. If it is wrong to begin with, this method probably won't help.

    2. Extract the audio from the video in VirtualDub. You may be able to go to .WAV directly, but if the audio is AC3 format, you will need to take additional steps to get an uncompressed .WAV file. Use the guides here on vcdhelp or doom9.org. Get an uncompressed .WAV by whatever means necessary. You can downsample to 44.1KHz at this point, or let TMPGEnc do it (via SSRC) in a later step.

    3. Load the .avi in VirutalDub. Select Audio->WAV Audio and load the uncompressed .WAV file you created in step 2. Ensure that Audio->Direct Stream Copy is selected.

    4. Ensure Video->Direct Stream Copy is enabled. Select Video->Frame Rate and select the option "Change so video and audio durations match".

    5. Select File->Save as AVI... You will end up with a very large .avi file (the original video and the uncompressed .WAV file interleaved together with matching durations). NOTE: If you play this .avi, you will probably notice that a/v has gone _out_ of sync! Don't panic.

    6. Load up this .AVI in TMPGEnc. Here is where I found you had to add the audio as well (You can also prepare a AVISynth script if you need to do resizing and/or TemporalSmoothing.. if you do this, load the .avs script in the 'video' box, and load the AVI created in step 5 for the audio).

    7. Set your parameters in TMPGEnc as you prefer. Explaining TMPGEnc options is beyond the scope of this mini-guide.

    8. While setting your TMPGEnc paramters, you MUST turn on the "Do not frame rate conversion [sic]" option in the Advanced tab. Ever wonder what this option was for? Notice how many TMPGEnc guides say "Gee, we have no idea why this is here so ignore it and never use it" . THIS is what it is for! In step 6, you created an avi that might not be perfect 23.976 or 29.976 FPS. TMPGEnc sees this and tries to correct for it - causing audio drift even though you supposedly lined things up in VDub.

    9. Encode away. The result should be a perfectly aligned a/v MPG. Finally!

    Caveat: This process hinges on the fact that we are no longer dealing with perfect frame rates. I've been lucky, and this hasn't seemed to affect playback on my standalone player. This may, however, be out of spec, and some standalone players may not be able to cope.

    Caveat #2: In TMPGEnc, I use SSRC for sample rate conversion, and tooLAME for conversion from .wav to .mp2 (Via "External Tools" in TMPGEnc). This is the preferred way to handle audio in TMPGEnc, and I'm not sure if using TMPGEnc internal downsampling and conversion routines would guarantee the same results.
    Quote Quote  
  3. The audio works perfectly fine. Its the frames that don't work well.
    Quote Quote  



Similar Threads

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