atrim
atrim is an audio filter in FFmpeg’s libavfilter that trims an input audio stream by discarding samples outside a specified interval. It is commonly used to remove silence at the beginning or end of a track, or to cut a section from a recording. The filter preserves audio properties such as sample rate and channel layout.
The filter accepts time-based and sample-based specifications. Time-based trimming uses start and end in seconds (or
Examples illustrate typical usage. To trim a 5 to 25 second segment from an input file and
Notes: atrim is a standard FFmpeg filter available in typical builds. It does not perform resampling or