ffmpeg - 覆盖文本动画和视频

时间:2017-11-14 11:47:07

标签: ffmpeg

我正在使用此ffmpeg命令生成带有淡入淡出文本动画的视频,此命令在旧版本的ffmpeg - 2.8.11中正常运行,但是当我尝试在另一台具有ffmpeg版本的计算机上运行相同的命令时 - 3.3.3,发生错误:

ffmpeg命令:

ffmpeg -i ./based_video/720/clip3.mp4 -filter_complex \
"color=black:100x100[c]; \
[c][0]scale2ref[ct][mv]; \
[ct]setsar=1,split=3[t1][t2][t3]; \
[t1]drawtext=fontfile=../../public/fonts/Roboto-Regular-webfont.ttf: \
text='Test Text 1':fontsize=36:fontcolor=white,split[text1][alpha1]; \
[text1][alpha1]alphamerge,fade=t=in:st=2:d=2:alpha=1,fade=t=out:st=7:d=2:alpha=1[txta1]; \
[t2]drawtext=fontfile=../../public/fonts/Roboto-Regular-webfont.ttf: \
text='Test Text 2':fontsize=36:fontcolor=white,split[text2][alpha2]; \
[text2][alpha2]alphamerge,fade=t=in:st=2:d=2:alpha=1,fade=t=out:st=7:d=2:alpha=1[txta2]; \
[t3]drawtext=fontfile=../../public/fonts/Roboto-Regular-webfont.ttf: \
text='Test Text 3':fontsize=36:fontcolor=white,split[text3][alpha3]; \
[text3][alpha3]alphamerge,fade=t=in:st=2:d=2:alpha=1,fade=t=out:st=7:d=2:alpha=1[txta3]; \
[mv][txta1]overlay=x='300':y='300':shortest=1[mv1]; \
[mv1][txta2]overlay=x='300':y='400':shortest=1[mv2]; \
[mv2][txta3]overlay=x='300':y='500':shortest=1" \
-c:v libx264 -c:a copy output.mp4

错误:将过滤器标记为已完成,转换失败

时出错

0 个答案:

没有答案