# Rust-Srec Documentation (v0.8.0) > Automated streaming media recorder with multi-layer configuration inheritance, FLV/HLS/MPEG-TS stream recovery, interactive danmu archiving, DAG post-processing pipelines, and multi-channel notifications. Site: https://docs.srec.rs/ Repository: https://github.com/hua0512/rust-srec Chinese Documentation: https://docs.srec.rs/zh/ ## Documentation Index - [API Keys & MCP](https://docs.srec.rs/api/api-keys-mcp): Rust-Srec supports long-lived API keys for programmatic access and includes an MCP (Model Context Protocol) server. Its tools let AI assistants such as Claude and Cursor query recordings, analyze danmu, and manage configuration. - [REST API](https://docs.srec.rs/api/): Rust-Srec exposes a JSON REST API under /api. The running backend generates the authoritative OpenAPI document for its exact build. - [System overview](https://docs.srec.rs/concepts/architecture): Rust-Srec monitors configured channels, records live video and chat, and runs post-processing workflows. The web interface and API control the same backend. - [Configuration layers](https://docs.srec.rs/concepts/configuration): Use global settings for defaults, platform settings for one service, templates for groups of streamers, and streamer overrides for exceptions. - [Recording engines](https://docs.srec.rs/concepts/engines): Use Mesio for a first recording. Select FFmpeg when you need its container or codec compatibility, or Streamlink for its supported download behavior. FFmpeg and Streamlink must be installed on the backend host; the Docker image includes the supported tools. - [Mesio Engine](https://docs.srec.rs/concepts/mesio): Mesio is rust-srec's in-process Rust download engine. Unlike FFMPEG and Streamlink, it is not an external program — it runs inside the recorder, which is why it has the lowest CPU and memory footprint of the three engines and supports multithreaded HLS and MPEG-DASH downloads. This page covers Mesio's implementation; for a side-by-side comparison of all three engines and their features, see Engines. - [Notification System](https://docs.srec.rs/concepts/notifications): Rust-Srec records notification events and can deliver selected events to external channels. Channel delivery is configured independently from the interface language and from browser-only notifications. - [Set up post-processing](https://docs.srec.rs/concepts/pipeline): Post-processing runs actions on your recordings after they are written, such as Convert, Thumbnail, Burn chat in or Upload. Each action is one step. An action preset stores the settings for one step; a workflow stores several steps and how they connect, so you can reuse it. You add steps or workflows to the three post-processing stages on the Pipeline tab of global, platform, template or streamer settings. - [Runtime architecture](https://docs.srec.rs/development/architecture): For contributors changing backend services. For the recording process and deployment boundaries, see the system overview. - [Configuration resolution](https://docs.srec.rs/development/configuration): MergedConfigBuilder applies each configuration layer. ConfigResolver loads database records and builds the effective configuration; ConfigService caches the result and broadcasts updates to runtime services. - [Recording engine internals](https://docs.srec.rs/development/engines): For contributors changing subprocess supervision or recording events. For engine selection and configuration, see Recording engines. - [Development](https://docs.srec.rs/development/): Implementation contracts for contributors changing the recorder. Set up your development environment first, then start with the runtime architecture and follow the subsystem you are modifying. - [Monitoring implementation](https://docs.srec.rs/development/monitoring): For contributors changing sampling, database cache allocation, and log rotation. Operational checks are in Monitoring. - [Notification internals](https://docs.srec.rs/development/notifications): For contributors implementing channels and delivery workers. Operator setup is in Notifications. - [Persistence contracts](https://docs.srec.rs/development/persistence): For contributors changing database transactions and import behavior. Operators should start with Backup and restore and Deletion semantics. - [Pipeline execution contracts](https://docs.srec.rs/development/pipeline): For contributors implementing processors, persistence, or recovery. User-facing file routing and failure behavior are in the workflow guide. - [Development Environment](https://docs.srec.rs/development/setup): Prerequisites for building and testing rust-srec from a clone on Linux, Windows or macOS. CI is the source of truth for exact versions and packages; this page follows pr.yml and the release workflows. For running a build as a user, see Build from Source. - [Support the Project](https://docs.srec.rs/donate): Rust-Srec is built and maintained in the open. If it helps you save streams, archive chat, or automate post-processing, your support helps keep platform extractors up to date and development moving forward. - [Basic configuration](https://docs.srec.rs/getting-started/configuration): Start with a working installation and one successful recording. Set these defaults before adding more streamers. - [Docker Deployment](https://docs.srec.rs/getting-started/docker): The standard deployment runs a backend and frontend on one Docker host with persistent bind mounts. - [Frequently Asked Questions](https://docs.srec.rs/getting-started/faq): For Docker deployments and source checkouts using the example .env files, open http://localhost:15275; the backend API listens on http://localhost:12555/api by default. See the installation matrix. - [Make Your First Recording](https://docs.srec.rs/getting-started/first-recording): This walkthrough starts with a running installation and ends with a recorded file on disk. Use a channel that you own or have permission to record. - [Getting Started](https://docs.srec.rs/getting-started/): Rust-Srec is a self-hosted automatic livestream recorder built with Rust. It supports 14 built-in platforms and brings together automatic live detection, stream repair, danmaku collection, post-processing workflows, and remote management in a web interface and REST API. - [Installation](https://docs.srec.rs/getting-started/installation): Docker maps the frontend's container port 80 and the backend's container port 8080 to the host ports shown above. Container ports are not addresses to open from the host. - [Record chat and view statistics](https://docs.srec.rs/guides/danmu): Video and chat files are associated by recording part. Steps under Part + chat ready wait for both files before processing them. See post-processing stages and the burn-in example for subtitle conversion and burn-in. - [Direct FLV & M3U8 Downloads](https://docs.srec.rs/guides/direct-downloads): Use the Downloads page to save a live or on-demand (VOD) FLV or HLS (M3U8) stream once without creating a continuously monitored streamer. Direct downloads use the same recording engines, proxy routing, and post-processing workflows as monitored recordings, and you can also preview and start them directly from the Player page. - [Guides](https://docs.srec.rs/guides/): Task-based guides for organizing channels, configuring recording behavior, and automating post-processing. - [Recording schedules](https://docs.srec.rs/guides/schedules): Use a time-based filter for weekly recording hours or a Cron filter for recurring rules. Configure the filter for the streamer, select its timezone, and confirm the effective schedule shown on the filter card. - [Backup and Restore](https://docs.srec.rs/operations/backup-restore): Use two backup layers. A configuration export is portable and convenient, while a filesystem snapshot is required to recover operational history and media. - [Data Governance](https://docs.srec.rs/operations/data-governance): Rust-Srec is a recording tool, not a source of rights to record or process a broadcast. The operator is responsible for platform terms, copyright, privacy, employment, and retention obligations in every applicable jurisdiction. - [Operations](https://docs.srec.rs/operations/): Runbooks and checklists for deploying, securing, monitoring, and maintaining Rust-Srec in production. - [Monitoring](https://docs.srec.rs/operations/monitoring): Monitor the process, its dependencies, the host, and recording outcomes. A running container alone does not prove that the database is ready, an output volume is writable, or a platform can be recorded. - [Production Deployment](https://docs.srec.rs/operations/production): Rust-Srec runs as a self-hosted, single-node service. If clustering or failover is a requirement, read Scope and Limits before going further. - [Security](https://docs.srec.rs/operations/security): Rust-Srec handles access tokens, platform cookies, notification credentials, recordings, and chat data. Treat the host and every backup as sensitive infrastructure. - [Storage and Capacity](https://docs.srec.rs/operations/storage): Recordings are usually the dominant cost of a Rust-Srec deployment. Capacity planning must include raw recordings, chat files, pipeline intermediates, final artifacts, and the space needed during backup or migration. - [Support and Versions](https://docs.srec.rs/operations/support): Rust-Srec is an open-source project maintained by volunteers. - [Upgrade and Rollback](https://docs.srec.rs/operations/upgrading): Upgrade the backend and frontend together. Database migrations run at startup and are not reversible, so a pre-upgrade snapshot is your rollback boundary. - [Bigo Live](https://docs.srec.rs/platforms/bigo): Bigo Live is a global live-streaming platform for mobile and desktop creators. - [Bilibili](https://docs.srec.rs/platforms/bilibili): Bilibili is a Chinese video and live streaming platform. - [Douyin](https://docs.srec.rs/platforms/douyin): Douyin (抖音) is a Chinese short video and live streaming platform. - [Douyu](https://docs.srec.rs/platforms/douyu): Douyu (斗鱼) is a major Chinese game streaming platform. - [Huya](https://docs.srec.rs/platforms/huya): Huya (虎牙) is a Chinese game streaming platform. - [Supported Platforms](https://docs.srec.rs/platforms/): rust-srec supports 14 streaming platforms with automatic stream detection and recording. - [Other Platforms](https://docs.srec.rs/platforms/others): Use xhslink.com share links. Direct profile URLs like xiaohongshu.com/user/profile/... are not supported. - [SOOP](https://docs.srec.rs/platforms/soop): SOOP, formerly AfreecaTV, is a Korean live streaming platform. - [TikTok](https://docs.srec.rs/platforms/tiktok): TikTok LIVE is TikTok's live-streaming service. - [Twitch](https://docs.srec.rs/platforms/twitch): Twitch is a live streaming platform for gaming and other content. - [Configuration overrides](https://docs.srec.rs/reference/configuration-overrides): Reference for API clients and advanced configuration. Start with Configuration layers for examples of inheritance. - [Environment Variables](https://docs.srec.rs/reference/environment): The following environment variables can be configured in your .env file. - [Filename Template Variables](https://docs.srec.rs/reference/filenames): Rust-Srec supports two types of placeholders in outputfolder and outputfilename_template. - [Reference](https://docs.srec.rs/reference/): Exact field specifications, processor options, platform capabilities, and API documentation. - [Action reference](https://docs.srec.rs/reference/processors): Choose actions when editing a workflow or action preset. Workflow JSON and the API call actions processors and identify them by the processor ID below. For complete examples, see Set up post-processing. - [Settings reference](https://docs.srec.rs/reference/settings): Set defaults under Settings → Global. Platform, template, and streamer overrides are described in Configuration layers. - [Workflow reference](https://docs.srec.rs/reference/workflows): JSON definitions, execution states, retries, and API cancellation. For post-processing stages and file routing, see Set up post-processing. - [Release Notes](https://docs.srec.rs/release-notes/): Track version updates, behavior changes, compatibility notes, and upgrade guidance for rust-srec. - [Release Notes](https://docs.srec.rs/release-notes/unreleased) - [Release Notes](https://docs.srec.rs/release-notes/v0.2.1): This update focuses on recording correctness, session lifecycle cleanup, better observability, platform compatibility updates (Douyu / Huya), Docker GPU support, and frontend stability improvements. It also includes a broad round of dependency and CI maintenance. - [Release Notes](https://docs.srec.rs/release-notes/v0.3.0): This update covers four independent themes: (1) recording session reliability — adding a quiet-period for brief network interruptions, cleaning up empty session cards, improving the timeline display, and exposing a per-streamer offline-check override; (2) the output-root write gate — fixing a class of failures where rust-srec could not recover from a filesystem issue (disk full, stale Docker bind mount) without a container restart; (3) a new check-history strip on the streamer details page that gives you an at-a-glance view of every recent monitor poll, with a tooltip showing exactly which stream quality was picked; (4) clearer behavior when the concurrent-download limit is hit — a Queued badge on streamer cards, smarter ordering for high-priority streamers, and no more "everything froze" stalls when the limit saturates. It also adds initial support for backend localization, adds bandwidth & throughput controls to the rclone pipeline step so you can throttle uploads from the UI, lets the Mesio CLI run without creating a log file, and includes platform fixes for Huya (rectification notices, CDN priority mapping) and RedBook (offline parsing). - [Release Notes](https://docs.srec.rs/release-notes/v0.3.1): This update continues the recording-session reliability work from v0.3.0 — fewer false session endings on transient download failures, cleaner schedule-end transitions, and quieter repeat checks for out-of-schedule streamers — and adds GPU health monitoring to the System Health page. The /api/health endpoint is also significantly faster and lighter, so opening the System Health page stays instant even on busy systems. - [Release Notes](https://docs.srec.rs/release-notes/v0.3.2): This update is focused on pipeline and recording reliability — end-of-session and paired post-processing now wait for the files they need before running, resumed recordings keep their segment numbering, the Delete Source step no longer removes a freshly converted video, and a temporary CDN failure no longer flips a live streamer to offline. - [Release Notes](https://docs.srec.rs/release-notes/v0.4.0): This update rebuilds the Mesio engine that records HLS streams so recording is steadier and more reliable, and brings HLS and FLV recording onto the same footing. Encrypted streams record more dependably, memory use stays under control on busy or encrypted streams, and the app no longer downloads the same part of a stream twice when a stream refreshes its access links (as Twitch does). A few engine settings that no longer affected recording were removed, and your existing settings are updated for you. - [Release Notes](https://docs.srec.rs/release-notes/v0.5.0): This update changes streamer creation and editing and adds upload progress and result details. A streamer's site is now worked out from its link instead of being picked by hand, each streamer can override its site's own options, and when a site's built-in support for finding the live stream stops working you can fall back to Streamlink without changing anything else. You can monitor upload progress from the streamer's card and see afterwards exactly which files went where. Email notifications work for the first time, at both ends: the SMTP delivery is implemented, and the channel is no longer locked behind a "Coming soon" label. - [Release Notes](https://docs.srec.rs/release-notes/v0.5.1): This release removes the Hooks tab and its six shell commands — they were stored and merged like any other setting but were never actually run — and notification channels cover what they were meant to do. It also fixes two streamer issues: Bigo rooms are picked up the moment they go live, and switching a streamer off now clears its error state, so switching it back on starts checking straight away. - [Release Notes](https://docs.srec.rs/release-notes/v0.6.0): This release adds multiple accounts per platform, saved proxies, API keys and MCP access, Baidu Netdisk uploads, lossless cutting of live recordings, automatic output cleanup, per-step workflow retries, a reworked live player, and configurable danmu statistics. It also fixes recording shutdown, restart recovery, file handling, and credential exposure in logs. - [Release Notes](https://docs.srec.rs/release-notes/v0.7.0): This release adds MPEG-DASH recording with Mesio, TikTok DASH streams and HTTP/2 downloads for HLS and DASH, and shows live progress, speed and time remaining for workflow steps such as remuxing, copies, compression and uploads. It also redesigns the engine settings, lists partial files left by interrupted jobs, and fixes missing or repeated HLS segments, webhook notifications, stuck copies and a broad range of recording, workflow and web interface problems. - [Release Notes](https://docs.srec.rs/release-notes/v0.7.1): This release updates Windows desktop notifications for portable builds and makes notification test failures visible. - [Release Notes](https://docs.srec.rs/release-notes/v0.8.0): This release shows recorded chat over the video on the session page and live chat on the Player page, adds H.265 and AV1 recording for Twitch, a low disk space notification and a way to keep checking streamers without an account when every account in a pool needs attention. It also keeps Bigo checks going through login requests, fixes long or broken FLV recordings from the Mesio engine, closes several ways another site could act as the signed-in user, and fixes a broad range of configuration, backup, notification and web interface problems.