Log in

View Full Version : Video/audio synching?


JyNxTeR
17th July 2005, 18:33
Ok, I've searched a lot and tried to follow all the guides but what I'm trying to do seems incredibly long for such a simple thing?

Ok, What I'm trying to do is to take pieces of *.avis or mpegs and put them together to make a long video. So far, I encoutered 1 or 2 problems, first all these clips aren't the same video size, but I don't know if this matters yet. Second, they have different video sampling rate, meaning the fps is not the same. But I saw there's a way to quickly change the framerate, but it desynchs the audio. I looked around on how to synch, but I was wondering if there was a quick and easy way to convert the video AND synch the audio automatically with the new frame rate setting. Ideas ?

Thanks a lot.

LocalH
17th July 2005, 18:40
Avisynth's ConvertFPS should do this for you. Try something like this:
a=AVISource("15fps.avi")
b=AVISource("30fps.avi")
c=AVISource("10fps.avi")
ConvertFPS(a,30000,1001)++ConvertFPS(b,30000,1001)++ConvertFPS(c,30000,1001)The weird '30000' and '1001' is just to make sure that the frame rate is exactly 29.97fps. If you're in PAL land, you can replace each of the "30000,1001" strings with a simple "25". ConvertFPS does a similar job to simpler standalone standards converters (but it doesn't do the motion interpolation that the pros use to make PAL footage perfectly smooth on NTSC).

JyNxTeR
17th July 2005, 21:33
it says I need yuy2 input.. ??

LocalH
17th July 2005, 22:01
Try this then:

a=AVISource("15fps.avi").ConvertToYUY2
b=AVISource("30fps.avi").ConvertToYUY2
c=AVISource("10fps.avi").ConvertToYUY2
ConvertFPS(a,30000,1001)++ConvertFPS(b,30000,1001)++ConvertFPS(c,30000,1001)

JyNxTeR
17th July 2005, 23:05
wow... it works. Lol! Finally. this is great. Thanks a lot.