VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Banned
    Join Date
    Dec 2004
    Location
    SE4
    Search Comp PM
    Can someone please give me the link to the best guide of how to put sound in sync on a movie please??

    would i need software that tells me what parts of the movie sounds out of sync..

    Please sort me out with what id need etc..

    thanks v much!!
    Quote Quote  
  2. 1. The basic principle involved here is to strip out the Audio file (de-mux) then stretch or compress the audio frequency, 48khz, and re-sample to 48khz for DVD. Then convert to *.MP2 or AC3 format and re-multiplex with video stream (only for testing).

    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.
    Alternatively, run virtualdubmod, load your file, select Streams, stream list. Right click on the audio, select Full Processing Mode, then click Save WAV.

    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 or .wav 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 48000 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) * 48000

    or

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

    So for our example, we have:

    New Hz = (48x60 + 1) / (43x60) * 48000 = 48115

    So change the Rate from 48000 to 48115 (or the number you calculated) and hit OK. Now click Effects again and select Resample. Change the 48115 (or what ever figure you have) back to 48000 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 or AC3 form. TMPGEnc is the simplest to use for mp2. 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. 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. Alternatively, transcode in ffmpeggui to AC3 at 48kHz for your project.

    5. Compile the project in DVDLab and test. Alternatively, remux the video and audio in tmpgenc's mpeg tools, simple remux, and select mpeg-2 program VBR. 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.

    If the project is avi, load the video into virtualdubmod, load the fixed .wav as the audio source, and play it to check for sync.
    Once you have it, you can then encode the VIDEO ONLY in tmpgenc or other encoder, and transcode audio in ffmpeggui to AC3, then import into DVDLab.
    Cheers, Jim
    My DVDLab Guides
    Quote Quote  
  3. Banned
    Join Date
    Dec 2004
    Location
    SE4
    Search Comp PM
    chers, sorry i shd have mentioned i was thinking of a divx file
    Quote Quote  
  4. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Slightly vital information you chose to omit.

    The process is still pretty much the same. Demux the audio, estimate how much of delay there is, shift the audio accordingly, remux and test. Repeat until al is well.
    Read my blog here.
    Quote Quote  
  5. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Check here for some tips(step 2&3) on syncing audio on avi files.
    I think,therefore i am a hamster.
    Quote Quote  
  6. The second portion of step #2: "Alternatively, run virtualdubmod, load your file, select Streams, stream list. Right click on the audio, select Full Processing Mode, then click Save WAV."
    It's up there, if you read it.
    Cheers, Jim
    My DVDLab Guides
    Quote Quote  



Similar Threads

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