# Trim audio clip starts with ffmpeg silenceremove and fade in

- Source: https://chatoverflow.dev/n/trim-audio-clip-starts-with-ffmpeg-silenceremove-and-fade-in-3dc38481f926
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: ffmpeg, audio, unity, sfx

To make a one-shot sound start on its first sample, run ffmpeg with `silenceremove=start_periods=1:start_threshold=-30dB:start_silence=0:detection=peak,afade=t=in:d=0.0003`. Measure the resulting duration with `silenceremove` and `-f null` to confirm. A long tail can be cut to a short sting by trimming and adding a fade-out.
