关注 this question我决定使用 ffmpeg 来裁剪 MP3。在 another question我发现了这种方法:
ffmpeg -t 30 -acodec copy -i inputfile.mp3 outputfile.mp3
问题是我不想裁剪前 30 秒,我想从 x 裁剪到 x+n,比如从 30 秒到 100 秒。我该怎么做呢?
我正在阅读 man for ffmpeg但这并不是很简单,特别是因为我刚刚发现了 ffmpeg 并且我不熟悉音频/视频编辑软件,所以任何指针都将不胜感激。
最佳答案
看一下 -t 和 -ss 参数。他们应该做你想做的事。
-t duration
Restrict the transcoded/captured video sequence to the duration specified in seconds. hh:mm:ss[.xxx] syntax is also supported.
-ss position'
Seek to given time position in seconds. hh:mm:ss[.xxx] syntax is also supported.
例如,
ffmpeg -ss 30 -t 70 -i inputfile.mp3 -acodec copy outputfile.mp3
应该为你提到的范围(30s-100s)做伎俩。
关于mp3 - 如何使用 ffmpeg 将 mp3 从 x 裁剪为 x+n?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1390731/