[FFmpeg-devel] Frame blending filter

Stefano Sabatini stefano.sabatini-lala at poste.it
Fri May 20 16:53:03 CEST 2011

On date Friday 2011-05-20 15:12:30 +0200, Michael Niedermayer encoded:
> On Fri, May 20, 2011 at 12:36:57PM +0200, Robert Krüger wrote:
> > 
> > Hi,
> > 
> > I'm trying to make slomos smoother, e.g. interpolating 25fps to 50fps to have a smooth 50% slomo when the resulting 50 fps is played back at 25 fps. My understanding is that no filter for that kind of thing exists currently as part of ffmpeg. AFAIK ffmpeg just duplicates frames when increasing frame rate or allows framerate to be interpreted differently using the setPTS filter.
> > 
> > As a "cheap" alternative to real frame interpolation (which would probably involve motion vectors, I suppose btw. are these exposed in public API at the moment?)
> AVFrame.motion_val
> but that is libavcodec API and current not propagated through the
> filter graph
> though keep in mind that
> 1. these would be the vectors the encoder used and thus a bad encoder
>    means bad vectors and bad interpolation
> 2. The vectors with good encoders are choosen to maximize quality per
>    bitrate not "be close to the actual real motion"
> So i suspect it would work better if you just redo the motion
> estimation

This was proposed much time ago, a filter doing motion estimation
(relying on libavcodec code) would be cool and could even help to
improve the current libavcodec ME implementation.
FFmpeg = Frightening & Fostering Mortal Powerful Elitarian Gorilla

More information about the ffmpeg-devel mailing list