如何将单个图像转换为MP4视频? [英] How to convert a single Image to MP4 Video?
本文介绍了如何将单个图像转换为MP4视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将单个图像转换为mp4视频.
How to convert a single image to mp4 video.
例如,我需要播放同一张图片20秒钟(持续时间是动态的)
For example, I need to play the same image for 20 seconds (duration will be dynamic)
我知道 ffmpeg 是可能的.我在Google&中搜索所以,但是不幸的是,我找不到正确的教程.
I know it's possible with ffmpeg. I searched in google & SO but unfortunately, I am not able to find the correct tutorial.
我只想要一个正确的方向.
I just want a correct direction.
欢迎任何评论或建议.
推荐答案
基本语法是
ffmpeg -loop 1 -i image -pix_fmt yuv420p -t 20 out.mp4
-t
选项设置时间(以秒为单位).
The -t
option sets the time, in seconds.
这篇关于如何将单个图像转换为MP4视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文