最好的 Python 视频操作库? [英] Best video manipulation library for Python?

查看:31
本文介绍了最好的 Python 视频操作库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我正在编写的 Python 应用程序和谷歌搜索提供一些简单的视频编辑功能:

I'd like to include some simple video editing functionality for the Python application I'm writing and googling comes up with:

  1. pymedia
  2. pyglet(使用媒体模块)
  3. gst-python

要求:

  1. 占地面积小.我已经在使用 wxPython(只是因为),这很容易使最终的 EXE 文件膨胀,所以最好是我用来实现这个视频编辑功能的任何东西都不应该显着增加膨胀.
  2. 该库仍应积极维护.
  3. 它不应该需要专有许可,因此 FMOD 是不可能的.
  4. 最小的依赖
  5. 不是一个成熟的视频编辑器.不需要花哨的裤子.只是能够跳到视频的不同部分,或者抓取一帧,或者为视频部分的开始和结束放置(多个)标记以删除位.
  6. 跨平台 - 最终应该能够在 Windows、Linux 和 OS X 上运行.
  1. Small footprint. I'm already using wxPython (just because), which bloats up the final EXE file pretty easily so preferably whatever I use to implement this video editing functionality shouldn't add to the bloat significantly.
  2. The library should still be actively maintained.
  3. It shouldn't require proprietary licensing, so FMOD is out of the question.
  4. Minimal dependencies
  5. Not a full-blown video editor. No need for fancy pants stuff. Just the ability to skip to different parts of a video and either grab a frame or put (multiple) markers for start and end of video sections to lop off bits.
  6. Cross platform - should be able to run on Windows, Linux and OS X at the end of the day.

如果您使用过上面列出的任何视频编辑库或其他我尚未在您的 Python 应用程序中遇到的库,我想知道每个库的缺陷以及它们如何相互叠加.如果您还知道 avbin 的 Python 绑定,我想知道在哪里可以找到它.

If you've used any of the above video editing libraries listed above or others I have yet to come across in your Python application, I'd like to know the pitfalls for each and how they stack up against each other. If you also know of a Python binding for avbin, I would like to know where to find it.

gst-python(带有 Python 绑定的 Gstreamer)似乎没有很好的文档记录.它似乎也与 pyGTK 紧密结合,后者也是一个相当大的工具包.

gst-python (Gstreamer with Python bindings) doesn't seem to be very well documented. It also appears to be tightly coupled with pyGTK, which is also a pretty big toolkit.

推荐答案

我建议你再看看 gst-python!它与pyGTK结合.您可以完全单独使用它,不依赖于 Python 绑定或 GTK 的 C 库.我编写了几个使用 gst-python 而不是 GTK 的命令行实用程序.

I would recommend that you look again at gst-python! It is not coupled with pyGTK. You can use it completely separately, with no dependencies on either the Python bindings or the C libraries of GTK. I've written several command-line utilities that use gst-python and not GTK.

确实,gst-python 文档并不是很好.但是,C API 和模块的文档 确实非常广泛,并且来自 C API 的映射Python API 非常简单.并且有一个非常活跃的 Gstreamer 社区,我很幸运在邮件列表和 IRC 上找到了帮助!

It's true that the gst-python docs are not so great. However, the documentation for the C API and modules is really very extensive, and the mapping from the C API to the Python API is very straightforward. And there is a very active Gstreamer community and I had good luck finding help on the mailing lists and IRC!

这篇关于最好的 Python 视频操作库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆