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