[英]Android ffmpeg concat two video sound error
This is my command when I am trying to join two video with different resolution with ffmpeg当我尝试使用 ffmpeg 加入两个不同分辨率的视频时,这是我的命令
String[] complexCommand = {
"ffmpeg","-y","-i",
paht_1,
"-i",
path_2,
"-filter_complex",
"[0:v]scale=720:1280,setdar=720/1280[outv0];[1:v]scale=720:1280,setdar=720/1280[outv1];[outv0][outv1]concat=n=2:v=1:a=0[outv];[0:a][1:a]concat=n=2:v=0:a=1[outa]",
"-map",
"[outv]",
"-map",
"[outv]",
"-r",
"25",
"-b",
"10M",
"-preset",
"superfast",
filePath_video_out
};
and this is my error这是我的错误
/mobile-ffmpeg: [NULL @ 0x7c5ce21600] Unable to find a suitable output format for 'ffmpeg'
/mobile-ffmpeg: ffmpeg: Invalid argument /mobile-ffmpeg: ffmpeg: 无效参数
you should repmove "ffmpeg" at first then change second outv to outa same this您应该首先重新移动“ffmpeg”,然后将第二个 outv 更改为 outa this
String[] complexCommand = {
"-y","-i",
paht_1,
"-i",
path_2,
"-filter_complex",
"[0:v]scale=720:1280,setdar=720/1280[outv0];[1:v]scale=720:1280,setdar=720/1280[outv1];[outv0][outv1]concat=n=2:v=1:a=0[outv];[0:a][1:a]concat=n=2:v=0:a=1[outa]",
"-map",
"[outv]",
"-map",
"[outa]",
"-r",
"25",
"-b",
"10M",
"-preset",
"superfast",
filePath_video_out
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.