Skip to content

Instantly share code, notes, and snippets.

@zori
Created March 28, 2019 04:42
Show Gist options
  • Save zori/89e65281b45c4eab51a40414d2ca646b to your computer and use it in GitHub Desktop.
Save zori/89e65281b45c4eab51a40414d2ca646b to your computer and use it in GitHub Desktop.
Trim audio files without losing quality
# Note the order of arguments matters, otherwise you might get an `Unknown decoder 'copy'`
# start from 5 seconds, trim until 01:19
# The output will have a duration of 01:14 = 74 seconds
ffmpeg -ss 00:05 -to 01:19 -i input.mp3 -acodec copy output.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment