Using ffmpeg to trim MP3

user-pic
Vote 0 Votes

sample.mp3 長度 30 分鐘

取前10分鐘, 輸出為 first10.mp3
ffmpeg -t 00:10:00 -i sample.mp3 -codec copy first10.mp3

取中間10分鐘, 輸出為 middle10.mp3
ffmpeg -ss 00:10:00 -t 00:10:00 -i sample.mp3 -codec copy middle10.mp3

取最後10分鐘, 輸出為 last10.mp3
ffmpeg -ss 00:20:00 -i sample.mp3 -codec copy last10.mp3

將前後十分鐘合併, 輸出為 merge.mp3
ffmpeg -i "concat:first10.mp3|last10.mp3" -codec copy merge.mp3

Leave a comment

About this Entry

This page contains a single entry by Pank published on August 5, 2013 10:16 PM.

iodine (IP over DNS tunnel) was the previous entry in this blog.

K-Lite Codec Pack 10 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives