Toolame is an open source implementation of MPEG-1/2 Layer II audio coding.
It also supports the necessary options to add a DAB PAD field on every frame.
-s <kHz>: sampling rate in kHz -D <bytes>: add x bytes to every MPEG frame for DAB support -b <bitrate>: output bitrate in kbit/s
See toolame man page for detailed information
toolame -s 48 -D 4 -b 128 /dev/stdin /dev/stdout
Get linear stream from standard input, encode it at 128kbit/s, add 4bytes for DAB PAD and output stream to standard output (this command is typically used, "piped" with other commands for live encoding in a DAB transmission)
A more recent fork called twolame exists. Despite de fact that the code has been cleaned, twolame has lost DAB support that was present in toolame. So be careful to install toolame and not twolame for DAB tests.
JACK version (BETA)
Matthias Brandli has modified the latest version of toolame (version 02l) to support JACK Audio Connection Kit input. It can be found here: File:Toolame-02l-jack-1.tar.bz2
This version will compile to toolame-jack, and supports two additional options:
-j Enable JACK input -n <name> Specify JACK name
All other options are unchanged.
The mercurial repository for the modifications is located at http://hg.mpb.li/toolame-02l-jack/