Skip to content

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 ​

SettingDescriptionDefault
record_danmuEnable danmaku (live chat) recordingfalse
danmu_statisticsHow chat activity is summarised per session (see below)defaults
auto_thumbnailAutomatically generate video thumbnailstrue
output_folderBase directory for recordings (supports templates)Deployment default; existing databases retain their saved value
output_filename_templateFilename pattern for recorded filesSee filename templates
output_file_formatDefault 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.

FieldDescriptionDefault
enabledCompute 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_talkersChatters and gift senders listed per session (1–500)100
top_wordsFrequent 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_giftsGift names listed per session (1–500)20
rate_bucket_secsActivity-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_capacityDistinct 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_capacityDistinct words tracked (64–8192), same trade-off2048
gift_capacityDistinct gift names tracked (16–8192)256
extra_stop_wordsWords 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 ​

SettingDescriptionDefault
min_segment_size_bytesMinimum 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 smaller1048576 (1 MiB)
max_download_duration_secsMax duration in seconds before splitting the recording0 (disabled)
max_part_size_bytesMax size before splitting the recording8589934592 (8 GiB)

Concurrency & Performance ​

SettingDescriptionDefault
max_concurrent_downloadsMax simultaneous recording tasks6
max_concurrent_uploadsMax simultaneous uploads, rclone and Baidu Netdisk combined3
max_concurrent_cpu_jobsMax concurrent CPU-intensive tasks0 (Auto)
max_concurrent_io_jobsMax concurrent I/O-intensive tasks such as moves and copies, not counting uploads8 (0 = Auto)
default_download_engineName of the engine configuration used for recordingdefault-mesio (the built-in Mesio configuration)
default_extractorDefault extractor (auto or streamlink) used to resolve stream URLs unless overridden per platform, template, or streamerauto (when unset/null)
queue_freshness_threshold_msMilliseconds; 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_secsLongest a single CPU-bound pipeline job may run before it is cancelled (minimum 1)3600
pipeline_io_job_timeout_secsLongest a single I/O-bound pipeline job, including uploads, may run before it is cancelled (minimum 1)3600
pipeline_execute_timeout_secsLongest an execute processor command may run, unless its workflow step sets timeout_secs (minimum 1)3600
gpu_health_probe_interval_secsSeconds 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 ​

SettingDescriptionDefault
streamer_check_delay_msInterval between checking streamer status, in milliseconds60000 (60 s)
offline_check_delay_msInterval between offline checks, in milliseconds10000 (10 s)
offline_check_countConsecutive 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_routeDefault 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_targetsLet the player's Server proxy and proxy tests reach addresses on private or local networksfalse
log_filter_directivePersisted 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.

FieldDescription
NameShown wherever the proxy is chosen; unique, ignoring case
Addresshttp, https, socks5 or socks5h address as scheme://host[:port] (port optional), without a path or login
Username, PasswordOptional 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 ​

SettingDescriptionDefault
job_history_retention_daysDays to keep terminal pipeline/job and upload history; 0 keeps it indefinitely30
notification_event_log_retention_daysDays to keep notification events; 0 keeps them indefinitely30
output_retention_daysDays to keep outputs from ended sessions; 0 disables automatic cleanup0
output_retention_delete_filesfalse: delete output records only; true: delete their tracked local files toofalse

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.

Released under the MIT / Apache-2.0 License.