How can I script the creation of a movie from a set of images?

前端 未结 3 1634
盖世英雄少女心
盖世英雄少女心 2020-12-23 23:49

I managed to get a set of images loaded using Python.

I\'d like my script to take this series of images (in whatever format I need them), and create a video from them

3条回答
  •  眼角桃花
    2020-12-24 00:23

    If you're not averse to using the command-line, there's the convert command from the ImageMagick package. It's available for Mac, Linux, Windows. See http://www.imagemagick.org/script/index.php.

    It supports a huge number of image formats and you can output your movie as an mpeg file:

    convert -quality 100 *.png outvideo.mpeg
    

    or as animated gifs for uploading to webpages:

    convert -set delay 3 -loop 0 -scale 50% *.png animation.gif
    

    More options for the convert command available here: ImageMagick v6 Examples - Animation Basics

提交回复
热议问题