Help - Search - Members - Calendar
Full Version: Video errors causing out-of-sync audio
Hydrogenaudio Forums > Digital Audio/Video > General A/V
QuantumKnot
I've got this large (1.8 GB) mpeg file with MPEG-2 video and mp3 audio that I'm trying to transcode down to a DivX avi. The problem is that there are video errors at some places, where VirtualDubMod wont open it directly but it can open it via avisynth. I compressed it using DivX 5.2.1. I extracted the mp3 audio using DVD2AVI and noted the delay, then muxing it in to create my 350 MB avi file.

Anyway, the audio is in sync for the 5 minutes but after that, it starts to get more and more out of sync with the video. A friend of mine said that because there were video errors, some frames got dropped but the audio is still there, hence it gets out of sync.

Can anyone think of a way of solving this problem? sad.gif

On another note, when DVD2AVI extracted the mp3, the filename has the words "DELAY -472ms". So in VirtualDubMod, in the Interleave option, am I supposed to put in -472 ms or 472 ms?
echo
Maybe you could try mplayer/mencoder. I find that they are way more tolerant to these kind of errors. Try to play your mpeg file with mplayer. If it plays with no sync issues, mencoder will do the transcoding job fine.
Ollie
QUOTE(QuantumKnot @ Dec 22 2004, 11:00 AM)
I've got this large (1.8 GB) mpeg file with MPEG-2 video and mp3 audio that I'm trying to transcode down to a DivX avi.  The problem is that there are video errors at some places, where VirtualDubMod wont open it directly but it can open it via avisynth.  I compressed it using DivX 5.2.1.  I extracted the mp3 audio using DVD2AVI and noted the delay, then muxing it in to create my 350 MB avi file.

Anyway, the audio is in sync for the 5 minutes but after that, it starts to get more and more out of sync with the video.  A friend of mine said that because there were video errors, some frames got dropped but the audio is still there, hence it gets out of sync.

Can anyone think of a way of solving this problem?  sad.gif

On another note, when DVD2AVI extracted the mp3, the filename has the words "DELAY -472ms".  So in VirtualDubMod, in the Interleave option, am I supposed to put in -472 ms or 472 ms?
*


Mp3 Audio with an Mpeg 2 video stream? How was it packed? Thats unusual to say the least. With regards to the audio delay, follow exactly the number. So for this "DELAY -472ms" type in -472.

There is an option inside VDubMod that you could give a try and see what happens, under frame rate 'change so video and audio durations match'. But of course, this will only have an effect if the video and audio durations are different.
QuantumKnot
QUOTE(Ollie @ Dec 22 2004, 10:15 PM)
Mp3 Audio with an Mpeg 2 video stream? How was it packed? Thats unusual to say the least.


Oops, sorry. I mean MPEG-1, layer 2 audio, not layer 3. rolleyes.gif

QUOTE
There is an option inside VDubMod that you could give a try and see what happens, under frame rate 'change so video and audio durations match'. But of course, this will only have an effect if the video and audio durations are different.
*


I tried using that and it set the frame rate to 25.017 fps. However, it didnt fix it. What I've done is delay the audio so that it is in sync for about 80% of the file, so the first 20% will be about 0.5 seconds out of sync. I guess that's the best compromise for now.
Ollie
QUOTE(QuantumKnot @ Dec 23 2004, 10:34 AM)
I've done is delay the audio so that it is in sync for about 80% of the file, so the first 20% will be about 0.5 seconds out of sync.  I guess that's the best compromise for now.
*

Hmm, had a thought here. Is there a certain point if you watch the video with the audio synced properly from the start, that you really noticed it desyncs? Could possibly be a few scenes missing also, or a black screen? It almost sounds like someone joined two different mpeg video/audio streams but didnt correct the audio for the second part.

Just a thought, could be way off tho.
QuantumKnot
The video was created by piping the stream from a tv capture card. I'm not sure why there were so many errors created though I assume at such a high bitrate, the hard drive was having trouble keeping up? But as I was watching the transcode video, it starts off out of sync, then a few error blocks, then towards the middle audio starts going into sync, then a few error blocks, and its out of sync again. So it does appear to be the video errors causing this.

I played it in mplayer and it worked fine. So perhaps I should look at using mencoder. But the CLI scares me a bit. ph34r.gif
rutra80
I had very similar problem, except that I wasn't going to transcode the whole thing, but audio only (in fact I just wanted to convert stereo with 1 used channel to mono or to stereo with 2 the same channels). After demuxing & converting & muxing-back the audio, with time it got more and more out of sync with video, like it's frequency got few Hz lower or higher (can't remember) than before that processing. I tried many ways of making it how it should be, but I ended up with the ugly one - transcoding the whole thing (instead of audio only) with TMPGEnc. For some reason TMPGEnc was able to keep it synced then. So as a last resort you could try to transcode MPG to MPG with TMPGEnc (which should fix the errors), and then the resulting MPG transcode to AVI. I know it's an ugly way, but if nothing else will work...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.