eladg / ffmpeg-by-example

Creative Commons Attribution 4.0 International
8 stars 5 forks source link

Cut audio files by sample by atrim - FFmpeg By Example #89

Open eladg opened 2 years ago

eladg commented 2 years ago

https://www.ffmpegbyexample.com/examples/izifjfhs/cut_audio_files_by_sample_by_atrim/

The following command will cut an audio clip in the middle based on the start and end samples of the input wav file. In comparison to trimming audio by using start and end parameters (which is a completely valid methods) this method will produce an output which is accurate to the sample, which is the smallest unit of measurement in the audio space. For more information see the atrim filter documentation page