无法在视频上使用FFmpeg绘制文字

时间:2018-11-20 15:28:30

标签: android video ffmpeg android-ffmpeg

我正在尝试使用FFmpeg使用'ffmpeg-android-java'在视频上叠加文字。我这样使用的命令:

command = "ffmpeg -i /storage/emulated/0/GsrVideo/testvideo.mp4 -vf drawtext=\"font=/storage/emulated/0/font/Pacifico.ttf:fontsize=20:fontcolor=red:x=10:y=10:text='hello'\" /storage/emulated/0/GsrVideo/editedVideo.mp4"

但是给出错误信息-使用args初始化过滤器'drawtext'时出错“” font = / storage / emulated / 0 / font / Pacifico.ttf:fontsize = 20:fontcolor = red:x = 10: y = 10:text ='hello'“,打开过滤器时出错!

请任何人都可以帮助我在过滤器中指出问题。

0 个答案:

没有答案