Flussonic Media Server documentation


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;