ffmpeg - Trim audio file without re-encoding

/ Published in: Bash
Save to your folder(s)

Use ffmpeg to trim an audio file without re-encoding it.

Copy this code and paste it in your HTML
  1. # Trim from 00:02:54.583 to end of file
  2. ffmpeg -i input.mp3 -ss 00:02:54.583 -acodec copy output.mp3
  4. # Trim from 00:02:54.583 for 5 minutes
  5. ffmpeg -i input.mp3 -ss 00:02:54.583 -t 300 -acodec copy output.mp3

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.