我使用以下命令创建幻灯片:
"ffmpeg" -f concat -safe 0 -i /path/to/text.txt -i /path/to/audio.mp3 -vsync vfr -pix_fmt yuv420p /path/to/output.mp4
text.txt的内容
file '/path/to/img1.jpg'
duration 6
file '/path/to/img2.jpg'
duration 6
file '/path/to/img3.jpg'
duration 6
file '/path/to/img4.jpg'
duration 6
file '/path/to/img5.jpg'
duration 6
file '/path/to/img6.jpg'
duration 6
视频已经成功创建。现在我想为每个显示的图像添加标题。例如:
- img1.jpg 显示,显示标题
Title 1
- img2.jpg 显示,显示标题
Title 2
- img3.jpg 显示,显示标题
Title 3
fps = 25
来生成视频CFR。-- 或者 -- 更改时间表达式为enable ='eq(n,0)'
等等。 - Gyan