【发布时间】:2016-06-30 01:48:29
【问题描述】:
使用ffmpeg,我们可以对音频电平进行多少控制?例如,我想在程序的时间轴上映射一个“M”形:
t0 - t1 : fade in from 0 to 1
t1 - t2 : play at full volume
t2 - t3 : fade out to 25%
t3 - t4 : play at 25% volume
t4 - t5 : fade in (from 25%) to full volume
t5 - t6 : play at full volume
t6 - t7 : fade out from 1 to 0
这可以吗?我尝试过的组合(淡入淡出和音量,以及使用时间线编辑)到目前为止还没有成功。
这里是接近的东西:
ina="infile.caf"
out="outfile.mp3"
time ffmpeg -i $ina -af \
"afade=enable='between(t,0,3)':t=in:ss=0:d=3, \
afade=enable='between(t,7,8)':t=out:st=7:d=1, \
volume=enable='between(t,8,12)':volume=.25:eval=frame, \
afade=enable='between(t,12,13)':t=in:st=12:d=1, \
afade=enable='between(t,15,18)':t=out:st=15:d=3" \
$out
.. 但在两个中间点(淡出至 25% 的点和淡出至全音量的点)存在故障 - 可听见的咔嗒声。
【问题讨论】:
-
你试过什么命令?
-
@Mulvya,我添加了一个我一直在尝试的例子。这很接近,但还不能接受。
-
淡入淡出过滤器从零开始或从零开始。您应该完全使用音量过滤器来完成。我会尽快提供答案。