[MPlayer-dev-eng] [PATCH] fix for -srate bug

D Richard Felker III dalias at aerifal.cx
Tue Oct 19 03:04:44 CEST 2004


On Tue, Oct 19, 2004 at 01:37:02AM +0200, Diego Biurrun wrote:
> Giacomo Comes writes:
> > 
> > There are three mode of using the resample filter:
> > 
> > 1) mplayer 18010.asf -af resample=44100:0:0 (fast mode with distortion)
> > 2) mplayer 18010.asf -af resample=44100:0:1 (normal mode without distortion)
> > 3) mplayer 18010.asf -af resample=44100:0:2 (normal mode without distortion but with some noise)
> > 
> > It looks to me that:
> > 	mplayer 18010.asf -srate 44100 
> > is equivalent to mode 1 and
> > 	mplayer 18010.asf -af resample=44100 
> > is equivalent to mode 2
> > 
> > So using -srate 44100 turn on fast mode, but using only -af resample=44100 doesn't.
> > 
> > I wated to use mencoder with -srate 44100 and got distortion.
> > mecoder -af resample=44100 didn't work.
> > 
> > But now I have seen that if I use: 
> > 	mecoder -af resample=44100 -srate 44100
> > it works and select mode 2. So if I use -af resample togheter with -srate
> > I can control the resampling in mencoder.
> > 
> > This should go in the documentation, or mencoder should be fixed and be able to use
> > -af resample without -srate.
> 
> What is the problem, -af should work with MEncoder.

it doesn't. when the broken af was first committed it was designed for
the output end to be overridden by the negotiated parameters between
the codec and the ao driver. mplayer was fixed but mencoder never was.
so even if you specify resample, mencoder will reconfigure your
resample filter to resample to the original rate... :(

rich




More information about the MPlayer-dev-eng mailing list