Multiplexing allows you to combine several live audio and video streams into a single broadcast stream. Query string parameters included with request URLs indicate which audio and video stream from the multiplexed stream to use.
The following syntax, included as a top-level list in the configuration file, defines the multiplexing feature:
<List Name="Multiplexer">
<Var GlobalEnable="1"/>
<Var VideoQueryParamName="vid"/>
<Var VideoBRQueryParamName="vidbr"/>
<Var AudioQueryParamName="aud"/>
<Var AudioBRQueryParamName="audbr"/>
<Var MulticastAudioRateSelection="1"/>
<Var MulticastVideoRateSelection="1"/>
<List Name="/broadcast/mp1">
<List Name="AutoStart">
<Var Enabled="1"/>
<Var ExpectedAudioStreams="10"/>
<Var ExpectedVideoStreams="2"/>
</List>
<List Name="AudioTranslations">
<Var video1="en"/>
</List>
<List Name="VideoTranslations">
<Var video1="video"/>
</List>
<Var SessionControlPassword="65WIV987"/>
</List>
</List>
|
parent: |
|
|
registry: |
config.Multiplexer |
|
function: |
Defines the multiplexer features and source paths. |
|
variables: |
AudioBRQueryParamName, AudioQueryParamName, GlobalEnable, MulticastAudioRateSelection, MulticastVideoRateSelection, VideoBRQueryParamName, VideoQueryParamName |
|
parent: |
Multiplexer |
|
registry: |
config.Multiplexer.source_path |
|
function: |
Enables multiplexing for a specific broadcast source path. |
|
variables: |
|
parent: |
source_path |
|
registry: |
config.Multiplexer.source_path.AutoStart |
|
function: |
Sets a stream name for the audio track in a video stream. |
|
variables: |
|
parent: |
source_path |
|
registry: |
config.Multiplexer.source_path.AudioTranslations |
|
function: |
Sets a stream name for the audio track in a video stream. |
|
variables: |
|
parent: |
source_path |
|
registry: |
config.Multiplexer.source_path.VideoTranslations |
|
function: |
Renames a video stream. |
|
variables: |
|
list: |
|
|
syntax: |
<Var AudioBRQueryParamName="string"/> |
|
value: |
name of query string parameter for audio bit rate choice |
|
default: |
audbr |
|
example: |
<Var AudioBRQueryParamName="audbr"/> |
|
list: |
|
|
syntax: |
<Var AudioQueryParamName="string"/> |
|
value: |
name of query string parameter for audio stream choice |
|
default: |
aud |
|
example: |
<Var AudioQueryParamName="aud"/> |
|
list: |
|
|
syntax: |
<Var Enabled="Boolean"/> |
|
value: |
0—do not start multiplexing automatically |
|
default: |
0 |
|
example: |
<Var Enabled="1"/> |
Note: If both ExpectedAudioStreams and ExpectedVideoStreams are set to their default values of 0, autostarting will not function.
|
list: |
|
|
syntax: |
<Var ExpectedAudioStreams="integer"/> |
|
value: |
minimum number of audio streams required for autostart. |
|
default: |
0 |
|
example: |
<Var ExpectedAudioStreams="6"/> |
|
list: |
|
|
syntax: |
<Var ExpectedVideoStreams="integer"/> |
|
value: |
minimum number of video streams required for autostart. |
|
default: |
0 |
|
example: |
<Var ExpectedVideoStreams="1"/> |
|
list: |
|
|
syntax: |
<Var GlobalEnable="Boolean"/> |
|
value: |
0—do not allow audio/video multiplexing 1—allow audio/video multiplexing for the defined source paths |
|
default: |
1 |
|
example: |
<Var GlobalEnable="1"/> |
|
list: |
|
|
syntax: |
<Var MulticastAudioRateSelection="integer"/> |
|
value: |
0—use lowest audio rate of a multi-rate stream in a multicast x—use specified rate (in Kbps) of a multi-rate stream in a multicast |
|
default: |
1 |
|
example: |
<Var MulticastAudioRateSelection="1"/> |
Note: If you set a specific rate, Helix Mobile Server selects the stream that is closest to the specified rate. The selected stream can be lower than the indicated value or no more than 5 percent higher.
|
list: |
|
|
syntax: |
<Var MulticastVideoRateSelection="integer"/> |
|
value: |
0—use lowest video rate of a multi-rate stream in a multicast x—use specified rate (in Kbps) of a multi-rate stream in a multicast |
|
default: |
1 |
|
example: |
<Var MulticastVideoRateSelection="1"/> |
Note: If you set a specific rate, Helix Mobile Server selects the stream that is closest to the specified rate. The selected stream can be lower than the indicated value or no more than 5 percent higher.
|
list: |
|
|
syntax: |
<Var SessionControlPassword="integer"/> |
|
value: |
password required to start or stop multiplexing manually |
|
default: |
none |
|
example: |
<Var SessionControlPassword="65WIV987"/> |
|
list: |
|
|
syntax: |
<Var stream_name="string"/> |
|
value: |
stream name |
|
default: |
none |
|
example: |
<Var video1="en"/> |
|
list: |
|
|
syntax: |
<Var VideoBRQueryParamName="string"/> |
|
value: |
name of query string parameter for video bit rate choice |
|
default: |
vidbr |
|
example: |
<Var VideoBRQueryParamName="vidbr"/> |
|
list: |
|
|
syntax: |
<Var VideoQueryParamName="string"/> |
|
value: |
name of query string parameter for video stream choice |
|
default: |
vid |
|
example: |
<Var VideoQueryParamName="vid"/> |
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com
Multiplexer