我想通过所有这些文件的组合来创建视频,包括单个音频文件,背景中的静止图像和多次图像帧,我已经在help上使用视频文件实现了此目的现在我尝试了失败的尝试来创建音频用同样的方法。但是出现了一个明显的错误,因为仍然缺乏FFMPEG的知识

以下是我的失败尝试,出现错误Output with label 'v2' does not exist in any defined filter graph, or was already used elsewhere.ffmpeg -y -loop 1 -i bg.jpg -i img/%07d.png -i dia.mp3 -c:v libx264 -tune stillimage -pix_fmt yuv420p -c:a aac -b:a 128k -shortest -vf "[0:v]scale=1280:1280:force_original_aspect_ratio=increase,crop=1280:1280[v1],[v1][2]overlay=10:10:enable='between(t,0,6)'[v2]" -map "[v2]" out.mp4 2>&1

最佳答案

使用
ffmpeg -y -loop 1 -i bg.jpg -i img/%07d.png -i dia.mp3 -c:v libx264 -tune stillimage -pix_fmt yuv420p -c:a aac -b:a 128k -shortest -filter_complex "[0:v]scale=1280:1280:force_original_aspect_ratio=increase,crop=1280:1280[v1];[v1][1]overlay=10:10:enable='between(t,0,6)'" out.mp4 2>&1
填充编号是错误的,并且bg图像比例后面应使用分号。

关于audio - FFMPEG 1音频+1静止图像+多个图像帧,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55400002/

10-11 00:54