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!
+ Reply to Thread
Results 1 to 5 of 5
-
-
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... -
Originally Posted by DJRumpy
-
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). -
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...
Similar Threads
-
encoded video duration different than vob duration
By fatcharlie in forum Video ConversionReplies: 9Last Post: 4th Dec 2011, 10:04 -
wmp11 & mpc-hc display audio info on the screen for mpg,avi files
By Danneauxsvh in forum Software PlayingReplies: 4Last Post: 6th Jun 2010, 12:16 -
Adding audio (wav) to video (avi) (want to delay start of audio)
By Lanton in forum Newbie / General discussionsReplies: 2Last Post: 12th Apr 2010, 12:50 -
DVD Rip : Audio & Video Lengths Differ
By foochuck in forum DVD RippingReplies: 3Last Post: 1st Mar 2010, 18:23 -
Video Duration & Compression Problem
By OllyPomm in forum Video ConversionReplies: 7Last Post: 31st Jan 2010, 02:03