[MPlayer-dev-eng] Can this be a basis of skip filter that I need
VJ
vj at vijaygill.homelinux.net
Fri Oct 8 17:11:11 CEST 2004
Hi,
Thanks for reply. I want this so that I can prevent some frames from
making into the final encoded file. I assumed that if nothing is out put
from a filter, it does not go into final encoded file. That is why my
c/pseudo-code did not put the frames which where supposed to be dropped.
Any help will be welcome. I wish to implement soemthing in mplayer.
Thanks.
VJ
On Fri, October 8, 2004 4:12 pm, D Richard Felker III said:
> 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
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
More information about the MPlayer-dev-eng
mailing list