Flussonic Media Server documentation

Mixer

Mixer Anchor Anchor x2

Flussonic Media Server is able to create a new stream using video and audio from other live streams. This can be used to add sound to a stream from a surveillance camera.

Create a new stream and specify the protocol mixer:// and the names of the two streams you are using: the one that will provide video and the one that will provide sound as sources:

stream mix {
  url mixer://stream1,stream2;
}

where:

  • stream1 is the name of the live stream that will provide the video track.
  • stream2 is the name of the live stream that will provide sound only.

WARNING! The Mixer only works with live streams that have already been added to Flussonic Media Server. Do not try to use VOD files or specify a source in the string that contains mixer://.

Example Anchor Anchor x2

For example, you have a stream from a surveillance camera called cam1(h264 video + pcmu sound), but the camera is placed very high on a pole and the only thing you can hear is the wind.

stream cam1 {
  url rtsp://cam1.local/h264;
}

It makes sense to turn off sound completely in this case:

stream cam1 {
  url rtsp://cam1.local/h264 tracks=1;
}

It is also possible to use the Mixer to create a new stream that will add sound from another source (e.g. a radio):

stream cam1 {
  url rtsp://cam1.local/h264;
  dvr /storage 7d;
}
stream radio {
  url shout://example.com/fm;
}
stream cam1radio {
  url mixer://cam1,radio;
}

In this configuration we will have a stream called cam1radio that we can add to our website. Viewers will be able to listen to radio while watching the video stream, which can be useful during emergency situations. The original stream cam1 with the sound from the camera will be saved to the archive.