简体   繁体   English

将图像合并为框架以使用Python制作视频

[英]Combine images as frames to make a video with Python

I'm looking for a Python library that can combine images into a video. 我正在寻找可以将图像组合成视频的Python库。

A library that just allows you to create an empty video and feed images into it as frames is ideal. 一个只允许您创建一个空视频并将图像作为帧馈入其中的库是理想的。

Preferably with support for MPEG compression of the video file as well. 最好还支持视频文件的MPEG压缩。

If you run linux then you can use ffmpeg to do this from the command line there is a python wrapper called pyFFmpeg that you can use - there is also pymedia but it doesn't look to be maintained. 如果您运行Linux,则可以从命令行使用ffmpeg进行此操作 ,可以使用一个名为pyFFmpeg的python包装器-也有pymedia,但它似乎不需要维护。

BTW there are a number of projects that provide builds of ffmpeg for windows. 顺便说一句,有许多项目为Windows提供ffmpeg的构建。

gstreamer is the tool you are looking for. gstreamer是您正在寻找的工具。 you'll probably need an appsrc or something like that. 您可能需要一个appsrc或类似的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM