[Mplayer-cvslog] CVS: main/libmpcodecs dec_audio.c,1.14,1.15

Anders Johansson ajh at watri.uwa.edu.au
Sun Oct 20 08:05:30 CEST 2002


Hi,

> Anders Johansson writes:
>  > Modified Files:
>  > 	dec_audio.c 
>  > Log Message:
>  > Adding -format and -af switches
> 
> Could you please add these to the man page?  Thanks

There are basically three new switches and some generic documentation
that needs to be added to the documentation at the moment for the new
audio filter layer. The documentation is valid both for mencoder and
for mplayer. I will write some more docs for the -af switches when the
source is starting to stabilize (couple of weeks from now).


Audio filters 
The audio filters in MPlayer can be used for changing the properties
of the audio stream(s) before the sound reaches the encoding in
mencoder or the sound card in mplayer. The filters are currently
enabled automatically so that any audio data can be played or
recorded to any type of output device or audio encoder. The properties
that can be changed are number of channels and sample frequency and
format. The settings are probed and automatically configured but can
be overridden by using the -channels -rate and -format switches
respectively.

-channels
Change the number of playback channels. If the number of output
channels is bigger than the number of input channels empty channels
are inserted. The exception is mixing from mono to stereo, then the
mono channel is repeated in both the output channels. If the number of
output channels is smaller than the number of input channels the
exceeding channels are truncated. A mixer filter will correct the
shortcomings of this filter in the future.

-rate
Select output sample rate from the filter layer in <Hz>. 

-format 
Select the format used for output from the filter layer. The
format is selected according to the defines in libao2/afmt.h.




> Diego

//Anders




More information about the MPlayer-cvslog mailing list