我正在尝试在视频的特定时间间隔上叠加多个图像...但对于1分钟长度的视频来说,处理时间太长了。
我使用了VideoKit库来实现它。
这是我用于将多个图像添加到视频的代码。
String[] command = {"-i", inputPath,
"-i", imagePath1,"-i", imagePath2,"-i",imagePath3,
"-filter_complex",
"[0][1]overlay=y=H-h:enable='between(t,2,10)'[v1];
[v1][2]overlay=y=H-h:enable='between(t,10,20)'[v2];
[v2][3]overlay=y=H-h:enable='between(t,20,30)'[v3]",
"-map", "[v3]", outputPath};
有没有更快的视频处理库?
-preset
选项)。请参阅FFmpeg Wiki:H.264或H.265。 - llogan