[FFmpeg-user] Parsed_pan_0 This syntax is deprecated. Use '|' to separate the list items

Moritz Barsnick barsnick at gmx.net
Tue Nov 18 16:03:01 CET 2014


On Tue, Nov 18, 2014 at 23:34:27 +0900, Kimio Miyamura wrote:
> > Please consider sending a patch.
> Patch for documentation?  Just replace ":" with "|"?

That's basically it. See attached. Too lazy to format correctly and
properly send to the correct list right now, with comments. Might do so
later.

> If I can write documentation, based on Moritz's comment, there seems
> to be backward compatibility right?

No, my comment regarding backward compatibility was based on something
else. Doc can be fixed to reflect current behavior, period. Attached.
:-)

> Should I open new discussion about "-ac 2"?  Or continue with this thread?
> 
> Briefly, the source is DVD dumped with mplayer and ffmpeg down-mix
> audio with "-ac 2", but if didn't down-mix with ffmpeg, ffplay seems
> to need pan filter to playback. Using "-ac 2" with ffplay dose not
> help.

If you ask me: Separate thread. ;-)

Moritz
-------------- next part --------------
diff --git a/doc/filters.texi b/doc/filters.texi
index c70ddf3..661df38 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1714,7 +1714,7 @@ This filter is also designed to remap efficiently the channels of an audio
 stream.
 
 The filter accepts parameters of the form:
-"@var{l}:@var{outdef}:@var{outdef}:..."
+"@var{l}|@var{outdef}|@var{outdef}|..."
 
 @table @option
 @item l
@@ -1724,6 +1724,7 @@ output channel layout or number of channels
 output channel specification, of the form:
 "@var{out_name}=[@var{gain}*]@var{in_name}[+[@var{gain}*]@var{in_name}...]"
 
+ at table @option
 @item out_name
 output channel to define, either a channel name (FL, FR, etc.) or a channel
 number (c0, c1, etc.)
@@ -1735,6 +1736,7 @@ multiplicative coefficient for the channel, 1 leaving the volume unchanged
 input channel to use, see out_name for details; it is not possible to mix
 named and numbered input channels
 @end table
+ at end table
 
 If the `=' in a channel specification is replaced by `<', then the gains for
 that specification will be renormalized so that the total is 1, thus
@@ -1745,13 +1747,13 @@ avoiding clipping noise.
 For example, if you want to down-mix from stereo to mono, but with a bigger
 factor for the left channel:
 @example
-pan=1:c0=0.9*c0+0.1*c1
+pan=1|c0=0.9*c0+0.1*c1
 @end example
 
 A customized down-mix to stereo that works automatically for 3-, 4-, 5- and
 7-channels surround:
 @example
-pan=stereo: FL < FL + 0.5*FC + 0.6*BL + 0.6*SL : FR < FR + 0.5*FC + 0.6*BR + 0.6*SR
+pan=stereo | FL < FL + 0.5*FC + 0.6*BL + 0.6*SL | FR < FR + 0.5*FC + 0.6*BR + 0.6*SR
 @end example
 
 Note that @command{ffmpeg} integrates a default down-mix (and up-mix) system
@@ -1774,25 +1776,25 @@ remapping.
 For example, if you have a 5.1 source and want a stereo audio stream by
 dropping the extra channels:
 @example
-pan="stereo: c0=FL : c1=FR"
+pan="stereo | c0=FL | c1=FR"
 @end example
 
 Given the same source, you can also switch front left and front right channels
 and keep the input channel layout:
 @example
-pan="5.1: c0=c1 : c1=c0 : c2=c2 : c3=c3 : c4=c4 : c5=c5"
+pan="5.1 | c0=c1 | c1=c0 | c2=c2 | c3=c3 | c4=c4 | c5=c5"
 @end example
 
 If the input is a stereo audio stream, you can mute the front left channel (and
 still keep the stereo channel layout) with:
 @example
-pan="stereo:c1=c1"
+pan="stereo|c1=c1"
 @end example
 
 Still with a stereo audio stream input, you can copy the right channel in both
 front left and right:
 @example
-pan="stereo: c0=FR : c1=FR"
+pan="stereo | c0=FR | c1=FR"
 @end example
 
 @section replaygain


More information about the ffmpeg-user mailing list