Creating MPEG4 video file with Python from raw frames

前提是你 提交于 2019-12-04 14:13:00

With OpenCV and the corresponding Python binding, you could use something like the function cv.WriteFrame. You could also use pyffmpeg, but that is geared more towards accessing individual frames from a video file.

One of these should be able to do what you requesting:

Because this question still shows up pretty high in relevant Google searches, here's the library I'm using now:

https://pypi.python.org/pypi/ffmpy/0.0.4

It is lightweight and still works.

Per Neal, OpenCV has the best libraries for editing, but does not (AFAIK) support MPEG.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!