PDA

View Full Version : Change Frame Rate via ffdshow filter


David1105
26th April 2008, 02:42
Is it possible to use ffdshow filter to change frame rate in a Directshow graph before running the graph?

If so, where is the setting or interface method for it?

Thanks!

foxyshadis
2nd May 2008, 08:42
The simplest way to arbitrarily change the framerate is through the avisynth script filter; use AssumeFPS or any other fps converter to change the output timestamps. This only works in ffdshow tryouts.

Leak
2nd May 2008, 11:55
The simplest way to arbitrarily change the framerate is through the avisynth script filter; use AssumeFPS or any other fps converter to change the output timestamps. This only works in ffdshow tryouts.
Unless I'm totally wrong I think I made pretty sure that AssumeFPS is a no-op in ffdshow's AviSynth filter, since it doesn't use the FPS value that AviSynth reports but just interpolates the new timestamps from the existing ones based on the number of input frames vs. the number of output frames.

I.e. if you're using a bob filter which returns twice the number of frames you'll get frames that have half the duration...

But rather than (ab-)using AviSynth to just change the framerate I'd say it would make more sense as an option of ffdshow itself, as that already twiddles the timestamps anyway...

np: Nine Inch Nails - Ghosts IV (Ghosts I-IV)

Inventive Software
2nd May 2008, 14:14
Is there a way within ffdshow of changing the video frame rate? I did actually use AssumeFPS within AviSynth, and it slowed it down but not to the desired framerate. I haven't updated ffdshow in a while though.