Skip to content

Instantly share code, notes, and snippets.

@mrtnpar
Last active February 8, 2023 11:45
Show Gist options
  • Save mrtnpar/3667926 to your computer and use it in GitHub Desktop.
Save mrtnpar/3667926 to your computer and use it in GitHub Desktop.
Cut first 30 seconds of a MP3 file
ffmpeg -t 30 -acodec mp3 -i inputfile.mp3 outputfile.mp3
sox infile.wav outfile.mp3 trim 01:40 120 fade h 0:5 0 0:5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment