PDA

View Full Version : Audio/Video out of sync with wmv


netrex
20th July 2006, 19:35
I'm using this code as it's all I need done:
DirectShowSource("e:\video.wmv")
Lanczos4Resize(512,288)
But the audio starts lagging behind more and more even though both video and audio is playing at correct speed, but of course, one of them aren't, and it's probably the video for some reason.

I also tried:
DirectShowSource("e:\video.wmv",fps=24)
Lanczos4Resize(512,288)
But it didn't change anything.

I've tried without any resizing as well, but the problem persists.

It's only a short video, 74 seconds, but at the end the sound is about 3 seconds behind the video. The sound sounds correct, so I assume the samplerate is correct, with that much lag, I think I would have noticed it if it was wrong, but the picture looks correct as well, and Fraps says it runs at a stable 24 FPS all the time.

Boulder
20th July 2006, 20:22
Open the script in VirtualDub and see what it says about framerates in Video->Frame rate.

foxyshadis
20th July 2006, 20:28
You'll usually need convertfps=true with wmv, because they're usually somewhat vfr.

netrex
20th July 2006, 22:12
Open the script in VirtualDub and see what it says about framerates in Video->Frame rate.
Says 24 FPS there as well

You'll usually need convertfps=true with wmv, because they're usually somewhat vfr.
That did the trick :D works perfectly now :thanks: