我需要从音频文件中剪辑部分内容,从一个位置到另一个位置。当我尝试使用以下命令时:
ffmpeg -ss 132 -t 139 -i original.mp3 new.mp3
从第132秒开始,将接下来的139秒添加到新文件中。
我需要的是从132秒到139秒的内容。
当我尝试时
ffmpeg -ss 132 -to 139 -i original.mp3 new.mp3
出现错误:
Unrecognized option 'to'
Failed to set value '139' for option 'to'
(我不想告诉你需要多少秒,只是从/到的时间)。
-- 我的ffmpeg版本是0.8.20-6:0.8.20-0+deb7u1(使用gcc 4.7.2于2017年1月19日11:13:36构建)。当我尝试更新它(apt-get install ffmpeg)时,它告诉我“ffmpeg已经是最新版本”。
ffmpeg -ss <T0> -i <input file> -t <T1 - T0(duration in seconds)> <out file>
orffmpeg -ss <T0> -i <input file> -t <T0(format 00:00:00) + (T1 - T0)> <out file>
for exampleffmpeg -ss 00:15:30 -i "a.mp3" -t 25 "b.mp3"
orffmpeg -ss 00:15:30 -i "a.mp3" -t 00:00:25 "b.mp3"
- chankruzeffmpeg -i input.mp3 -ss 00:01:30 -to 00:02:50 output.mp3
。 - Jason