How to fix A/V sync problems in MPG files

Hello guest,
default
To benefit from all extra features you need to log in or sign up.
Guides and Tutorials Discuss, How to fix A/V sync problems in MPG files at Video Edit Software forum; How to Fix A/V Synchronization problems in MPG files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unfortunately not all conversions go 100% smoothly and some result in the Audio and Video out of synchronization. This can be due to many reasons with the primary problems being the original movie source and software/codec clashes. More importantly, how

ChickenMan's Avatar
ChickenMan (Retired Senior Moderator)
Posts: 2,656
Posted: 03-12-2002
How to Fix A/V Synchronization problems in MPG files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Unfortunately not all conversions go 100% smoothly and some result in the Audio and Video out of synchronization. This can be due to many reasons with the primary problems being the original movie source and software/codec clashes. More importantly, how can they be overcome or fixed.

If you are consistently getting A/V sync problems, I would suggest looking at using an alternative procedure and/or software for conversion. Software and Codec clashes are common causes for these problems.

There are main ways the Audio and Video can be out of sync.

1. The Audio can be in front or trail the video by the same amount from the start of the movie to the end.

2. The Audio can be in sync at the start of the movie but progressively gets further in front or trails the Video as the movie is played.


The first problem here is the most common and also the easiest to fix. The second problem is normally associated with DivX conversions and can be somewhat time consuming to fix. Some conversions can have both problems!

Here are the solutions I have found to fix the problems that work 100% every time for me and the software that's needed. It also assumes that the MPG file your trying to fix is a proper MPEG1 or MPEG2 file and not an AVSEQ0x.DAT or AVSEQ0x.MPG on a VCD or SVCD disk. These need to be converted to a proper MPG file first, I recommend using Isobuster for this.


1. TMPGEnc Plus 2.521 or later ( d/l from http://www.tmpgenc.net )
2. Wombles MPEG2VCR 3.14 or later ( d/l demo from http://www.womble.com )
3. Isobuster 1.5 or later ( d/l from http://www.isobuster.com )
4. Goldwave 5.04 or later ( d/l demo from http://www.goldwave.com )
5. AC3 Delay Corrector 2.1 or later ( d/l from www.doom9.net download section)


Audio is out by a constant amount throughout the movie.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. This works for both VCD's and SVCD's. The basic principle is to De-multiplex the MPG file and Re-multiplex with MPEG2VCR applying an audio offset. If its an AC3 file thats out of sync, use AC3 Delay Corrector to chop off or add in some blank audio depending if its advanced or retarded.

2. Run TMPGEnc, click on File and select MPEG Tools. Select Simple De-multiplex tab and for Input, browse to your problem MPG. Video and Audio output names will be automatically generated. The Audio being *.MP2 and video being *.M1V or *.M2V. Click Run and wait until its finished. Exit TMPGEnc.

3. Run MPEG2VCR and under Tools, select MPEG System Multiplexor. Browse for the Video *.M1V/*.M2V file after changing Files Type to All(*.*). Do the same for the Audio *.MP2 file. Now select MPEG-1 System Stream VCD or MPEG-2 Program Stream SVCD depending if its a VCD or SVCD that your trying to fix. Enter an output file name and click on AV-Sync button. Here you have to be able to estimate the amount of time the A/V sync is out. Look for people speaking, Gun fire, door slamming, etc where it is easier to match the sound to the event. If the Audio comes before the Video, then move the slider in +'ve direction to the amount you have estimated. Click on Done, then click Save. In a short time you will have a new MPG file, do NOT shut down MPEG2VCR. Now play the movie, preferably with WinDVD, to check if the sync is correct. If a small adjustment needs to be done (I never get it right first time!) then jump back to MPEG2VCR and adjust the slider a bit more in the direction that's needed. Hit Save again and when done, re-check the file. Repeat until it is fixed.

4. Sometimes just a simple De-multiplex with TMPGEnc and a Multiplex with MPEG2VCR with NO audio offset applied can fix A/V sync problems. This is particularly true if using the FlaskMPEG/Panasonic Plug-in method for creating the MPG.

5. If you now have the A/V sync correct at the start of the movie but is out near the end, then move onto the next solution.



Audio is in sync at start but progressively goes further out as you play the movie.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. I have never seen this problem in a SVCD or a DVD but should work for them, definitely works for VCD's. The basic principle involved here is to strip out the Audio file (de-mux) then stretch or compress the audio frequency, 44.1kHz, and re-sample to 44.1 Then convert to *.MP2 format and re-multiplex with video stream.

2. Demux the MPG file so we can manipulate the Audio file. Run TMPGEnc, click on File and select MPEG Tools. Select Simple De-multiplex tab and for Input, browse to your problem MPG. Video and Audio output names will be automatically generated. The Audio being *.MP2 and video being *.M1V or *.M2V. Click Run and wait until its finished. Exit TMPGEnc.

3. We now have to estimate the approx time, in seconds, that the audio is out of sync and nearest to the end of the movie as possible. Simply play the original movie with WinDVD or similar player. Windows Media Player is not recommended as it can A/V sync problems of its own. Move slider to near the end of the movie and look for speech, gun fire, explosions, door slamming, etc where you have a precise Audio to Video match up. Estimate the time difference and not the length of the movie. Lets say we find the Audio trails the Video by about 1 second and the movie length was 48 min or 2880 sec (the door slams and about 1 sec later we hear the thud).

3. Run Goldwave and load in the *.MP2 file. Its also best to turn OFF the Undo feature to speed up the conversions (in Options / File...) Click on Effects and then Playback Rate. We need to change the 44100 Hz to sync the movie, use these formulae:

New Hz (Audio trails Video) = (Movie length in sec + Out of Sync in sec)/(Movie length in sec) * 44100

or

New Hz (Audio precedes Video) = (Movie length in sec - Out of Sync in sec)/(Movie length in sec) * 44100

So for our example, we have:

New Hz = (48x60 + 1) / (43x60) * 44100 = 44115

So change the Rate from 44100 to 44115 (or the number you calculated) and hit OK. Now click Effects again and select Resample. Change the 44115 (or what ever figure you have) back to 44100 and hit OK. Once the conversion is finished, hit Save. For Type select Wave (*.wav) and Attributes as 16bit, Stereo, Signed. Change File name if needed and hit Save. When it finish's answer No and exit the program.

4. We now need to convert our WAV file back to an MP2 form. TMPGEnc is the simplest to use for this. Run TMPGEnc, and click File, then New Project to clear out old settings. For Stream Type select Audio Only and for Audio Source, browse to our new WAV file and Open it. Rename the Output file name to something different than the original MP2 file. Now click Settings and change the Bitrate from 192 to 224, this is ESSENTIAL for a VCD. Do NOT change any other settings except Normalize in Setting button (do this only if the audio appears low in volume). Then click OK and finally click Start. When done, exit TMPGEnc.

5. Run MPEG2VCR and under Tools, select MPEG System Multiplexor. Browse for the original Video *.M1V/*.M2V file after changing Files Type to All(*.*). Do the same for the new fixed Audio *.MP2 file. Now select MPEG-1 System Stream VCD or MPEG-2 Program Stream SVCD depending if its a VCD or SVCD that your trying to fix. Enter an output file name (different from the original) and click Save. When done, play the new MPG file in WinDVD and check that A/V sync has been fixed. If its still out a bit, you need to start all over again from Point 3 changing the frequency Rate a bit higher or lower. Repeat until its fixed.

6. It normally takes me 2 tries to get it right, but luckily I rarely have A/V sync problems.


ChickenMan (c)2003

Last edited by ChickenMan; 08-12-2003 at 13:33.
default_avatar
Today (MyCE Staff)
Posts: 15,596
There's more to MyCE.com

Listen up, we've got more. Product information on 102,541 products. Our experts have written 521 articles. We've gathered 16,068 news items for you to always keep updated.

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

People who found this also searched for

  • 'sync problems'
  • a v sync problems
  • ac3 delay corrector
  • audio sync fix freeware
  • fix sync problem
  • mpeg audio sync
  • sync the sound in an .mpg
  • windows media player fix out of sync sound
  • wmp v-sync problems
  • .mpg audio not sync
  • .mpg audio out of sync
  • .mpg audio sync
  • 4850 out of sync fix
  • a v getting progressively out of sync
  • a v out of sync
  • a v out of synch
  • a v syn tmpenc
  • a v sync
  • a v sync delay
  • a v sync file
  • a v sync fix
  • a v sync issues - where
  • a v sync problems
  • a v sync?
  • a v synch
  • a v synchronization
  • ac3 delay corrector
  • ac3 sync fix
  • adobe audition mpg conversion time difference
  • audio and video out of sync fix
  • audio delay in mpeg
  • audio delay mpeg
  • audio not in sync with video solution
  • audio out of sync fix mpeg
  • audio out of sync mpeg
  • audio sync fix
  • audio sync fix software
  • audio sync issue with noontec mp342
  • audio sync mpeg
  • audio sync mpg
  • audio video sync different length
  • audio video synchronization mpeg
  • auto repair audio video sync mpeg2
  • av delay mpeg
  • av out of sync
  • av sync
  • av sync delay
  • av sync mpeg
  • av sync problems
  • av sync windows problem codecs
  • av synchronization
  • av to mpeg convert problem with bit rate
  • av-sync
  • avs a v sync fix
  • best mpeg fix
  • cant find av-sinc
  • change audio sync mpeg
  • changing audio sync mpg file
  • converted mpeg1 video audio not in sync
  • delay audio in mpg files
  • delay audio mpg
  • demux mpg
  • divx vlc transcoding to mpeg audio out of sync
  • doghouse audio delay
  • doghouse sync problem fix
  • dpg audio sync
  • dpg sound not sync
  • easy mpg resync
  • files name changed after video sync
  • fix .mpg sound
  • fix a v sync
  • fix and synchronize movies
  • fix audio and video sync problems
  • fix audio sync mpeg
  • fix audio sync mpg
  • fix audio sync problems
  • fix audio sync utility
  • fix audio sync video tmpgenc
  • fix audio video out of sync
  • fix audio video sync
  • fix audio video sync problems
  • fix audio video sync wmv file
  • fix av sync
  • fix av sync issues
  • fix av sync mpeg2
  • fix m2v
  • fix mpeg 2 audio sync
  • fix mpeg files
  • fix mpeg sync issues
  • fix mpg
  • fix mpg audio problems
  • fix sound delay mpg
  • fix sound mpeg-1
  • fix sound offset in mpeg
  • fix sound out of sync with video
  • fix sound out sync video
  • fix streaming audio lag
  • fix sync
  • fix the a v unsync issue
  • fix video audio sync
  • fix video audio sync mpg
  • fix video sync
  • fix winamp video sync delay
  • fixing audio sync tmpgenc
  • fixing av sync
  • fixing av synch
  • fixing mpeg out of sync streaming playback
  • fixing off sync audio on movies
  • fixing out of sync audio with video
  • fixing out of sync mpg
  • fixing sync issues
  • fixing vertical sync
  • freeware to fix sync errors in videos
  • geluid van mpg synchroniseren
  • how can i find vsync
  • how can i fix the sync problem between sound and video
  • how can i manage sync out issue in rip
  • how can you fix sound on videos if its out of sync
  • how do i fix audio and video sync problems
  • how do i sync audio with video in mpeg file
  • how fix out of sync mpeg
  • how fix sound when it's not in sync with the video
  • how sync audio in mpeg videos
  • how to change v.sync
  • how to corect out of ssync in av
  • how to correct a v sync problem
  • how to correct a v synchronization
  • how to correct audio sync problems mpeg2
  • how to correct sync delay
  • how to do you fix windows media syncing with sound
  • how to fix a choppy mpeg file
  • how to fix a m2ts that's out of sync
  • how to fix a sound sync problem
  • how to fix a syncing problem with a video
  • how to fix audio delay mpeg file
  • how to fix audio not sync with video?
  • how to fix audio not synced with video
  • how to fix audio on an mpeg file
  • how to fix audio sync problem in videofile
  • how to fix audio video not in sync
  • how to fix audio video sync problems
  • how to fix lip sync on tmpg
  • how to fix lip sync problems on movie files
  • how to fix movie latency
  • how to fix off synced videos stream
  • how to fix out of sync audio and video
  • how to fix out of sync audio mpeg
  • how to fix out of sync sound with video
  • how to fix out of synch
  • how to fix sound delay on a mpg4 movie
  • how to fix sound delay wmv
  • how to fix streaming movie out of sync
  • how to fix syn problems with a video
  • how to fix sync in avs video
  • how to fix sync problems
  • how to fix syncing
  • how to fix the audio sync on a mpeg 4 file
  • how to fix video audio sync
  • how to fix video audio sync problems mpeg
  • how to fix video files with sound out of sync
  • how to fix video not in sync with audio
  • how to fix video out of sync with audio mpeg
  • how to fix video sync
  • how to fix video sync problems
  • how to repair chopping sound in avi file
  • how to reset the audio sync of a movie with ffmpegx
  • how to resolve mpeg audio video sync problems
  • how to resync audio mpg
  • how to run .mpg file
  • how to run mpeg files
  • how to run mpg file
  • how to run mpg file in .net
  • how to solve out synchronizing problems
  • how to solve out syncronizing problems
  • how to sync a v in converted mpeg files
  • how to sync audio and video mpg file
  • how to sync audio mpeg
  • how to sync audio mpg
  • how to sync audio on an mpg file
  • how to sync audio to video i move
  • how to sync audio to video in mpg
  • how to sync av
  • how to sync mpeg
  • how to sync sound on mpeg movie
  • how to sync sound to video in mpeg
  • how to synch videos audio fix
  • how to synchronize audio and video in mpg
  • how to vsync
  • imedian mpeg sync
  • is there fix for my audio not syncing with my video
  • is there v-sync option in windows media player
  • joining mpeg sound sync
  • joining mpg files cause syncing issues
  • lip sync error fix mpg
  • m2v fix
  • m2v mp2 mpg mux
  • m2v mp2 sync
  • mgep delayed audio
  • move sound 3 seconds in mpg file
  • movie sync fixer
  • movie vsync
  • movieberry audio video out of sync mpeg
  • mp2 sound sync
  • mpeg 1 codec audio sync problem
  • mpeg audio and video out of sync
  • mpeg audio delay
  • mpeg audio delay not correct
  • mpeg audio fix
  • mpeg audio fixer
  • mpeg audio offset
  • mpeg audio out fo sync
  • mpeg audio out of sync
  • mpeg audio out sync
  • mpeg audio resync
  • mpeg audio sync
  • mpeg audio sync fix
  • mpeg audio sync issues
  • mpeg audio sync software
  • mpeg audio video synchronization
  • mpeg av out of sync
  • mpeg av sync
  • mpeg codec audio sync
  • mpeg file check
  • mpeg file checker
  • mpeg fixer sound
  • mpeg geluid syncroniseren
  • mpeg movie problems
  • mpeg multiplexer audio delay
  • mpeg out of sync
  • mpeg sound out of sync
  • mpeg sound sync tool
  • mpeg streamclip sync problem
  • mpeg streamclip video and audio are not synchronized
  • mpeg sync
  • mpeg sync audio video
  • mpeg sync issue
  • mpeg sync problems
  • mpeg sync video audio
  • mpeg synchronise sound
  • mpeg syncronization problem
  • mpeg to xvid improper av sync
  • mpeg vcr lip sync problem
  • mpeg video and audio out of sync
  • mpeg video and audio out of synch
  • mpeg video audio out of sync
  • mpeg video audio senchronisation
  • mpeg video audio syncheronizer
  • mpeg with audio unsync
  • mpeg-1 synchronization
  • mpeg-2 audio delay
  • mpeg-2 streaming video sync solution
  • mpeg1 out of sync
  • mpeg2 audio video different lengths
  • mpeg2 how to fix a v offset
  • mpeg2 to dvd audio sync trouble
  • mpeg3 sound delay
  • mpg and premire audio out of sync
  • mpg audio delay
  • mpg audio not synced
  • mpg audio sync
  • mpg audio sync problem
  • mpg audio video out of sync
  • mpg delay audio
  • mpg demux
  • mpg file audio out of sync
  • mpg file problems
  • mpg file sound not synced to video
  • mpg fixer
  • mpg lag repair
  • mpg lip sync issues
  • mpg movie video and audio out of sync
  • mpg multiplex delay
  • mpg not sync
  • mpg out of sync
  • mpg out sync audio
  • mpg player audio video sync
  • mpg repair playback is out of sync
  • mpg sync audiio
  • mpg sync audio
  • mpg sync problems
  • mpg time fix
  • mpg to dvd video nero video and sound not synchronized
  • mpg video and audio out of sync
  • mpg video audio out of sync
  • mpg video audio sync
  • mpg video out of sync with audio
  • mpg video sound ot of synch
  • mpg video start offset
  • mpg1 voice out of sync
  • multiplex womble save
  • off sync video corrector
  • out of sync audio mpeg
  • out of sync correction in mpeg2
  • out of sync fix
  • out of sync issue
  • out of sync problem
  • out of sync video fix
  • out of sync. mpg
  • picture and sound out of sync on a mpeg2 file
  • precise video audio length mpeg
  • problem with mpeg
  • procoder audio mpeg2 out of sync
  • quicktime divx audio out of sync
  • quicktime mpg sync problem
  • quicktime sync fixing
  • re synch sound on mpeg1
  • repair audio sync
  • repair synch mpeg
  • restore sync mpeg2
  • resync audio and video quicktime
  • sky box a v sync
  • software to fix sync problem
  • start in sync then get progressively further out as the movie runs
  • sync ac3 and m2v
  • sync audio and video .mpg
  • sync audio and video mpg
  • sync audio and video start end ac3
  • sync audio tmpeg
  • sync audio with video mpg
  • sync mpeg
  • sync mpg audio
  • sync problem
  • sync problems
  • sync problems with movies
  • sync projectors audio with videos a problem
  • sync video audio mpg
  • synching audio with video .mpg
  • synchro problems
  • synchroniser son vidéo mpg
  • synchronization problems
  • synchronize audio video mpeg
  • synchronize audio video mpg
  • synchronize sound and video mpg
  • synchronize video and audio mpeg
  • syncing an ac3 with m2v
  • syncing audio to video mpeg
  • syncing; audio and video mpeg2 files
  • synx problems
  • tmpgenc plus fix out of sync
  • tmpgenc source creator wmv sync
  • tmpgenc source creator wmv sync demultiplex
  • usb lag vsync
  • v sync fix
  • v sync start
  • v-sync på delay
  • vcd audio in sync
  • video 1 second off fix. program
  • video audio out of sync mpeg
  • video audio sync fix
  • video lags freezes out of sync
  • video player a v sync
  • video sound delay fix
  • video sound out of sync how to fix
  • virtualdub to run .mpg file
  • voice is out of sync with video fix software
  • voice lag mpg
  • vsync movie
  • what can i do to fix out of sync videos
  • what program to correct a v lags
  • when i play my mpeg file the audio and visual are out of sync
  • why is the sound drifts out of sync on mpg
  • wme mpg audio sync
  • yamada audio video synchronize problem
All times are GMT +2. The time now is 07:03.
Top