English
Settings reference
Set defaults under Settings → Global. Platform, template, and streamer overrides are described in Configuration layers.
Global Settings
Access via Settings → Global. The setting names below are the field names used by the global configuration API (/api/config/global) and configuration backups. The settings are organized into several categories:
File Configuration
| Setting | Description | Default |
|---|---|---|
record_danmu | Enable danmaku (live chat) recording | false |
danmu_statistics | How chat activity is summarised per session (see below) | defaults |
auto_thumbnail | Automatically generate video thumbnails | true |
output_folder | Base directory for recordings (supports templates) | Deployment default; existing databases retain their saved value |
output_filename_template | Filename pattern for recorded files | See filename templates |
output_file_format | Default container format (mp4, flv, etc.) | flv |
Danmu Statistics
Every recording with record_danmu on gets a per-session chat summary: totals, an activity timeline, the most active chatters, the most frequent words and — where the platform reports them — gift rankings. danmu_statistics tunes that summary, and can be set globally or overridden per platform, per template and per streamer. Any field you leave out keeps its default, so {"top_talkers": 200} is a complete override.
| Field | Description | Default |
|---|---|---|
enabled | Compute the summary at all. Turning it off still records the chat files; it only stops the summary, which stores viewer names, from being computed and saved. | true |
top_talkers | Chatters and gift senders listed per session (1–500) | 100 |
top_words | Frequent words listed per session (0–500). Set to 0 to disable word frequency tracking and CJK segmentation while keeping the rest of the summary. | 50 |
top_gifts | Gift names listed per session (1–500) | 20 |
rate_bucket_secs | Activity-timeline granularity in seconds (1–3600). Very long streams are automatically coarsened, so the session page reads the width back rather than assuming it. | 10 |
talker_capacity | Distinct chatters tracked (64–8192). While a stream has fewer than this, counts are exact; above it they become close estimates and the session page marks them with ≈. | 2048 |
word_capacity | Distinct words tracked (64–8192), same trade-off | 2048 |
gift_capacity | Distinct gift names tracked (16–8192) | 256 |
extra_stop_words | Words to exclude from the frequent-words chart, on top of the built-in list (at most 500) | none |
Out-of-range values are clamped rather than rejected, and a reported list is never longer than what is tracked.
Resource Limits
| Setting | Description | Default |
|---|---|---|
min_segment_size_bytes | Minimum size before a segment is kept; smaller segments are deleted with their chat file. A segment that ends because the stream's resolution or codec changed is kept even when it is smaller | 1048576 (1 MiB) |
max_download_duration_secs | Max duration in seconds before splitting the recording | 0 (disabled) |
max_part_size_bytes | Max size before splitting the recording | 8589934592 (8 GiB) |
Concurrency & Performance
| Setting | Description | Default |
|---|---|---|
max_concurrent_downloads | Max simultaneous recording tasks | 6 |
max_concurrent_uploads | Max simultaneous uploads, rclone and Baidu Netdisk combined | 3 |
max_concurrent_cpu_jobs | Max concurrent CPU-intensive tasks | 0 (Auto) |
max_concurrent_io_jobs | Max concurrent I/O-intensive tasks such as moves and copies, not counting uploads | 8 (0 = Auto) |
default_download_engine | Name of the engine configuration used for recording | default-mesio (the built-in Mesio configuration) |
default_extractor | Default extractor (auto or streamlink) used to resolve stream URLs unless overridden per platform, template, or streamer | auto (when unset/null) |
queue_freshness_threshold_ms | Milliseconds; when a recording has been waiting for a free slot longer than this, rust-srec re-checks the streamer to refresh stream URLs and headers before starting. Useful on platforms whose signed URLs expire within minutes. Set to 0 to refresh on every queue wait. | 60000 (60 s) |
pipeline_cpu_job_timeout_secs | Longest a single CPU-bound pipeline job may run before it is cancelled (minimum 1) | 3600 |
pipeline_io_job_timeout_secs | Longest a single I/O-bound pipeline job, including uploads, may run before it is cancelled (minimum 1) | 3600 |
pipeline_execute_timeout_secs | Longest an execute processor command may run, unless its workflow step sets timeout_secs (minimum 1) | 3600 |
gpu_health_probe_interval_secs | Seconds between nvidia-smi probes by the GPU health monitor; changes apply on the next probe (minimum 1) | 30 |
default_extractor is independent of default_download_engine and can also be overridden per platform, template, or streamer. See Engine and extractor selection.
Network & System
| Setting | Description | Default |
|---|---|---|
streamer_check_delay_ms | Interval between checking streamer status, in milliseconds | 60000 (60 s) |
offline_check_delay_ms | Interval between offline checks, in milliseconds | 10000 (10 s) |
offline_check_count | Consecutive offline signals before confirming the streamer is offline. A recording that ends cleanly counts as the first, so the default ends a session at the second offline check; see Offline detection. The same resolved count controls when consecutive download failures enter temporary cooldown. Download failures use a minimum threshold of 2. | 3 |
proxy_route | Default proxy: how requests connect unless a platform, template, streamer or account chooses otherwise. Direct, System proxy, or a saved proxy. See Proxies. | Direct, or System proxy when proxy environment variables were set at the first start or the upgrade |
stream_proxy_allow_private_targets | Let the player's Server proxy and proxy tests reach addresses on private or local networks | false |
log_filter_directive | Persisted backend log filter directive (applied on startup and updated live through Logging settings or the logging API) | rust_srec=info,sqlx=warn,mesio_engine=info,flv=info,hls=info |
Proxies
Settings → Proxies lists the saved proxies that global, platform, template, streamer, account, notification channel and upload step settings can choose. Changes there are saved at once.
| Field | Description |
|---|---|
| Name | Shown wherever the proxy is chosen; unique, ignoring case |
| Address | http, https, socks5 or socks5h address as scheme://host[:port] (port optional), without a path or login |
| Username, Password | Optional login. The username is shown; the password never is, and leaving it empty when editing keeps it. |
Each row shows how many settings use the proxy and, expanded, which ones. Test checks that a platform's home page or another address answers through the proxy. A proxy in use cannot be deleted. The page header shows the system proxy detected from the server's environment. See Proxies for how the choices combine.
Retention
| Setting | Description | Default |
|---|---|---|
job_history_retention_days | Days to keep terminal pipeline/job and upload history; 0 keeps it indefinitely | 30 |
notification_event_log_retention_days | Days to keep notification events; 0 keeps them indefinitely | 30 |
output_retention_days | Days to keep outputs from ended sessions; 0 disables automatic cleanup | 0 |
output_retention_delete_files | false: delete output records only; true: delete their tracked local files too | false |
Configure output retention under Global Settings → Retention. Cleanup runs at startup and every 30 minutes, skips active or recently updated processing and scheduled retries, and defers while processors hold files. File deletion also skips active recording directories and recently modified or shared files; failures keep their records for a later attempt.
Records only leaves the physical files on disk. Once their records are removed, changing to Delete records and files cannot delete those untracked files later. This policy covers registered media outputs, not arbitrary files, every pipeline derivative, remote uploads, or session segment history.
Pipeline Configuration
Rust-Srec supports custom pipeline steps (e.g., transcripts, notifications, custom scripts) at different stages:
- Per-segment (
pipeline): Runs for each recorded segment. - Paired Segment (
paired_segment_pipeline): Runs for video/danmaku pairs. - Session Complete (
session_complete_pipeline): Runs when the entire recording session ends.
Folder Organization
Set output_folder to {streamer}/%Y-%m-%d to organize recordings by streamer with date-based subfolders. The output_filename_template can then use %H-%M-%S_{title} for the filename itself.