Skip to content

Settings — Stream Management

Stream Management is the page that controls what Sublarr does with the embedded subtitle and audio tracks inside your MKV / MP4 files. The headline feature is foreign-track removal: stripping subtitle tracks in languages you don’t want, so your media server doesn’t show “Russian” and “Polish” in the player UI for an English-language show.

When enabled, Sublarr scans every container as part of its post-extract pipeline and removes subtitle tracks that don’t match a “keep” criterion. The original file is preserved in Trash for the configured retention.

SettingDefaultValuesEffect
EnabledofftoggleMaster switch. Turning on starts a one-shot pass over the library.
Keep modetarget-onlytarget-only / target+original / whitelistWhich tracks to keep.
Whitelistemptycomma-separated language codesWhen mode is whitelist, only listed languages are kept.
Keep undefinedontoggleTracks tagged und (undefined language) are kept; many releases tag the original audio language as und.
Run on importofftoggleRun automatically on every new file Sonarr/Radarr imports.
ModeExample outcome
target-only (default)Profile target = de, file has en, de, ja, ko → keeps de.
target+originalKeeps de + the original audio language as detected.
whitelist with de,en,jaKeeps only those three regardless of profile.

When the underlying filesystem supports them (Btrfs, XFS, ZFS, ReFS, OCFS2 with reflink mount), Sublarr can use reflinks for the temporary copy used during remuxing — saving disk on every operation.

SettingDefaultEffect
Use reflinksautoWhen auto, Sublarr probes filesystem capability and uses reflinks if supported. Force on only if you’ve verified your FS, or off to disable for predictable behaviour.

Reflinks aren’t always faster than copies — they save disk but the rename + atomic-replace dance still hits the metadata layer. Benefit is biggest on big files (≥ 5 GB).

SettingDefaultValuesEffect
MKV backup retention (days)140–365How long the pre-remux file stays in Trash. 0 disables retention (immediate delete).
Subtitle backup retention (days)140–365Lifetime of .bak files written by the editor. See Subtitle Backups.
Trash directory/config/trashabsolute pathWhere the deleted/replaced files live. Must be writable; should be on the same volume as media to make moves atomic.

When Sublarr extracts an embedded subtitle, the result is a new sidecar file. The container’s embedded track stays in place by default — meaning the same subtitle exists twice (embedded + sidecar):

SettingDefaultEffect
Cleanup after extractoffWhen on, foreign-track removal runs immediately after a successful extract, dropping the now-redundant embedded track.

Useful for storage savings; off by default because it modifies the container — a more invasive operation than just writing a sidecar.

SettingDefaultEffect
*Pause arr during remuxoffTells Sonarr/Radarr to ignore filesystem events for the duration of the remux. Prevents the *arr from re-importing the half-finished file.

Both binaries are bundled in the Docker image and discovered automatically. Override only when running outside Docker:

SettingDefaultEffect
ffmpeg pathbundledCustom binary path; useful for distros without ffmpeg in $PATH.
mkvmerge pathbundledSame for mkvmerge.
ffmpeg timeout (s)300Per-operation timeout. Raise for very long files.
SymptomCauseFix
Remux reports success but file unchangedForeign-track scan found nothing to remove (file already clean)Confirm the language tags inside the MKV — mkvinfo file.mkv shows them.
MKV grows in size after remuxNew container has different default flagsDisable Reset default flags under advanced.
Some files refuse to remuxBitstream + container mismatchCheck Logs for mkvmerge stderr; usually a corrupt source.
Trash fills disk fastRetention too high for your library churnLower retention or move trash to a different volume.