Reference

Action reference

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.

Built-in actions

Each post-processing step runs one action:

Processor IDActionFunctionCore Parameters
remuxConvertChanges container format, optionally re-encodingformat, video_codec, audio_codec, crf, preset, hwaccel, hwaccel_device, start_time, duration, end_time, include_recording_metadata, remove_input_on_success
mergeMergeConcatenates same-codec recording parts into one video without re-encoding (FFmpeg concat demuxer)format, output_path, faststart, overwrite, remove_input_on_success, passthrough_non_video, extra_args
danmaku_factoryChat to subtitlesConverts danmaku XML to ASS subtitles built-in (invoking an external DanmakuFactory binary via binary_path or DANMAKU_FACTORY_PATH is deprecated and will be removed in a future release)font_name, font_size, bold, opacity, outline, shadow, display_area, scroll_time, scroll_speed, density, block_modes, show_msgbox, stat_modes, binary_path (deprecated), args, extra_args, delete_source_xml_on_success
ass_burninBurn chat inHard-burns ASS subtitles into the matching video (the official Docker image pre-installs fontconfig and fonts-wqy-microhei for automatic CJK fallback)match_strategy, video_codec, video_bitrate, crf, preset, hwaccel, hwaccel_device, fonts_dir, output_options, delete_source_videos_on_success
thumbnailThumbnailExtracts a video frame as an imagetimestamp_secs, width, quality, preserve_resolution
audio_extractExtract audioExtracts an audio trackformat, bitrate, sample_rate, channels, output_path
compressionArchiveBundles files into a ZIP or tar.gz archiveformat, compression_level, output_path, overwrite, preserve_paths
rcloneUploadCloud synchronizationdestination_root, config_path, operation, time_anchor, max_retries, bwlimit, bwlimit_file, transfers, checkers, tpslimit, tpslimit_burst, multi_thread_streams, multi_thread_cutoff, args, proxy_route
rshipUploadCrash-resumable multi-cloud transfer via rshipdestination_root, binary_path, config_path, state_dir, operation, time_anchor, max_retries, bwlimit, transfers, adaptive, part_concurrency, chunk_size, max_buffer_mem, tpslimit, drive_stop_on_upload_limit, checksum, strict_source, args, proxy_route
baidupcsUploadBaidu Netdisk upload via BaiduPCS-Godestination_root, binary_path, config_dir, policy, norapid, max_retries, remove_source_after_upload, time_anchor, args, proxy_route
aliyunpanUploadAliyun Drive upload via aliyunpandrive, drive_id, destination_root, binary_path, config_dir, policy, norapid, parallel, block_size_kb, timeout_secs, max_retries, remove_source_after_upload, time_anchor, args, proxy_route
copy_moveCopy or moveCopies or moves local filesoperation, destination, time_anchor, overwrite, exclude_patterns
metadataEmbed metadataEmbeds metadata tags into the media file with FFmpegtitle, artist, date, album, comment, custom, remove_input_on_success
deleteDeleteDeletes the files it receives, that is, the outputs of the steps it depends onmax_retries, retry_delay_ms
executeRun commandRuns a program or custom shell commandprogram, args or command, scan_output_dir, scan_extension

FFmpeg-based actions use FFMPEG_PATH when it is set, and the external-tool actions read their own path variables.

Hardware-accelerated encoding

Both Convert (remux) and Burn chat in (ass_burnin) support CPU software encoding (including libx264, libx265, libvpx-vp9, libaom-av1 and libsvtav1) as well as hardware-accelerated video encoding across all major GPU platforms:

Accelerator (hwaccel)Hardware encoders (video_codec)Quality parameterNotes
cuda (NVIDIA)h264nvenc, hevcnvenc, av1nvenc (*_nvenc aliases accepted)-rc vbr -cq (-b:v 0 when no bitrate is set; 0–51, AV1 0–63, lower is better)Uses p1–p7 presets (legacy ll/hq/etc. saved presets auto-map to p1–p7 + -tune for FFmpeg 8.x) and scale_cuda when scaling without CPU filters.
qsv (Intel)h264_qsv, hevc_qsv, av1_qsv, vp9_qsv-global_quality (1–51, lower is better)Supports veryfast–veryslow presets and scale_qsv. Optional Linux render node via hwaccel_device.
vaapi (Linux Intel / AMD)h264_vaapi, hevc_vaapi, av1_vaapi, vp9_vaapi-qp (H.264/HEVC) or -rc_mode CQP -global_quality (AV1/VP9); switches to QVBR when video_bitrate is also setAutomatically initialises /dev/dri/renderD128 (override with hwaccel_device), uploads CPU-filtered frames (fps, subtitles) with format=nv12|vaapi,hwupload, and scales with scale_vaapi.
videotoolbox (macOS)h264_videotoolbox, hevc_videotoolbox-q:v (1–100, higher is better)Apple Silicon supports -q:v; on Intel Macs set video_bitrate instead (which suppresses -q:v).
d3d11va / amf (AMD)h264_amf, hevc_amf, av1_amf-rc cqp -qp_i/-qp_p (switches to -rc qvbr -qvbr_quality_level when video_bitrate is also set)Uses -quality (speed, balanced, quality; plus high_quality on av1_amf).
vulkan (Cross-platform)h264_vulkan, hevc_vulkan, av1_vulkan-rc_mode cqp -qpInitialises Vulkan device (hwaccel_device, e.g. 0), uploads frames via format=nv12|vulkan,hwupload, and scales with scale_vulkan.

Any other encoder supported by your FFmpeg build (such as h264_v4l2m2m or libopenh264) can be entered under Custom FFmpeg encoder…. When editing a Convert or Burn chat in step, the web interface automatically probes the host FFmpeg binary and marks working accelerators and encoders as Available (with a refresh button beside Hardware Acceleration to re-detect after driver or device changes). In Burn chat in, subtitles always render on the CPU before hardware upload so hardware encoding works cleanly with ASS subtitle rendering. For Docker GPU passthrough setup, see NVIDIA GPU and Intel and AMD GPUs.

rclone, rship, baidupcs, and aliyunpan retry a failed upload within the same job run when the workflow step does not configure its own retry budget; each retry is noted in the job log, and the job's progress and the top bar show which attempt is running. When the workflow step sets retry.max_attempts above 1, each job run performs a single attempt and defers retries to the workflow step's backoff schedule so upload slots are not held during long waits. Rate-limit or quota errors in rclone and rship also stop further in-run retries immediately, and permanent errors (such as missing config sections, revoked or expired credentials, sync conflicts, or missing paths) fail without retrying.

Merge (merge)

The merge processor (aliases: concat, join) concatenates multiple video parts from a recording session into a single file using FFmpeg's concat demuxer (-c copy, no re-encoding). It belongs under the Stream ended stage so it receives all recorded parts together.

KeyDescriptionDefault
formatOutput container extension (such as mp4, mkv, flv, ts). When omitted, uses the first video part's container.first input's extension
output_pathOptional output file template supporting {streamer}, {title}, {platform} and time placeholders (such as %Y%m%d). When omitted, writes <first_stem>_merged.<ext> next to the first video part. Must not match any input video path.derived
faststartPass -movflags +faststart when writing MP4, MOV or M4V outputs so playback starts immediately.true
overwriteReplace an existing output file at the destination. With false, the step fails if the target already exists.true
remove_input_on_successDelete the merged source video parts after the merged video is committed. Non-video companion files are never deleted.false
passthrough_non_videoForward non-video companion files (such as .xml chat, .ass subtitles or .jpg thumbnails) alongside the merged video to downstream steps.true
extra_argsAdditional FFmpeg arguments appended before the output path.[]

Videos are ordered by their recording segment order from the session manifest (matching remuxed copies by file stem when needed), with any additional videos following in input order. Because -c copy performs lossless stream copy, all input parts must share compatible video and audio codecs and parameters; recordings whose resolution or codec changed mid-stream cannot be stream-copied together and must be re-encoded first (or kept as separate parts).

When a session has only one video part, merge does not launch FFmpeg: the job completes as Done — nothing to do (single_input), keeps the original file untouched (never deleting it even when remove_input_on_success is enabled), and passes the inputs through to downstream steps.

Upload proxy

Each rclone, rship, baidupcs and aliyunpan step chooses how it connects under Proxy (proxy_route): Inherit (the default) follows the global Default proxy, or the step uses Direct, System proxy or a saved proxy. Uploads go to cloud storage rather than a platform, so platform, template and streamer proxy settings do not apply to them. The tools read the proxy from their environment: Direct starts them without any proxy variable, System proxy passes on the server's, and a saved proxy is passed as HTTP_PROXY and HTTPS_PROXY (plus RSHIP_PROXY for rship), login included. http, https, socks5 and socks5h proxies all work. The route is resolved when the job starts; a job whose saved proxy has been deleted fails instead of connecting directly. A saved proxy cannot be deleted while an action preset or a post-processing step chooses it, and its password is hidden in job logs and tool output. Logins, drive switches and quota checks on BaiduPCS-Go and Aliyunpan account cards follow the Default proxy, and an automatic BaiduPCS-Go re-login during an upload uses the step's proxy; commands that only update local state, such as logging out, use no proxy.

With any choice other than System proxy, the tools' own proxy settings must not override it. rclone ignores RCLONE_HTTP_PROXY and rship ignores RSHIP_PROXY from the host environment; a step whose Extra Arguments include --http-proxy (for rclone) or --proxy (for rship) fails. For rclone and rship the step's proxy applies to remotes that connect over HTTP, such as most cloud storage; SFTP, FTP and other remotes that do not use HTTP, and remotes on the local machine, are not routed through it (for rclone they use the proxy options of their remote in the rclone config file instead). BaiduPCS-Go (config set -proxy) and aliyunpan (aliyunpan_config.json's "proxy" field) both prefer the proxy set in their own config, so the step, login or quota check fails until that setting is cleared; the account card still shows the signed-in account and the reason the quota could not be read.

Execute (execute)

In the preset editor or a workflow step's configuration dialog, choose Shell command or Program and arguments under Execution mode. Existing shell commands open in shell mode without conversion. Switching modes clears the previous command or program and arguments; the output scan settings are shared and retained.

In program mode, enter the executable in Program and use Add argument for each argument in order. Each box holds one complete argument, including spaces, quotes, line breaks, or an empty string. Remove a box to omit that argument; leaving it blank passes an empty argument. Saving includes only the selected mode's fields.

Use program and args to run an executable directly, without a shell:

json
{
  "program": "ffmpeg",
  "args": ["-nostdin", "-n", "-i", "{input}", "-c", "copy", "/recordings/converted/{streamer}_%Y%m%d_%H%M%S.mp4"],
  "scan_output_dir": "/recordings/converted",
  "scan_extension": "mp4"
}

Workflow steps receive no output paths, so {output}, {outputN} and {outputs_json} are empty there. Name the file in the arguments and set scan_output_dir (which accepts the same placeholders) so the file is handed to the next step: files that were not in the directory before the command started and were modified after it started are the step's outputs. Without a scan directory the inputs pass through unchanged. The step's size metrics and its list of succeeded inputs cover every input it received and every output it detected, and a scan directory that cannot be read fails the step instead of reporting no outputs.

program is a fixed executable name on PATH or an executable path; it does not expand placeholders. Each args entry is one argument, including an empty string. Arguments support the same file, metadata, JSON-array, and time placeholders as command. Under Part + chat ready and Stream ended, {manifest_json} expands to the JSON session pairing (which danmu file belongs to which video, per segment); elsewhere it expands to null. Inserted values stay literal: quotes, spaces, shell operators, environment-variable references, and further placeholder text are not interpreted. Do not add shell quotes around an argument. The called program still interprets its own options.

Omitting args passes no arguments. Use either program with optional args, or command; combining them fails the step. On Windows, program rejects .bat and .cmd files because Windows would run them through a shell. Use command for batch scripts. Both modes retain output-directory scanning, pipeline output handling, timeouts, and process cleanup.

Shell syntax follows the server's operating system, regardless of the browser's operating system. For example, ffmpeg -nostdin -n -i {input} -c copy {input}.mp4 uses a fixed native executable with placeholder arguments and works with the supported template grammar on both platforms, when FFmpeg is installed on the server.

Command templates without recognized placeholders retain their existing shell behavior. With placeholders, the compiler accepts a bounded grammar and passes substituted data through process-local bindings. Placeholders may appear in ordinary argument words or file redirect targets; the command name must be fixed. Unknown and out-of-range placeholders remain literal. A bare empty value contributes no word, while existing quotes retain an empty argument. Empty redirect targets fail before launch.

Value-bearing templatesAccepted structure
POSIXBare, single-quoted and double-quoted argument fragments; ;, LF newlines, &&, ||, pipes, <, >, >>, and literal descriptor duplication such as 2>&1
WindowsFixed native executable names/paths; quoted or bare argument fragments; &, &&, ||, file redirects and literal descriptor duplication. Literal-only echo and ver stages may accompany native commands.

Templates with placeholders reject command substitution, arithmetic, parameter expansion, here-documents, command groups, assignment prefixes, command-name expansion (including POSIX brace forms) and nested shell wrappers before launch.

Windows additionally rejects pipes, multiline templates, batch scripts, builtin stages with placeholders, literal %/!/^ characters in the template, control characters in substituted words, and ambiguous literal quote/backslash combinations. These template-character restrictions apply inside quotes too; put that data in args or a placeholder value.

Windows assembles each complete argument before applying the backslash-quote encoding used by common C-style and Shell32 parsers. Programs with custom argument parsers must accept that encoding; follow the called program's argument or data-interface requirements. Redirect filenames use separate rules and cannot contain a double quote.

Windows commands with placeholders require a normal native executable path (wildcards and \\?\ extended paths are rejected) and must fit within Windows cmd.exe's 8,191-character command-line limit. For large JSON arrays such as {inputs_json} or {manifest_json}, use program and args (or pass data via a file) instead.

Use program and args, or a fixed script with a documented argument/data interface, for unsupported forms. Do not place untrusted values into that program's code or expression arguments: the called program still interprets its own options.

Archives (compression)

The compression processor bundles its input files into a single archive. It does not re-encode media; the files go in as they are.

KeyDescriptionDefault
formatzip or targz (gzipped tar)zip
compression_level0–9. 0 skips compression — stored entries for zip, an uncompressed gzip stream for targz — which is the sensible choice for already-compressed video. A value above 9 fails the step rather than being clamped.6
output_pathArchive to write. When omitted, it is derived from the first input: same directory, same name, with the input's extension replaced by the format's, so /rec/video.flv produces /rec/video.zip.derived
overwriteReplace an existing archive at that path. With false, the step fails instead.true
preserve_pathsStore each input under its full path inside the archive, minus the leading separator: /srv/recordings/x/a.mp4 becomes the entry srv/recordings/x/a.mp4. The paths are not made relative to a common base. With false, every entry is a bare filename at the archive root.false

The processor accepts a batch, so a step that receives several files from its dependencies produces one archive containing all of them. Its output is the archive path only — the inputs are not deleted, and a delete step depending on it removes the archive, not the sources.

Two inputs that would be stored under the same entry name, typically the same file name from two folders with preserve_paths off, are rejected before any archive is written. Enable preserve_paths or rename one of them.

ZIP entries are always written with ZIP64 sizes, so a single recording larger than 4 GiB archives correctly. The cost is 40 bytes per entry, and the archives still open with ordinary ZIP tools.

Rship (rship)

The rship processor transfers recordings to cloud or remote storage using rship (bundled in the Docker image; install it separately for bare-metal setups and set RSHIP_PATH if it is not on PATH). It covers S3-compatible stores (AWS S3, Cloudflare R2, Backblaze B2, MinIO, Wasabi, and others), Google Drive, Google Cloud Storage, OneDrive and SharePoint, Azure Blob Storage, Dropbox, WebDAV (Nextcloud, OwnCloud, Alist, Synology NAS, InfiniCloud), SFTP, crypt overlays, and local directories with bounded memory (--max-buffer-mem) and SQLite WAL crash-resumable checkpoints.

  • Remotes and state: configure remotes in rship's config.toml (for example with rship auth, rship config add, or rship config import-rclone inside the container or on the host). In Docker, RSHIP_CONFIG=/app/config/rship/config.toml and RSHIP_STATE_DIR=/app/config/rship/state store both configuration, OAuth tokens, and multipart/resumable upload checkpoints in the mounted /app/config volume; per-preset config_path and state_dir override them when needed. rship's [defaults] and [profiles.<name>] presets in that file also apply to uploads, and a profile can be selected in Extra Arguments with --profile <name>.
  • Operations: copy (default) and sync pass their local input paths through to downstream steps; move deletes each source file only after its remote upload is committed and produces no local outputs. sync requires batch inputs (two or more files) and updates those files on the remote to match their local copies; remote files outside the batch are left untouched.
  • Retries and limits: each attempt runs a single transfer pass (--retries 1 unless overridden in args) while rship's state database resumes committed parts across attempts. Rate-limit and daily upload quota errors (including Google Drive's 750 GiB daily cap when Stop on Google Drive daily upload limit is enabled) stop remaining in-run retries immediately so the upload worker is freed, while keeping the workflow step eligible for scheduled retries. rship uploads share the Max Uploads pool with rclone and baidupcs and can run concurrently up to that limit. Avoid setting max_concurrent_processes in rship's config.toml below Max Uploads (or omit it and let Max Uploads control concurrency): concurrent uploads waiting on an rship process slot can cause pre-upload directory creation (rship mkdir) to hit its 60-second timeout.

Baidu Netdisk (baidupcs)

The baidupcs processor uploads recordings to Baidu Netdisk through the external BaiduPCS-Go CLI (bundled in the Docker image; install it separately for bare-metal setups and point BAIDUPCS_PATH at it if it is not on PATH).

  • Login: open any baidupcs preset in the web UI and use the account card to log in with a pasted cookie string (recommended) or BDUSS + STOKEN. Credentials are handed to BaiduPCS-Go and the session persists in its config directory (BAIDUPCS_GO_CONFIG_DIR); the same card shows the active account and quota. Enable Remember for automatic re-login to also store the credentials server-side (plaintext, like platform cookies): upload jobs then log in again by themselves when the session turns out to be expired — checked before the first attempt and once more before a retry. When a replayed login is rejected (typically because the stored session token was invalidated by a password change), a high-priority baidupcs_relogin_failed notification fires and further attempts pause for an hour, so dead credentials produce one alert instead of a failed Baidu call per job. Logging out forgets the stored credentials.

  • Destination: destination_root supports the usual {streamer}/{title}/time placeholders and always resolves to an absolute Netdisk path. Missing folders are created during upload.

  • Retries: BaiduPCS-Go's exit code does not reflect upload results, so rust-srec parses its per-file output markers. Retries (in-run, workflow, and manual job retries) carry forward files already confirmed uploaded to the same account and destination so only unconfirmed files are re-sent; with the default skip policy plus rapid-upload detection, retries avoid re-uploading already confirmed files. When some files of a batch fail, the step fails and each file's own result (uploaded, skipped or failed) is recorded. Two inputs with the same file name are rejected before uploading, because every file is uploaded directly to the destination folder. Files that Baidu rejects outright (an illegal name, a file over the size limit, an unreadable file or an exhausted quota) are recorded as failed and are not re-sent by later attempts within the same run. When every remaining failed file was rejected permanently, the workflow step fails immediately without spending further retry attempts (if a batch mixes permanent rejections with transient failures, later workflow retries still run the remaining failed files). A large batch is uploaded through several BaiduPCS-Go invocations so the command line stays within the platform limit, and the login check that precedes an upload is not written to the job log.

  • Limits: single files above 128 GB are rejected by Baidu, and interrupted transfers restart from the beginning (BaiduPCS-Go v4 no longer supports resume). Upload jobs run one BaiduPCS-Go process at a time because the tool's local state store is single-writer; avoid running the CLI manually against the same config directory while jobs are active. Further upload jobs stay queued until the running one finishes, shown as queued uploads in the top bar; their timeout (the step's timeout_secs, otherwise the IO Job timeout) starts only when they start running. Baidu Netdisk uploads count toward Max Uploads together with rclone and rship uploads, and not toward Max IO Jobs. Before sending a file, BaiduPCS-Go reads the whole file to check whether Baidu already has a copy, unless Disable rapid upload is on; for a large recording this can take minutes, and the job shows Preparing… meanwhile.

  • Login caveats: credentials are passed over stdin rather than command-line flags and are never written to BaiduPCS-Go's command history; only the active account entry in pcs_config.json is updated on success. Do not run external BaiduPCS-Go commands against the same config directory concurrently — if the config file changes externally during login, the update is rejected. Custom binaries must be compatible with BaiduPCS-Go v4's interactive stdin command interface and pcs_config.json layout. Login attempts time out after 60 seconds, and pasted credentials cannot contain line breaks or NUL characters.

Aliyun Drive (aliyunpan)

The aliyunpan processor uploads recordings to Aliyun Drive through the external tickstep/aliyunpan CLI (bundled in the Docker image; install it separately for bare-metal setups and set ALIYUNPAN_PATH if it is not on PATH).

  • OAuth sign-in: open any aliyunpan preset in the web UI and click Log in on the Aliyun Drive Account card. rust-srec launches aliyunpan login in an isolated staging directory, displays the 5-minute Aliyun Drive OAuth authorization link (with open and copy actions), and commits the refreshed account into aliyunpan_config.json once you confirm authorization. aliyunpan refreshes its own OAuth tokens automatically; when a refresh token eventually expires or is revoked, upload steps fail immediately as non-retryable so you can sign in again from the account card.
  • Target drive & destination: choose Account default drive (default), Backup drive (backup), or Resource library (resource), or set an explicit Drive ID Override (drive_id) in Advanced (and switch the account's default drive directly from the account card). destination_root supports {streamer}, {title}, {platform} and time placeholders and always resolves to an absolute Aliyun Drive path; missing folders are created automatically.
  • Retries & progress: like BaiduPCS-Go, aliyunpan's exit code does not report per-file status, so rust-srec parses its marker lines and progress bars. Confirmed uploads are bound to the signed-in account, target drive, normalized remote path and local file version and carried forward across in-run, workflow and manual retries. With Same-name policy set to Skip (the default), retries skip already-uploaded files; Overwrite (-ow) replaces them, and Auto-rename uploads alongside existing files. When a workflow step configures automatic retries, rust-srec passes -retry 0 (unless your extra arguments set -retry) and defers retries to the workflow schedule.
  • Limits & concurrency: aliyunpan uploads run one process at a time independently of BaiduPCS-Go (so an Aliyun Drive upload and a Baidu Netdisk upload can run concurrently under Max Uploads while two Aliyun Drive uploads serialize). Avoid running external aliyunpan commands against the same ALIYUNPAN_CONFIG_DIR during active uploads or login; while an upload is running, the account card stays responsive by reading local config metadata and marks the account as busy.