View Full Version : Audio progressively out of sync


shadejv
7th January 2008, 01:10
Hi everyone,

I have some trouble trying to encode an avisynth script, the audio is progressively out of sync (it's in sync in the beginning but totally out of sync at the end), even if I use Vfapi, with whatever encoder (VirtualDubMod or Tmpgenc for instance). The script is nothing more than a directshowsource() and when I play it, the audio is in sync. What's the problem?

Also, when i use avisource(), the audio is delayed of approximatively 750 ms.

Thanks in advance if anyone can solve these two problems.

foxyshadis
7th January 2008, 06:30
Maybe your framerate is getting mangled by the encoder? Check that it's staying at 23.976 and not getting set to 25 by the encoder/muxer. That's just a guess, without knowing your full workflow (script, encoding software, codec) it's hard to tell.

shadejv
7th January 2008, 18:22
I tried to encode with VirtualDubMod. The fps is 25, pal stuff, and i didn't change it in VirtualDubMod. I used Xvid codec with a quantitizer of 2. I wanted to convert the video to 29.97 with this script :
Bob(height=480)
BicubicResize(640,480)
ChangeFPS(60000, 1001)
SeparateFields.SelectEvery(4,0,3)
Weave()

At first, I thougt there was a problem with the script so I tried with a simpler one, nothing more than a directshowsource() and the problem was still there. Audio is vbr though, but the script played nicefully with Media Player Classic.

Lately, I encoded a Yatta'd script with megui, audio was encoded with besweet, and there weren't any problem with audio/video synchronization.

Do you also have any idea about my avisource problem?