Table of Contents
Centauri user manual revision level 01 /2007
65
7.4.
HTTP streaming over IP
7.4.1.
HTTP Streaming
In loop-mode operation the Merk II is able to generate one audio stream (encoder) which
can be executed by HTML command files stored in the WWW directory of the Merk II. It
can be activated from any web client or media player.
.
7.4.2.
Structure of HTTP Command Files
The HTML command files have a strictly defined structure (see also sample files):
Syntax:
<!--#exec cgi="/streamfile.cgi <Param1> <Param2> <Param3>
<Param4> <Param5>"-->
Parameters:
Param1: [SlotNr]
Param2: [Algorithm]
Param3 [Samplerate]
Param4: [Bitrate]
Param5: [Mode]
–
SlotNr
defines the encoder slot that should run the requested algorithm. This value
has to be 1 for Merk II, for there is just one slot available.
–
Algorithm
,
Samplerate
,
Bitrate
and
Mode
must be used as defined in the encoder
section of the Centauri Gateway, Communication Reference Manual.
Streaming with different sample rates does not function correctly unless the rates are
multiples of the running sample rates. Example: A mix of 32 and 48 kHz does not work.
A mix of 8, 16, and 32 kHz or a mix of 8, 16 and 48 kHz works well.
Sample files:
Stream1.htm:
<!--#exec cgi="/streamfile.cgi 1 mpegl3 44100 48000 mono"--
>
Stream2.htm:
<!--#exec cgi="/streamfile.cgi 1 mp3pro 44100 48000 mono"--
>
7.4.3.
Generating HTTP Command Files
A HTTP command file can be generated with any common text editor. It contains one line
using the structure described above. Additional lines are not read. The file can be saved
under any name with the .htm extension. After generating the command file, it has to be
transferred by an FTP client program to the D:\www\ folder at the Merk II, where it is made
available via the net.