Ranjithkumar
Ranjithkumar

Reputation: 18386

How to convert a single Image to MP4 Video?

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.

Upvotes: 4

Views: 3213

Answers (2)

Saxo_Broko
Saxo_Broko

Reputation: 398

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

Upvotes: -1

Gyan
Gyan

Reputation: 93038

Basic syntax is

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

The -t option sets the time, in seconds.

Upvotes: 8

Related Questions