From d9582ad0a41ed5452ad29bf8511e8c6a3bdbe6f8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 9 May 2013 12:09:23 +0200 Subject: 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. --- DOCS/man/en/af.rst | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'DOCS/man') 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. + + + Force conversion to this format. See ``format`` filter for valid audio + format values. + + + Force conversion to a specific sample rate. The rate is an integer, + 48000 for example. + + + Force mixing to a specific channel layout. See ``--channels`` option + for possible values. + + + + + + + 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 -- cgit v1.2.3