How to convert a single Image to MP4 Video?

2019-07-11 01:56发布

How to convert a single image to mp4 video.

For example, I need to play the same image for 20 seconds (duration will be dynamic)

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.

Any comment or suggestion is welcome.

2条回答
太酷不给撩
2楼-- · 2019-07-11 02:22

Basic syntax is

ffmpeg -loop 1 -i image -pix_fmt yuv420p -t 20 out.mp4

The -t option sets the time, in seconds.

查看更多
手持菜刀,她持情操
3楼-- · 2019-07-11 02:36

You can always use any video edit like windows movie maker. Just add the photo to a project change the duration to 20 seconds and export And then you have a 20 second video file of one image

查看更多
登录 后发表回答