Log in

View Full Version : Fps settings in different Sources and editing an AudioDub


dahlany
9th September 2008, 04:29
This example works for keeping audio and video in sync,
even when moving the location bar.
If info shows 25 fps;
DirectShowSource("videofile", fps=25, convertfps=true)

This seems to lock in the sync as opposed to using a plain
DirectShowSource("videofile")

Is there an superceded way of writing this exampel?


Somethimes when using avisource the a/v will get out of sync when moving the bar around.
Is there an AviSource equivalent?



This should probably have been put this in its own thread;
How is an editing action like Trim added to an AudioDub.
This does not seem to work.
video = DirectShowSource("videofile")
audio = WavSource("audiofile")
AudioDub(video, audio)
Trim(1000,0)

Comatose
9th September 2008, 05:25
Sounds like the video is VFR, and since Avisynth is not VFR aware, you go out of a/v sync.
The first DSS call is converting to CFR, so it stays in sync.

The audiodub thing is correct, but I'm guessing it doesn't work for you because you're using it with VFR video. If you want to accurately cut the audio in sync to the video then you need to use a CFR video, or use something like BeSplit with timestamps.

IanB
9th September 2008, 15:03
EnsureVBRMP3Sync()

Comatose
11th September 2008, 15:53
Oh. Well that might be it too I guess.