Flussonic Media Server documentation

Mosaic

Merge streams in mosaic Anchor Anchor x2

Flussonic has builtin mosaic module: you can merge several streams into one mosaic.

Install flussonic-ffmpeg package and make following configuration:

stream cam1 {
  url rtsp://...;
}
stream cam2 {
  url rtsp://...;
}
stream cam3 {
  url rtsp://...;
}
stream cam4 {
  url rtsp://...;
}
stream mosaic0 {
  url mosaic://cam1,cam2,cam3,cam4?fps=20&preset=ultrafast&bitrate=1024k&size=340x240&mosaic_size=16;
}

After specifying pseudo-url mosaic:// you need to enter stream names separated by comma.

Option size reduces size of each stream in mosaic to this size.

Option mosaic_size tells how many slots should be in mosaic.