通过使用以下命令,我们可以将视频和图像合并在一起。我不是构建ffmpeg命令的专家。
String cmd = "-t 5 -i " + videoPath +
" -loop 1 -t 5 -i " + imagePath +
" -f lavfi -t 5 -i anullsrc" +
" -filter_complex [1][0]scale2ref[2nd][ref];[ref][0:a][2nd][2:a]concat=n=2:v=1:a=1[v][a]" +
" -c:v libx264 -c:a aac -strict -2 -map [v] -map [a] -preset veryfast " + outputPath;
任何有想法在视频和图像之间添加过渡效果的人。 请帮助我。
谢谢。