Using Python to crop an AVI file [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
开发者_开发技巧Closed 9 years ago.
Improve this questionI have a media file (AVI or mpeg doesn't really matter) I'd like to just get the top half of the each frame and remove the lower half from my video. IS there any library in python that can help me?
I'd recommend ffmpeg. There's a wrapper for python (http://code.google.com/p/pyffmpeg/), though I never tried it.
If that doesn't work, you could just launch a child process for the ffmpeg command-line tool from the interpreter.
I am experimenting with the Python interface to OpenCV. It is capable of doing real time calculations on the movie stream.
精彩评论