Flussonic Media Server documentation

Sources switching

Backup data sources Anchor Anchor x2

As a precaution, you can specify multiple data sources, and Flussonic will switch to another data source if the first one becomes inaccessible. "Inaccessible" means either immediate disconnect or no incoming frames from the source for 10 seconds.
stream rtr {
  url tshttp://10.0.4.5:9000/channel/5;
  url tshttp://10.2.4.5:9000/channel/5;
}

If Flussonic Media Server has switched to a secondary source, it will periodically check if the first source is up.

stream rtr {
  url tshttp://10.0.4.5:9000/channel/5 priority=1 source_timeout=60;
  url tshttp://10.2.4.5:9000/channel/5 priority=2 source_timeout=60;
}

source_timeout

It is possible to specify the period of time, in seconds, for which Flussonic will wait for new frames to come from this particular data source. When this time passes, Flussonic will attempt to reconnect to the data source. Individual source_timeout of a source supersedes source_timeout of the stream. Default source_timeout is 60 seconds.

priority

Sources can be assigned priority. By default, the first source in the list has the highest priority and the last source in the list has the lowest priority. If priority is not specified for some sources, then default order is applied. If priority of inaccessible source is the same as priority of the current source, then Flussonic will not periodically check such inaccessible source.

Source check Anchor Anchor x2

Flussonic takes care only about the time since last frame was seen from the source, and switches to another source if there are no incoming frames during a certain time.

It does not switch sources upon video or audio loss or raising frequency of MPEG-TS CC errors.

Recording Anchor Anchor x2

Flussonic writes video from an active source to configured DVR location.

The recording happens even if the last URL point to a local file:

stream cnn {
  url udp://239.1.2.3:1234;
  url file://vod/backup.mp4;
  dvr /storage;
}

If you want to show backup video when all sources are dead, but don't write it to DVR, use backup