我能够使用下面的代码为一个图像创建视频,但无法知道如何将多个图像转换为android中的视频文件(我正在使用NDK-videokit.so文件,使用此文件没有问题)
String[] arrayOfString2 = new String[12];
arrayOfString2[0] = "ffmpeg";
arrayOfString2[1] = "-r";
arrayOfString2[2] = ("1/" + VideomakerMain.this.usersec);
arrayOfString2[3] = "-i";
arrayOfString2[4] = (Environment.getExternalStorageDirectory().getPath() + "/Test/5.png");
arrayOfString2[5] = "-c:v";
arrayOfString2[6] = "libx264";
arrayOfString2[7] = "-r";
arrayOfString2[8] = "2";
arrayOfString2[9] = "-pix_fmt";
arrayOfString2[10] = "yuv420p";
arrayOfString2[11] = VideomakerMain.this.videoname;
Videokit localVideokit = new Videokit();
localVideokit.run(arrayOfString1, Environment.getExternalStorageDirectory().getPath() + "/Test";
任何人都知道如何从多张图片制作视频?