Creating a video from a single image for a specific duration in ffmpeg

前端 未结 1 886
[愿得一人]
[愿得一人] 2020-12-07 10:59

How do I generate a movie using ffmpeg using a single image (image1.png) for a duration of 15 seconds with a specific resolution so when I play the video, the image will app

相关标签:
1条回答
  • 2020-12-07 11:32
    ffmpeg -loop 1 -i image.png -c:v libx264 -t 15 -pix_fmt yuv420p -vf scale=320:240 out.mp4
    
    • The -t 15 makes it 15 seconds long.
    • The -vf scale=320:240 sets the width/height.

    Make sure to use an actual ffmpeg version e.g. http://johnvansickle.com/ffmpeg/

    0 讨论(0)
提交回复
热议问题