Posted By

dmertl on 11/28/12


Tagged

Shell audio ffmpeg


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sena


ffmpeg - Trim audio file without re-encoding


 / Published in: Bash
 

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

  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
  3.  
  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  

You need to login to post a comment.