Click to Display Table of Contents Navigation: Operation > Custom encoders |
Custom encoders feature allows you to use any custom command line encoders. RadioCaster can use any command line encoder that supports input/output to console.
To configure custom encoders, in the menu click RadioCaster -> Custom Encoders...
Encoder command line parameters can include the following variables (the values correspond to the encoder settings in RadioCaster):
{SampleRate} - sample rate in Hz (e.g. 44100)
{KSampleRate} - sample rate in kHz (e.g. 44.1)
{Bitrate} - bitrate in kbps (e.g. 128)
{Channels} - number of channels (e.g. 2)
The encoder must be told (via the command-line) to expect input from STDIN, rather than a file, and to send output to STDOUT.
The MIME type depends on the encoder file format.
RadioCaster sends 16-bit signed int PCM data to encoder, Little-Endian.
Example: command line for lame.exe MP3 encoder
path_to_lame\lame.exe -r -s {KSampleRate} -b {Bitrate} --resample {KSampleRate} - -
Example: command line to send uncompressed RAW PCM. pcmraw.exe encoder is located in the Plugins folder where you have installed RadioCaster (default C:\Program Files (x86)\RadioCaster)
C:\Program Files (x86)\RadioBOSS\Plugins\pcmraw.exe - -