Skip to content

Streams and playback

Ruru plays video straight from Frigate’s built-in restreamer, go2rtc, the same path Frigate’s own live view uses. Video goes from Frigate to the tile without passing through anything else. Ruru never decodes, copies or re-encodes your video itself.

Each tile plays over WebRTC first, so what you see is close to real time. Where WebRTC isn’t available, it plays over MSE instead, which keeps some video in hand and runs about a second behind the camera.

  • When a server’s WebRTC does not connect, Ruru uses MSE for that server for the next 10 minutes, then tries WebRTC again.
  • On Linux, MSE is the usual case. Most distributions, Ubuntu and Debian among them, build their webview (WebKitGTK) without WebRTC.

MSE plays each stream at normal speed, a steady distance behind the newest frame, so frames that arrive unevenly still reach the screen on time. That distance is at least one second. Some computers’ video decoders hold each frame back until several more have arrived, and the stream says how many that can be. On a slow stream, such as one at 5 frames a second, Ruru plays further behind by that much, with 0.6 seconds to spare. Otherwise the tile is left alone:

  • If it stays more than 0.8 seconds further behind for a second, such as after a burst of frames or when the camera’s clock runs fast, it skips ahead to its distance. If it falls more than five seconds behind, it catches up immediately.
  • If it stays 0.4 seconds closer for a second, such as after the network stalls, it pauses until it is back at its distance.
  • When a tile changes stream, the new stream starts as far behind as the old one, so the picture never steps back in time.

On Linux, Ruru plays video through WebKitGTK’s GL video path instead of its DMABuf one. With hardware decoding, the DMABuf path can briefly show a frame from about half a second ahead, then step back, so people on screen seem to jerk.

Most cameras send two streams: a full-size main stream for recording and a smaller sub stream for detection. Ruru finds both from Frigate’s config. A camera with only one stream uses it for both.

Right-click a tile that has both to choose which one it plays:

  • Automatic (the default): the tile plays the sub stream until its saved tile on the wall is about one and a half times wider, in screen pixels, than the sub stream’s picture, and then the main stream. The menu shows which one Automatic is playing, such as Automatic (Main). Each tile keeps that stream while the Dynamic wall rearranges heroes or a priority camera takes over, so its picture never restarts. Maximising a tile yourself counts as the width of the window, so on Automatic it usually plays the main stream.
  • Main stream or Sub stream: always play that stream on this tile.

If a stream won’t play on your computer, the tile shows the camera’s other stream and says so, such as Main stream can’t play · showing sub stream, without changing your choice.

Reset to Frigate order in Edit layout clears every tile’s stream choice.

Choose Show stream info in Settings → Appearance or in a tile’s right-click menu to see playback details on every tile:

Shows Meaning
fps and state Frames shown per second, and whether the tile is playing, stalled or reconnecting. A dash means no measurement yet.
WebRTC or MSE How the tile is connected.
Stream name and size The go2rtc stream it plays, and its picture size, such as front_door · 1920×1080.
s behind and aiming for MSE only: how far the picture is behind the newest video received, and the distance Ruru keeps for this stream. It isn’t the delay since the camera captured the frame.
Dropped Frames that never reached the screen, over the last 10 seconds and since the stream connected, with their share of all its frames. On MSE, a frame counts as dropped when its turn passed without the screen showing it.

Reading it:

  • Low fps with no drops can simply be a low-rate camera stream. Try the main stream on that tile.
  • If dropped frames climb, the computer is struggling. Try the sub stream instead.

Choose Show stream info again to hide it.