赞
踩
from moviepy.editor import ImageSequenceClip
pic_dir="./imgs"
fps=1
clip=ImageSequenceClip(pic_dir,fps,with_mask=False,load_images=True)
clip.write_videofile("res.mp4",codec="libx264",audio=False)
clip.write_gif("res.gif")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。