[MPlayer-dev-eng] [PATCH] Alternate syntax for -af pan

Nicolas George nicolas.george at normalesup.org
Sun Feb 28 15:12:21 CET 2010


Hi.

With the rise of market share of blu-ray, I expect we will see more and more
of files with a lot of channels. Since (1) not all codecs can remix the
channels to suit the output hardware and (2) a lot of files will be wrong
anyway, I expect we will see a rise in the need for -af pan.

The attached patch adds a new syntax for the argument of the pan filter. Let
me quote the man page:

      As an alternative to giving all the coefficients, the  following
      syntax is possible:
		pan=n:och~[k]ich[+...]:och~...
      <och>
	   output channel number, either as Onumber or as a name among
	   FL, FR, RL, RR, FC, LF, case insensitively.
      <ich>
	   input channel number, like <och> but with an I.
      <k>
	   coefficient (floating point); defaults to 1.

      EXAMPLE:
	 mplayer -af pan=3:fl~i0:fr~i1:o2~0.5i0+0.5i1 media.avi
	      Does the same as the second example above.
	 mplayer -af pan='2:
	      fl ~ 0.4fl + 0.4rl + 0.2fc :
	      fr ~ 0.4fr + 0.4rr + 0.2fc' media.avi
	      Would downmix 5.0 surround (or 5.1 discarding  the  LFE)
	      to stereo.  Note that this syntax allows sensibly-placed
	      spaces (provided they are quoted at the shell level).

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-panparse-20100228.diff
Type: text/x-diff
Size: 3839 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100228/ab972ed8/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100228/ab972ed8/attachment.pgp>


More information about the MPlayer-dev-eng mailing list