Blame doc/a52.txt

Packit 675970
A52 OUTPUT PLUGIN
Packit 675970
=================
Packit 675970
Packit 675970
This plugin converts S16 linear format to A52 compressed stream and
Packit 675970
send to an SPDIF output.  It requires libavcodec for encoding the
Packit 675970
audio stream.
Packit 675970
Packit 675970
A PCM using this plugin can be defined like below:
Packit 675970
Packit 675970
	pcm.myout {
Packit 675970
		type a52
Packit 675970
	}
Packit 675970
Packit 675970
In addition, the following options are available:
Packit 675970
Packit 675970
- The "card" option specifies the card ID or number of the SPDIF.
Packit 675970
  The output PCM becomes "iec958:{CARD=$CARD}" with extra AESx
Packit 675970
  settings.  When omitted, the default card is used.
Packit 675970
Packit 675970
- The "slavepcm" option specifies a string of the slave PCM
Packit 675970
  explicitly.  This is useful if a device has no proper SPDIF
Packit 675970
  configuration (e.g. usb-audio), or if you want to pass your own PCM
Packit 675970
  definition.  This option is exclusive with "card" option.
Packit 675970
Packit 675970
- The "rate" option specifies the input/output sample rate in HZ.
Packit 675970
  The accepted rate is either 44100 or 48000.
Packit 675970
  When omitted, 48000 is used.
Packit 675970
Packit 675970
- The "channels" option specifies the number of _input_ channels.
Packit 675970
  It must be either 2, 4 or 6.  The default value is 6.
Packit 675970
Packit 675970
- The "bitrate" option specifies the bit-rate of the compressed
Packit 675970
  stream in kbps.  Too small or too big value may not be accepted by
Packit 675970
  the encoder.  When omitted, 448 is used.
Packit 675970
Packit 675970
- The "format" option specifies the output format type.  It's either
Packit 675970
  S16_LE or S16_BE.  As default, S16_LE is used.
Packit 675970
Packit 675970
An example using the secondary card, 44.1kHz, 4 channels, output
Packit 675970
bitrate 256kbps and output format S16_BE looks like below: 
Packit 675970
Packit 675970
	pcm.myout {
Packit 675970
		type a52
Packit 675970
		card 1
Packit 675970
		rate 44100
Packit 675970
		channels 4
Packit 675970
		bitrate 256
Packit 675970
		format S16_BE
Packit 675970
	}
Packit 675970
Packit 675970
For using slavepcm option,
Packit 675970
Packit 675970
	pcm.mypcm {
Packit 675970
		card 1
Packit 675970
		device 2
Packit 675970
	}
Packit 675970
Packit 675970
	pcm.myout {
Packit 675970
		type a52
Packit 675970
		slavepcm "mypcm"
Packit 675970
	}
Packit 675970
Packit 675970
Packit 675970
The plugin reads always S16 format (i.e. native-endian) as input, so
Packit 675970
you'd need plug layer appropriately to covert it.