✦ docs

docs.

reference for mustardy v0.2.0 — a standalone, offline Rust + FFmpeg CLI. source on github →

install

Requires ffmpeg and ffprobe on your PATH (or via MUSTARDY_FFMPEG / MUSTARDY_FFPROBE).

# shell one-liner (macOS & Linux, no Rust required)
curl -fsSL https://raw.githubusercontent.com/noemit/mustardy/main/install.sh | sh

# or install with cargo
cargo install --git https://github.com/noemit/mustardy

# or via homebrew from the repo formula
brew install ./Formula/mustardy.rb

# confirm ffmpeg and hardware encoders
mustardy doctor

Prebuilt tarballs for macOS (aarch64/x86_64) and Linux (x86_64/aarch64) are published on github releases.

commands

commandwhat it does
mustardy trim <inputs...>Trim silences from one or more video/audio files (aliases: cut, remove-silences)
mustardy scan <input>Analyze silences & visual transitions and write a reusable plan.json (alias: analyze)
mustardy apply <plan.json>Render a saved or edited plan JSON directly without re-scanning
mustardy doctorVerify ffmpeg/ffprobe versions, working hardware encoders, and active config
mustardy completions <shell>Generate bash, zsh, fish, or powershell completions
mustardy install-cliSymlink the current binary onto PATH (/usr/local/bin or ~/.local/bin)

trim & options

presets

preset--drop--minpad before / afternormalize
natural (default)30 dB0.90 s0.18 s / 0.18 son (0.7)
tight24 dB0.45 s0.10 s / 0.08 son (0.7)
podcast28 dB0.70 s0.18 s / 0.14 son (0.8)

flags

optiondefaultwhat it does
-o, --output <path><input>-trimmed.<ext>output media or timeline file (single-file mode)
--format <media|fcpxml|edl>mediaoutput format; also auto-detected from .fcpxml / .edl extension
--preset <tight|natural|podcast>naturalpacing & normalization preset
--drop <dB>30how far below talking counts as a pause (8 to 35)
--min <seconds>0.9shortest pause to remove
--pad / --pad-before / --pad-after0.18breathing room kept on each side of speech (seconds)
--keep-edgesoffkeep edge padding at 0:00 and EOF instead of trimming cleanly
--no-visualoffskip the parallel picture-change scan
--cut <START-END>add explicit manual cuts (repeatable, e.g. 0:00-0:12, 14:20-end)
--srt <file> --cut-words <csv>cut matching words or phrases from an SRT transcript
--plan / --save-plan <file>reuse or save a plan JSON to avoid scanning twice
--no-normalize / --normalize-amounton (0.7)control -16 LUFS podcast-style audio leveling
--hw / --codec <name>libx264auto-detect VideoToolbox / NVENC / VAAPI / QSV, or pick an encoder
--crf <0..51> / --encode-preset18 / veryfastvideo quality and software encoder speed
--crossfade <ms>8audio micro-fade at cut joins to eliminate clicks (0 to disable)
--fast-copyoffkeyframe-snapped stream copy for instant rough drafts
--out-dir / --in-place / --skip-existingbatch directory processing and atomic in-place replacement (--backup)
--dry-run / --jsonpreview cuts without encoding; emit structured JSON on stdout
--progress <auto|bar|plain|jsonl|none>autoTTY progress bar with ETA, plain lines, or NDJSON events on stderr
-q, --quiet / -v, --verbosesuppress stderr output or show internal debug diagnostics

plans, timelines & config

two-step scan & apply

mustardy scan talk.mov -o plan.json --json
mustardy apply plan.json -o talk-trimmed.mp4 --hw

zero-reencode nle timelines

Export cut timelines directly for DaVinci Resolve, Final Cut Pro, or Adobe Premiere without touching your original footage:

mustardy trim talk.mov -o talk.fcpxml
mustardy apply plan.json -o talk.edl

config file

Store your microphone and encoder defaults in ./.mustardy.toml or ~/.config/mustardy/config.toml (CLI flags always override):

# ./.mustardy.toml or ~/.config/mustardy/config.toml
preset = "tight"
hw = true
crf = 19
crossfade_ms = 8.0

agent & scripting contract

With --json, structured output goes to stdout while progress stays on stderr (use --progress jsonl for NDJSON progress events).

success output

{
  "ok": true,
  "schemaVersion": 1,
  "input": "talk.mp4",
  "output": "talk-trimmed.mp4",
  "duration": 14.0,
  "trimmedDuration": 9.22,
  "removed": 4.78,
  "silences": 2,
  "audio": {
    "speechDb": -31.544,
    "noiseFloorDb": -180.0,
    "thresholdDb": -61.544,
    "contrastDb": 148.456,
    "lowContrast": false
  },
  "cuts": [
    { "start": 2.18, "end": 4.82, "label": "Trim 2.6s silence", "origin": "silence" }
  ],
  "keeps": [
    { "start": 0.0, "end": 2.18 },
    { "start": 4.82, "end": 9.18 }
  ],
  "elapsedMs": 1548
}

error output

{
  "ok": false,
  "code": "NO_AUDIO",
  "error": "clip.mp4 has no audio track, so there are no pauses to find"
}

exit codes