← ClaudeAtlas

trim-pauseslisted

Compress silences longer than a threshold in a video to a target length, preserving natural rhythm. Use to tighten user recordings without changing pacing.
huodebing-alt/Agentic-Headshot-Video-Studio · ★ 0 · AI & Automation · score 71
Install: claude install-skill huodebing-alt/Agentic-Headshot-Video-Studio
# Trim Pauses / 压缩停顿 ## When to use / 何时使用 Tighten long pauses without cutting them entirely. 压缩长停顿但不全部剪掉,保留自然节奏。 ## Inputs / 输入 - `workspace/rough/source.mp4`. - `--detect-db` default -35, `--min-pause-ms` 800, `--target-pause-ms` 300. ## Output / 输出 - `workspace/rough/trimmed.mp4`. - `workspace/rough/trim.report.json`. ## Steps / 步骤 1. `ffmpeg silencedetect` to find pauses. 2. Build a concat list keeping speech and replacing each long pause with a target-length silent gap (using `atrim` + `tpad`). 3. Re-encode minimally (`-c:v libx264 -crf 18 -c:a aac`). 4. Write report (pauses found, time saved). ## Examples / 示例 ``` ffmpeg -i source.mp4 -af silencedetect=noise=-35dB:d=0.8 -f null - ``` ## Failure recovery / 失败回退 - If no pauses detected, copy source unchanged and log. - If audio drift > 100ms after concat, re-mux with explicit timestamps.