VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Dec 2002
    Location
    Washington State, USA
    Search Comp PM
    I've trudged through a number of posts, but none seem to provide insight into possible sources of the problem I'm experiencing. In my case, I have a DV-AVI file ran through CCE Basic to create an MPEG-2 video and WAV audio files. The resulting issue is that the WAV file is longer in length than the MPV file. Here are the numbers:

    Source AVI file: 20,447,792 KB - 1:31:41

    Output WAV file: 1,031,427 KB - 1:31:40
    Output MPV file: 4,026,120 KB - 1:31:35

    As you can see, the video ends up being 5 seconds shorter in duration than the audio. The subsequent compiled DVD (using DVD-Lab) starts out fine, and by the end of the movie, the audio is ever so slightly AHEAD of the video -- I would guess by no more than 1/2 second, but enough to be noticeable.

    I will appreciate feedback regarding the 5-second difference, and if there is a plausible solution regarding the differing length issue (at this point, I don't want to pursue bandaid solutions to the resulting encoded files).

    Thank you!
    Quote Quote  
  2. Member DJRumpy's Avatar
    Join Date
    Sep 2002
    Location
    Dallas, Texas
    Search Comp PM
    Your video had corrupted frames, which results in those frames being discarded. When you re-encode the avi, the vidoe and audio are unlocked from each other. That's when these bad bits are dropped. Each drop shortens the stream by just a bit, causing the eventual loss of sync.

    Three ways to fix it. Get a good source file, stretch the audio to match the duration of the video, or to split the AVI into small sections, and then correct any minimal skew in each section.

    You can use any decent audio editor to stretch the audio

    If you want to manually fix the clip because the stretch method didn't work, then I would suggest you use AVISynth, The TRIM command to segment the video into 5-10 mini clips, and the DELAYAUDIO command to slightly skew the audio to offset the missing bits. Try searching the forum for 'djrumpy' 'avisynth' and 'delayaudio'. It has all the details.
    Impossible to see the future is. The Dark Side clouds everything...
    Quote Quote  
  3. Member
    Join Date
    Dec 2002
    Location
    Washington State, USA
    Search Comp PM
    Originally Posted by DJRumpy
    Three ways to fix it. Get a good source file, stretch the audio to match the duration of the video...
    Thanks for the feedback DJRumpy. You indicate to the stretch the audio to match the video length -- in my case (see numbers above), the audio is already longer in length than the video. How would that affect a solution? (I changed the MPG to MPV extension to avoid confusion).
    Quote Quote  
  4. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    I was unaware that CCE Basic would drop bad frames (more likely, it would just encoded it as trash, or just crash). Are you sure that the original AVI didn't have this same sync problem?

    Your times seem to be irrelavent - you only see a 0.5 second difference, not the 5 seconds that the times would indicate. I get different times like these all the time, but everything stays in perfect sync. You can use COOLEDIT to stretch the audio by 98% or so, which will negatively stretch your file (RE: shrink).
    Quote Quote  
  5. Member DJRumpy's Avatar
    Join Date
    Sep 2002
    Location
    Dallas, Texas
    Search Comp PM
    The same answer applies. If the audio is too long, then you simply shorten it, rather than stretch it

    The frames are dropped during the decode/frameserving process, not the encoding process.
    Impossible to see the future is. The Dark Side clouds everything...
    Quote Quote  



Similar Threads

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