Log in

View Full Version : Synch audio/video on FLV with .avs


Starduster
26th August 2010, 22:37
I have a .flv with audio and video. However, when I run the following .avs, the audio and video are out of synch.

DirectShowSource(MOB.flv", fps = 29.97, convertfps = True)
ConvertToRGB32().Spline36Resize(640,480)

I tried adding EnsureVBRMP3Sync() but that didn't seem to do much.

What's a way to synch the audio and video?

poisondeathray
27th August 2010, 14:50
maybe the flv is VFR ?

you can use flvextract and check the timecodes

Frosty5689
27th August 2010, 17:41
Use FLVExtract, don't try to load it with DirectShowSource. After you use FLVExtract, there's a timecode file that'll be generated as well as a video source in mp4 container and sound in mp3 container. Just mux those along w/ the timecode.txt to say... mp4 or mkv container and it'll be able to load in Avisynth properly.