Toolame is an open source implementation of MPEG-1/2 Layer II audio coding.
It supports also options to add 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
toolame -s 48 -D 4 -b 128 /dev/stdin /dev/stdout
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.