diff options
author | wm4 <wm4@nowhere> | 2013-05-09 12:09:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-12 21:24:56 +0200 |
commit | d9582ad0a41ed5452ad29bf8511e8c6a3bdbe6f8 (patch) | |
tree | 670739580ec0dea28a48a6d345e01bd168a2870c /DOCS | |
parent | ce2515ddb85669b1607989f69d7ec9eb89b42819 (diff) | |
download | mpv-d9582ad0a41ed5452ad29bf8511e8c6a3bdbe6f8.tar.bz2 mpv-d9582ad0a41ed5452ad29bf8511e8c6a3bdbe6f8.tar.xz |
audio/filters: add af_force
Its main purpose is for testing in case channel layout stuff breaks, in
particular in connection with old audio filters.
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/en/af.rst | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/DOCS/man/en/af.rst b/DOCS/man/en/af.rst index 5c08b5f048..08e7853990 100644 --- a/DOCS/man/en/af.rst +++ b/DOCS/man/en/af.rst @@ -210,6 +210,34 @@ channels=nch[:nr:from1:to1:from2:to2:from3:to3:...] Would change the number of channels to 6 and set up 4 routes that copy channel 0 to channels 0 to 3. Channel 4 and 5 will contain silence. +force=in-format:in-srate:in-channels:out-format:out-srate:out-channels + Force a specific audio format/configuration without actually changing the + audio data. Keep in mind that the filter system might auto-insert actual + conversion filters before or after this filter if needed. + + All parameters are optional. The ``in-`` variants restrict what the filter + accepts as input. The ``out-`` variants change the audio format, without + actually doing a conversion. The data will be 'reinterpreted' by the + filters or audio outputs following this filter. + + <in-format> + Force conversion to this format. See ``format`` filter for valid audio + format values. + + <in-srate> + Force conversion to a specific sample rate. The rate is an integer, + 48000 for example. + + <in-channels> + Force mixing to a specific channel layout. See ``--channels`` option + for possible values. + + <out-format> + + <out-srate> + + <out-channels> + format[=format] Convert between different sample formats. Automatically enabled when needed by the sound card or another filter. See also ``--format``. @@ -293,6 +321,11 @@ pan=n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...] channels 0 and 1 into output channel 2 (which could be sent to a subwoofer for example). + *NOTE*: if you just want to force remixing to a certain output channel + layout, it's easier to use the ``force`` filter. For example, + ``mpv '--af=force=channels=5.1' '--channels=5.1'`` would always force + remixing audio to 5.1 and output it like this. + sub[=fc:ch] Adds a subwoofer channel to the audio stream. The audio data used for creating the subwoofer channel is an average of the sound in channel 0 and |