I'm having some audio sync problems with an XViD file with MP3 audio. My audio sounds like it's the right tone, the picture looks like it's the right speed rate, but the audio comes maybe a second before the video. I used GSpot to confirm what codecs are used for video/audio and it says I have a MPEG Layer-3 Decoder-->Morgan Stream Switcher for MP3 audio. Then I extracted the MP3 using VirtualDub, direct stream copy. If I use HeadAC3he to convert MP3 --> MP2, I get an error message "Read less bytes than expected" about 1/3 way through. So I used BeSweet to convert MP3 --> WAV, also setting it to downsample 48000 --> 44000 to suit my DVD player. Then I can convert the WAV --> MP2 in HeadAC3he, 128 kbps.
When I encode the XViD --> MPEG in TMPGEnc, I follow the Black Night guide to the tee. Here's my AVISynth file:
Code:
LoadPlugin("d:\program files\avisynth2\plugins\MPEG2DEC.dll")
LoadPlugin("d:\program files\avisynth2\plugins\LegalClip.dll")
LoadPlugin("d:\program files\avisynth2\plugins\Blockbuster.dll")
LoadPlugin("d:\program files\avisynth2\plugins\FluxSmooth.dll")
LoadPlugin("d:\program files\avisynth2\plugins\Sampler.dll")
LoadPlugin("d:\program files\avisynth2\plugins\GripFit_Preview.dll")
avisource("E:\Movies\Sweet.Home.Albama.DVDRip.XViD-ViTE\sha-xvid.avi", false)
LegalClip()
GripCrop(528, 480, overscan=1)
GripSize()
FluxSmooth()
LegalClip()
#Sampler(length=24)
I'm using the KVCD x3 template at a CQ of 71 in order for the movie to fit on one CD. Finally a mux in BBMPEG and burn with Nero.
Does anyone know what I'm doing wrong? Oh and there is no sync problem with the original AVI file.