Configuring the mm-stream server

You can create mm-stream instances by providing raw JSON data or making the server read the configuration file named on the command line that started the process.

The configuration defines:
  • the URLs of the media sources
  • how to read the inputs (e.g., the sampling and frame rates to use)
  • the audio and video codecs to use when encapsulating content into MPEG2 Transport Streams
  • the output plugins for delivering content to its destination
  • the IP addresses and ports of the mm-stream server and the output stream destinations

On the command line, you use the -c option followed by an absolute path to the configuration file. In an mm_stream_set_configuration() API call, you must specify the configuration in JSON format. The syntax details for either method are the same and are shown in the subsequent examples.

At startup, mm-stream reads its configuration file and creates one or more instances, based on the file's content.

Page updated: