[MPlayer-users] Re: How do I force keyframes at specific frames?

D Richard Felker III dalias at aerifal.cx
Mon Mar 15 21:09:17 CET 2004


On Mon, Mar 15, 2004 at 07:38:19PM -0000, Bruno wrote:
> On Mon, 15 Mar 2004 14:26:25 -0500, The Wanderer 
> <inverseparadox at comcast.net> wrote:
> 
> >Bruno wrote:
> >
> >>Hi,
> >>
> >>Is it possible to force keyframes at specific frames?
> >
> >At present MPlayer cannot do this, unless I'm much mistaken. The only
> >way to determine keyframes in MPlayer is with the keyint video-codec
> >option, which sets the interval in frames from one keyframe to the next.
> >
> >It might be possible to create a 'filter' which would override this for
> >specified frame offsets... but I don't know how offhand.
> >
> 
> I wonder if it would be too troublesome to adapt vrc_override for this 
> task :/
> After all, it already deals with quantizers and quality, just not frame 
> type...

If you're doing 2pass encoding, you can just edit the log file to
change the desired frames to I frames, and the second pass should
honor it. But this will mess up the bitrate estimation a bit.
Hopefully as long as you only change a few (and they're far apart), it
won't matter too much.

Rich




More information about the MPlayer-users mailing list