最佳的Python视频处理库? [英] Best video manipulation library for Python?

查看:918
本文介绍了最佳的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天全站免登陆