我正在尝试在 android 中使用 ffmpeg 从命令行中选择的图像制作视频
使用这个项目作为我的源我试图制作视频
这是我试图创建视频的命令
String[] ffmpegCommand = {ffmpegBin,
"-y",
"-qscale",
"1",
"-r", "" + frameRate,
"-i", image1.getAbsolutePath(),
"-t", "" + (((4) * 30) + 4), //"-s",heightwidth,
"-i", image2.getAbsolutePath(),
"-t", "" + (((4) * 30) + 4), //"-s",heightwidth,
"-i", image3.getAbsolutePath(),
"-t", "" + (((4) * 30) + 4), //"-s",heightwidth,
"-i", image4.getAbsolutePath(),
"-t", "" + (((4) * 30) + 4), //"-s",heightwidth,
"-vcodec",
"libx264",
"-s",
"640x480",
outputFile.getAbsolutePath()};
但是创建的视频仅显示第一张图像,并且视频的创建时间不到一秒
这个声明有什么问题?为什么视频中只显示一张图片?
对不起我的英语不好