[MPlayer-dev-eng] Can this be a basis of skip filter that I need

D Richard Felker III dalias at aerifal.cx
Fri Oct 8 17:12:27 CEST 2004


On Fri, Oct 08, 2004 at 12:44:31PM +0100, VJ wrote:
> Hi,
>   I went thru docs and found some info about filters. Till now what I have
> understood is that I may have to do something like following:
> 
> *****************************************
> static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
>     mp_image_t *dmpi;
> 
>     // hope we'll get DR buffer:
>     dmpi=vf_get_image(vf->next,mpi->imgfmt,
> 	MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
> 	mpi->w, mpi->h);
>     if( allow_frame_to_passthru(cur_frame) )
>      return vf_next_put_image(vf,dmpi);
> }
> 
> //where function allow_frame_to_passthru (int cur_frame) returns 0 or 1
> depending on the fact that current frame can be sent to output or not,
> thus dropping unwanted frames. The list of frames to be dropped can be
> created during init of the filter (passed in the format
> 1,1000-1200,1500-1530 for example do remove frames 1, 1000 to 1200 and
> then from 1500 to 1530.)

dropping these frames won't work like an editlist. you'll just end up
with huge segments in out output file with a still picture (the last
frame before the drops). so i'm not sure why you want to do this
anyway...

rich




More information about the MPlayer-dev-eng mailing list