Difference between revisions of "ffmpeg file trimming"

From thelinuxwiki
Jump to: navigation, search
Line 1: Line 1:
  
 
== trim an mp3 file ==
 
== trim an mp3 file ==
Example time time before 10 seconds and after 10+40=50 seconds, keeping the time in between:
+
Example: trim time before 10 seconds and after 10+40=50 seconds, keeping the time in between:
 
  ffmpeg -i input_file.mp3 -c copy -ss 00:00:10 -t 00:00:40 output_filename.mp3
 
  ffmpeg -i input_file.mp3 -c copy -ss 00:00:10 -t 00:00:40 output_filename.mp3
  
 
[[category:ffmpeg]]
 
[[category:ffmpeg]]

Revision as of 15:49, 28 March 2016

trim an mp3 file

Example: trim time before 10 seconds and after 10+40=50 seconds, keeping the time in between:

ffmpeg -i input_file.mp3 -c copy -ss 00:00:10 -t 00:00:40 output_filename.mp3