简体   繁体   English

使用FFMPEG4Android图像重叠失败

[英]Image overlay fails using FFMPEG4Android

I am trying to watermark a video using FFMPEG4Android. 我正在尝试使用FFMPEG4Android给视频加水印。 I am using the app on the android market from here . 我从这里开始在android市场上使用该应用程序。

The command used is 使用的命令是

ffmpeg -i /sdcard/videokit/in.mp4 -i /sdcard/videokit/logos/1.png -i /sdcard/videokit/logos/2.png -i /logos/3.png -filter_complex "[0:v][1:v] overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,0,1)' [tmp]; [tmp][2:v] overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,2,3)' [tmp2]; [tmp2][3:v] overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,4,5)'" /sdcard/videokit/output.mp4 ffmpeg -i /sdcard/videokit/in.mp4 -i /sdcard/videokit/logos/1.png -i /sdcard/videokit/logos/2.png -i /logos/3.png -filter_complex“ [0:v ] [1:v] overlay = main_w-overlay_w-10:main_h-overlay_h-10:enable ='between(t,0,1)'[tmp]; [tmp] [2:v] overlay = main_w-overlay_w- 10:main_h-overlay_h-10:enable ='介于(t,2,3)'[tmp2]; [tmp2] [3:v] overlay = main_w-overlay_w-10:main_h-overlay_h-10:enable ='介于(t,4,5)'“ /sdcard/videokit/output.mp4

But everytime I run the command the app fails 但是每次我运行命令时,应用程序都会失败

Opening an output file: overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,0,1)'. 打开输出文件:overlay = main_w-overlay_w-10:main_h-overlay_h-10:enable ='between(t,0,1)'。 No such filter: '' Error configuring filters. 没有这样的过滤器:''配置过滤器时出错。 exit_program: 1 exit_program:1

Can I get any help for the same? 我可以得到同样的帮助吗?

您需要使用复杂的命令,请查看ffmpeg4android博客以获取示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM