[MPlayer-dev-eng] [PATCH] intresample first attempt

Anders Johansson ajh at watri.uwa.edu.au
Sun Oct 20 10:11:24 CEST 2002


Hi,

> Hash: SHA1
> 
> Hi!
> 
> This patch makes a new filter af_intresample, and makes mplayer use that
> instead of af_resample.
> Also it changes two lines in mplayer - with these my test cvid + 11127 hz pcm 
> avi plays smooth, otherwise it was choppy on the zaurus (and af_resample took 
> a minute to build the filter stuff).

I knew there would be a sample frequency somewhere that would contain a
big enough prime number :). Could you check the "up" and "down" numbers
(mplayer -v) and post them here.

> This is just the first attempt, I send this so maybe you can
> give some comments how to integrate these into mplayer, or
> let me know if that is not actually possible.

Nice filter! I want to include it in the current resample and enable
it with something like -af linint. If you could rewrite the
intresample() function to work with 1 to 6 channels and resend it -
then I can do the integration. Also I guess you are aware that the
filter creates a frequency offset that changes over time, that could be
fixed by using a counter to add samples when the counter passes "step"
(I think).

I really hope you don't mind if we don't make it a separate filter,
the reason is that I want it to work with the automatic conversion.

> bye
> Denes
> 

Cheers,
//Anders





More information about the MPlayer-dev-eng mailing list