[MPlayer-dev-eng] Framerate filter?

D Richard Felker III dalias at aerifal.cx
Sun Apr 13 23:13:45 CEST 2003


On Sun, Apr 13, 2003 at 04:02:07PM -0500, Joey Parrish wrote:
> On Sun, Apr 13, 2003 at 03:34:47AM -0400, D Richard Felker III wrote:
> > IMO, the solution is to move the frame skipping (and possibly also
> > duplication) code OUT of mencoder.c, and into a video filter. This
> > filter would normally be loaded first when running mencoder (for
> > legacy behavior), but it could instead be loaded after telecine
> > removal. What it would do is read an exported PTS value from
> > mplayer/mencoder, and use this value to decide whether or not to drop
> > a frame.
> 
> I like this idea.  I would very much like to have a frame dropping vf.
> This would be great for example png, jpeg, and gif vo's where you might
> not want all frames output.  I have code in vo_gif89a to drop frames
> based on a really simple algorithm, but the code would be greatly
> simplified/cleaned by getting this functionality from mplayer.  Then you
> would, for example, save a lot of space with -vo {gif,jpeg,png} by
> inserting -vf drop=3.33 to get output at 3.33 fps.  Would the current
> design of mplayer allow this kind of thing as a filter?

It should, except that mplayer/mencoder has to export the PTS to it...
Also there's the issue of broken DVD's where PTS resets in the middle
of the file, and I'm not sure how to handle them...

Rich



More information about the MPlayer-dev-eng mailing list