Back Forum Reply New

Video/Audio Sync problem after Encode

Greets all. Apologies if I come over as not knowing too much. It's largely because I don't. I have a problem that is bugging me loads:

I have an avi file that I want to encode but the audio and video keep going out of sync. This is what I am doing:

I use an avisynth script with directshowsource.

DirectShowSource(quot;filepathquot;, fps=23.976)
lanczosresize(720,480)

When I open this script up in Media Player Classic it plays fine and the audio and video remain in sync throughout. (Using AVIsource in the script doesn't help with my problem and watching the script in MPC the vid and audio go out of sync.)

I send this file to an encoder (HC, QuEnc or TMPGenc) and encode it. I open the script in Virtualdub and save the wav and then encode it with Besweet.

When I mux the audio and video back together they're out of sync in some places and not in other places.

One strange thing is that when I save the wav file, then open the original avi file in Virtualdub and use the wav as the audio, the audio and video remain in sync if I press one of those 'play' buttons at the bottom of the screen. Is the video encoding process doing something to the video side of things that means it goes out of sync?

It really is driving me mad. Please help.

What is the frame rate of the original material?



VBR mp3... that's your problem.

demux it from virtualdub, then transcode it with besweet or whatever to your final format.  it should match your video then.
¥
Back Forum Reply New