How to make a movie out of images in python

前端 未结 4 1918
野性不改
野性不改 2020-12-02 11:30

I currently try to make a movie out of images, but i could not find anything helpful .

Here is my code so far:

import time

from PIL import  ImageGra         


        
4条回答
  •  一生所求
    2020-12-02 11:44

    Thanks , but i found an alternative solution using ffmpeg:

    def save():
        os.system("ffmpeg -r 1 -i img%01d.png -vcodec mpeg4 -y movie.mp4")
    

    But thank you for your help :)

提交回复
热议问题