Log in

View Full Version : DirectShowSource = Sound out of sync


Sirber
10th December 2003, 21:07
Hi

With this script:LoadPlugin("D:\Projets\RealAnime\output\avs\Convolution3DYV12.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\Decomb510.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\Dup.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\FluxSmooth-2.5.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\MSharpen.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\MSmooth.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\UnDot.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\asharp.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\MPEG2Dec3.dll")
anime = DirectShowSource("source.avi")
anime = EnsureVBRMP3Sync(anime)
anime = UnDot(anime)
return animeI get sound out of sync after 1 minute.

Using this code:LoadPlugin("D:\Projets\RealAnime\output\avs\Convolution3DYV12.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\Decomb510.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\Dup.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\FluxSmooth-2.5.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\MSharpen.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\MSmooth.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\UnDot.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\asharp.dll")
LoadPlugin("D:\Projets\RealAnime\output\avs\MPEG2Dec3.dll")
anime = AviSource("source.avi")
anime = EnsureVBRMP3Sync(anime)
anime = UnDot(anime)
return animethere is no sync problem. Any idea?

:confused:

[edit]

Oh... I'm using AVISynth 2.5.3 :)

Sirber
10th December 2003, 22:19
I tryed on a clean computer and the problem is still there. :(

Boulder
11th December 2003, 09:47
Have you tried specifying the framerate for the clip in DirectShowSource with the fps parameter?

sh0dan
11th December 2003, 21:22
Check the samplerate. DirectShow might report a wrong samplerate. What's your video/audio codec?

Sirber
7th January 2004, 03:49
Video: WMV9
Audio: MP3 VBR

about FPS, I let it alone.

Mug Funky
7th January 2004, 15:23
i've seen libMad in ffdshow do some odd things with mp2/mp3

like the samplerate halving on the first load, but being fine on the second :confused:

try a different mp3 directshow filter and see what happens.

Sirber
7th January 2004, 22:44
I'm using the one built in windows :)

Jocko Homo
26th October 2008, 22:54
I know this thread is old but I'm finding exactly the same behavior. Audio is out of sync when imported using DirectShowSource() but is okay when using AviSource().

I've never used AviSource() before since I use FFDShow, a DirectShow filter. I don't understand how I'm decoding XviD video with AviSource()...

Thank you...

kemuri-_9
26th October 2008, 23:41
activate FFDshow's vfw compatibility for the video codec you're trying to work with and then you can use it with AVISource.
xvid is vfw compatible thanks to the b-frame hack, so you can use it with AVIsource if it is within a .avi

Gavino
26th October 2008, 23:42
I've never used AviSource() before since I use FFDShow, a DirectShow filter. I don't understand how I'm decoding XviD video with AviSource()...
FFdshow also includes VfW codecs, as used by AviSource.

Edit: ... as just mentioned by kemuri-_9 :)