Gif2mp4 by Python
Posted 默盒
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gif2mp4 by Python相关的知识,希望对你有一定的参考价值。
目的:
$ .gif \rightarrow .mp4$
解决:
pip install MoviePy
import moviepy.editor as mp clip = mp.VideoFileClip("mygif.gif") clip.write_videofile("myvideo.mp4")
If you have ffmpeg on your device, this might be Okay as well.
pip install ffmpy
import ffmpy ff = ffmpy.FFmpeg( inputs={‘input.gif‘: None}, outputs={‘output.mp4‘: None} ) >>> ff.run()
? -1. If python isn‘t necessary, THIS ONE would be a very good and comprehensive choice.
以上是关于Gif2mp4 by Python的主要内容,如果未能解决你的问题,请参考以下文章
在这个 spark 代码片段中 ordering.by 是啥意思?
[RxJS] Implement RxJS `switchMap` by Canceling Inner Subscriptions as Values are Passed Through(代码片段
Flutter 报错 DioError [DioErrorType.DEFAULT]: Bad state: Insecure HTTP is not allowed by platform(代码片段