[MPlayer-cvslog] CVS: main/libaf af_sinesupress.c, NONE, 1.1 af.c, 1.52, 1.53 control.h, 1.9, 1.10 Makefile, 1.29, 1.30

Michael Niedermayer michaelni at gmx.at
Thu Apr 13 14:36:59 CEST 2006


Hi

On Thu, Apr 13, 2006 at 03:24:09PM +0300, Jan Knutar wrote:
> On Thursday 13 April 2006 15:11, Guillaume Poirier wrote:
> > Michael Niedermayer CVS wrote:
> > 
> > > very simple filter which can remove a sine at a specified frequency, usefull to get rid of the 50/60hz noise on ultra crappy equipment
> > > probably works only with 1 channel input
> > 
> > Good! ... now, how to use it? What are the parameters?
> > I'm more used to libmpcodecs-style parameters passing, so I can't see what are the expected parameters, nor do I see what type and range they accept.
> > 
> > I'm _guessing_ the expected parameters are:
> 
> The commandline parsing is here:
> 
>   case AF_CONTROL_COMMAND_LINE:{
>     float f1,f2;
>     sscanf((char*)arg,"%f:%f", &f1,&f2);
>     s->freq = f1;
>     s->decay = f2;
>     return AF_OK;
>   }
> 
> So it accepts two floats: freq:decay
> 
> None the wiser about their units and magnitudes, though :)

freq = frequency of the sine which should be removed
delay = parameter which controls the adaptivity (larger and it will adapt to
amplitude & phase changes quicker, smaller and it will be slower adapting, 
a reasonable value to start with is 0.001

[...]
-- 
Michael

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the MPlayer-cvslog mailing list