Skip to content

Record chat and view statistics ​

Enable chat recording ​

  1. Check the platform guide for danmu support and any login requirements.
  2. Turn on Record Danmu (record_danmu) in global settings, or override it for a platform, template, or streamer.
  3. Record a live session and open its session page to inspect chat files and statistics.

Video and chat files are associated by recording segment. A paired-segment workflow waits for both files before processing them. See workflow triggers for subtitle conversion and burn-in.

Watch a recording with its chat ​

Playing a video from the session page shows its recorded chat over the picture, timed to the video. Chat messages and super chats are shown; gifts are not. The speech-bubble button in the player controls hides or shows the chat; in a narrow player it moves into the settings panel as Show danmu. When the screen is full, extra messages are skipped rather than stacked on top of each other.

The sliders button next to it opens Danmu settings:

  • Hide: scrolling, top, bottom, coloured messages, or super chats.
  • Opacity, Font size and Speed.
  • Display area: keep the chat in the top quarter, half or three quarters of the picture, or let it use all of it. A smaller area keeps it off subtitles and thins out a busy chat.
  • Merge repeated comments: the same message sent several times within 10 seconds appears once, with a count.
  • Pause a comment on hover: stops a message under the mouse pointer so it can be read, and shows who sent it.
  • Show activity above the progress bar: a strip showing where the chat is busiest.
  • Blocklist: hide messages containing a word, or everything from a user name. Words match regardless of case; user names must match exactly.

The settings and blocklist are remembered in this browser and apply to every recording. Reset restores the display settings but keeps the blocklist.

The chat only appears while its XML file is kept. A workflow that converts the XML and deletes the original leaves the video without it.

Watch a live stream with its chat ​

A live stream played on the Player page shows its chat over the picture as it arrives, on platforms whose chat rust-srec can read (see the platform guide). Each player in the grid shows the chat of its own stream.

The same button and Danmu settings apply, except the activity strip, which only a recording has. Super chats appear at the top. With Merge repeated comments on, a repeat of a message within 10 seconds is hidden, without a count.

Live chat is not saved for later: messages sent while the video is paused or buffering are skipped. While the chat is hidden, the player does not receive it at all. A dropped chat connection reconnects on its own.

Configure the summary ​

Use Danmu Statistics to choose ranking lengths, activity intervals, tracking capacity, and extra stop words. These settings follow the same configuration hierarchy as recording settings. The field reference lists defaults and limits.

Disabling the summary still records chat files, but stops computing and saving the summary containing viewer names. Estimated counts are marked with ≈. Gifts appear only for platforms that report them.

Understand live and interrupted sessions ​

Published danmu statistics persist roughly once a minute (60s) during recording, while the crash-recovery aggregator checkpoint is saved every 5 minutes (300s). After a restart, saved counts resume from the last checkpoint, so an unclean crash can lose up to 5 minutes of checkpoint state. Long sessions reduce timeline resolution to retain the full recording period.

Chat reconnects while video recording continues. A prolonged outage appears in System Health. Messages the platform never delivered cannot be recovered. New XML files filter invalid characters; existing files are not repaired automatically.

Released under the MIT / Apache-2.0 License.