Android gif ffmpeg,ffmpeg - FFmpeg在Android问题中缩放并在图像上叠加多个图像/ GIF? - 堆栈内存溢出...

我正在尝试在图像上放置多个图像/ gif。 我曾尝试在图像或视频上放置单个gif,它的工作效果非常好,但无法同时缩放多个图像。 尝试以下代码,但出现错误:

String[] command=new String[13];

command[0]="-i";

command[1]=input;

command[2]="-i";

command[3]=thumbnail2;

command[4]="-i";

command[5]=thumbnail;

command[6]="filter_complex";

command[7]="[0:v]scale=0:0[base]";

command[8]="[1:v]scale=30:-1[img1]";

command[9]="[2:v]scale=3000:-1[img2]";

command[10]="[base][img1]overlay=70:70[tmp1]";

command[11]="[tmp1][img2]overlay=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2[out]";

command[12]="/storage/emulated/0/Pictures/logo-2000.gif";

fFmpeg.execute(command,

new ExecuteBinaryResponseHandler() {

@Override

public void onStart() {

//for logcat

Log.w(TAG,"Cut started");

}

@Override

public void onProgress(String message) {

Log.w(TAG,message.toString());

}

@Override

public void onFailure(String message) {

Log.w(TAG,message.toString());

Toast.makeText(getApplicationContext(),"Error",Toast.LENGTH_SHORT).show();

}

@Override

public void onSuccess(String message) {

Log.w(TAG,message.toString());

Toast.makeText(getApplicationContext(),"sucessfully saved",Toast.LENGTH_SHORT).show();

}

@Override

public void onFinish() {

Log.w(TAG,"Cutting video finished");

}

});

我得到的错误是:

[NULL @ 0xb6591800]无法为'filter_complex'filter_complex找到合适的输出格式:无效的参数

由于我是ffmpeg的新手,请帮助我解决我仅想同时缩放和覆盖多个图像的问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值