oggvideopreview is a simple Python module to get preview images from Theora videos in Ogg files. It uses libogg and libtheora.
It's designed to be simple. If you have additional requirements, please modify the C source code.
Installation:
python-oggvideopreview uses distutils.
python-oggvideopreview requires the libraries libogg and libtheora. http://xiph.org/downloads/
To build: ./setup.py build To build and install: ./setup.py install
Example:
import oggvideopreview
import Image
import sys
# May raise IOError
def get_video_image(path):
size_x, size_y, aspect_numerator, aspect_denominator, image_data
= oggvideopreview.make_preview(path)
return Image.fromstring("RGB", (size_x, size_y), image_data)
Product's homepage
Requirements:
· Python