OvenMediaEngine supports Push Publishing function that can restreaming live streams to other systems. The protocol supports widely used protocols such as SRT, RTMP, and MPEG-2 TS.
The StreamMap feature has been added, and it now automatically re-streaming based on predefined conditions. You can also use the Rest API to control and monitor it.
Configuration
Push Publisher
To use Push Publishing, you need to declare the <Push> publisher in the configuration. <StreamMap> is optional. It is used when automatic push is needed.
The RTMP protocol only supports H264 and AAC codecs.
StreamMap
<StreamMap> is used to automatically push content based on user-defined conditions. The XML file path must be specified relative to <ApplicationPath>/conf.
<StreamName> is used to match output stream names and supports wildcard characters.
<VariantNames> can be used to select specific tracks. Multiple variants can be specified by separating them with commas (,).
If multiple tracks with the same VariantName exist in the output stream, a specific track can be selected by appending a :[Index] suffix.
<Protocol> supports rtmp, mpegts, and srt. The destination address is specified in the <Url> and <StreamKey> fields, and macros can be used.
Macro
Description
${Application}
Application name
${SourceStream}
Source stream name
${Stream}
Output stream name
REST API
Push can be controlled using the REST API. Please refer to the documentation below for more details.