[MPlayer-dev-eng] How to retrieve the actual number of audio channels?

Ingo Brückl ib at wupperonline.de
Mon Mar 24 17:20:41 CET 2014


It seems that sh_audio->channels only reports the number of channels of a
downmix(?):

  ./mplayer /media/cdrom/AC3/prologe.AC3 -v
  [...]
  ==> Found audio stream: 0
  ======= WAVE Format =======
  Format Tag: 8192 (0x2000)
  Channels: 6
  Samplerate: 48000
  avg byte/sec: 56000
  Block align: 1
  bits/sample: 0
  cbSize: 0
  [...]
  hwac3: switched to AC3, 448000 bps, 48000 Hz

  AUDIO: 48000 Hz, 2 ch, ac3be, 448.0 kbit/29.17% (ratio: 56000->192000)

How can I retrieve the information about the actual 6 channels, not just the
2 channels (which I still don't understand with AC3 pass-through S/PDIF,
by the way).

I would then block balance control for number of channels != 2.

(This question may be related to my recent postings "Sound issue with ac3 on
PC speakers" on the user list.)

Ingo


More information about the MPlayer-dev-eng mailing list