Log in

View Full Version : Audio out of synch due to Avisynthscript-Settings??


storebror
1st January 2005, 17:00
Hi. Did capture one of my old VHS musicvideos to an mpeg2-file using my WinTV2000 capturecard. So far so good. However,when demuxing it into a separate .m2v-file and a .wav-file(for improving the videoquality through an avisynth-script)and feeding these two files into a DVD-author program i get an Audio out of synch issue. This is totally weird since thw VHS source is a 25fps PAL and the outputted mpeg2-file is perfectly in synch all the the way for the entire 90 minutes. Why do i get this and what to do about it? Could it have something to do with the settings in my avisynthscript? Is it a bug? Why does it says when i check the mpeg2-file in the VDubMPEG2/Video/framrate:"Video:25 fps" , "Audio:24996fps"(??) All help will be appreciated
:)
Thx.
My script:
---------------------------------------------
LoadPlugin("D:\Program\AviSynth 2.5\plugins\mpeg2Dec3.dll")
LoadPlugin("D:\Program\AviSynth 2.5\plugins\degrainmedian.dll")
LoadPlugin("D:\Program\AviSynth 2.5\plugins\RemoveDirt.dll")
LoadPlugin("D:\Program\AviSynth 2.5\plugins\Msharpen.dll")
MpegSource("E:\Movietemp\DVD\Jarret trio Japan_86.mpeg")
SeparateFields()
Crop(0,0,720,288)
Weave()
#Trim(0,135395).FadeOut(150)
ConvertToYUY2()
DeGrainMedian(limitY=7,limitUV=11,mode=1)
RemoveDirt(athreshold=70, mthreshold=130)
Msharpen(strength=50,debug=true)
AddAudio()

hartford
2nd January 2005, 02:19
The WinFast rarely gets the audio sampling rate exactly as you set it.
Either the video or the audio is the master stream; one or the other will
be exact, but the problem remains.

I'm guessing that your authoring program "sees" the audio rate as 24K, then
resamples it.

To fix the audio, you need to resample it to some standard rate.

storebror
2nd January 2005, 12:00
I've tried to resample the sound from 24 fps to 25 fps with BsSweet but only end up with a stuttering new wav-file. is there another way?