How to make a movie out of images in python

前端 未结 4 1892
野性不改
野性不改 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:40

    I use the ffmpeg-python binding. You can find more information here.

    import ffmpeg
    (
        ffmpeg
        .input('/path/to/jpegs/*.jpg', pattern_type='glob', framerate=25)
        .output('movie.mp4')
        .run()
    )
    

提交回复
热议问题