Difference between revisions of "ffmpeg file trimming"

From thelinuxwiki
Jump to: navigation, search
Line 2: Line 2:
 
== 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 time time before 10 seconds and after 10+40=50 seconds, keeping the time in between:
  ffmpeg -i input_file.mp3 -acodec 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 14:27, 5 May 2014

trim an mp3 file

Example time 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