How to convert a single Image to MP4 Video?

2019-07-11 01:43发布

问题:

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.

回答1:

Basic syntax is

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

The -t option sets the time, in seconds.



回答2:

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