Flussonic Media Server Documentation

Contents

DVR Replication

Catching DVR replication

Flussonic Media Server have the unique ability to automatically replicate an archive of a video stream between servers. After establishing a connection between a source and a secondary server, the secondary server will automatically use the missing video from the source.

In this case, the secondary server can limit the total rate of replication, because it should not interrupt a live broadcast or reduce its quality. This feature can be used in several cases:

  • Copying an archive to other servers for reliability with auto-recovery after failures;
  • Broadcasting with a time shift in another time zone, with reliable automatic recovery of a missing video.

To enable replication you should use the replicate keyword in a dvr configuration:

source origin1 {
  dvr /storage 20d replicate;
}

It is not recommended to use dvr_offline option instead of dvr because replicate keyword enables recording automatically.

Replication can be enabled for a specific stream:

stream ort {
  url m4f://flussonic1.myhosting.com/ort;
  dvr /storage 7d replicate;
}

We recommend to use Flussonic internal protocol m4f to get the stream in this case. You can read more about the benefits of m4f protocol here.

By default, replication is enabled on the port specified when configuring the m4f source. You can specify a separate port for replication:

stream ort {
  url m4f://flussonic1.myhosting.com/ort;
  dvr /storage 7d replicate replication_port=8002;
}

Cross replication

Cross-replication allows to restore the archive after the temporary unavailability of one of the servers, this allows to configure dvr backup. If one of the servers becomes unavailable, the second continue to record the archive. After server recovery, Flussonic will automatically replicate the missing archive from the second server.

Stream configuration on flussonic_1.myhosting.com:

stream ort {
  url udp://224.1.2.3:1234;
  url m4f://flussonic_2.myhosting.com/ort;
  dvr /storage 7d replicate;
}

Stream configuration onflussonic_2.myhosting.com:

stream ort {
  url m4f://flussonic_1.myhosting.com/ort;
  url udp://224.1.2.3:1234;
  dvr /storage 7d replicate;
}