Log in

View Full Version : Xvid to mpg - out of sync issues


marvel2020
12th July 2004, 12:54
Hi Guys,

If this is in the wrong forum the please moved to the correct forum and likewise if it's breaking any of the forums rules then please delete it.


I really hope some you can help me out here, i consider myself an advanced user in the process of converting Xvids to mpg's but this one has really baffled me.

I recently downloaded a few Xvids of a TV show/captures' that is not available to buy yet on DVD and won't be for at least another 2 years. Anyway i've already converted 3 of them to MPG and all them are in perfect sync, however this particluar episode in question no matter what way i convert, the audio is always out of sync by at least a few milliseconds.

I've tried all the usual, extracting the audio using Vdub to a wav and encoding using Tmpgenc, even tried frame serving to Tpmgenc and i've also tried my prefared method of using DVD2SVCD for the conversion but no matter what i used the results are always the same.

I should also add that it doesn't matter if i convert to VCD/SVCD/DVD, the audio is always out of sync by a few milliseconds. But if play the Xvid in Windows Media Player or PowerDVD the video and audio are in sync.

The Xvids in question are encoded in Pal format.

Like i said, this has really baffled me because the rest of them have been converted and in perfect sync, but this 1 episode is the one thats giving me grief.

So i'm asking you good people who may have more knowledgeable solutions to my little problem if you could throw some that knowledge my way.

Thanks in advance.

lordadmira
14th July 2004, 01:36
The Xvid video was probably made with an audio preload skew to fix a sync issue in the capture file. When u converted it that was probably lost. There's no real way to find out what it is that I know of. U'll have to experiment or use a sync app to resync it. U might be able to work around it by using DirectShowSource in AviSynth.

LA

marvel2020
14th July 2004, 08:38
Thx for the reply lordamira.

You know i need to be hit around the head with a baseball bat or something because i'm stupid. With a little more searching on the forum the answer to my problem was so simple that i definitly need that baseball bat ;).

As i said in my previous post when i play the Xvid in windows media player or powerdvd it plays in sync but when i convert it, it's outta sync.

Well what i did was to demux the video using direct stream copy and the audio to a .wav file using Vdub. I then remuxed them together using direct stream copy in Vdub, of course the new remuxed avi is now outta sync, so i used Vdubs interleaving to set the audio delay to a +500, and now the avi is in sync again, but this time when i converted it to MPEG, it's also in sync.


So problem solved, i'm now of to find that baseball bat :)

Thx again for the help