Free software projects:
Python extension to generate captcha images
Python extension to get preview images from Theora videos in Ogg files
Python extension to capture video with video4linux2
Karaoke game
Web projects (Swedish):
email: fredrik@jemla.se
Python extension to get preview images from Theora videos in Ogg files
Source code: oggvideopreview-1.0.tar.gz (4 kB)
License: Public domain. See notice in each file.
Email: fredrik@jemla.se
python-oggvideopreview is a simple Python extension 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.
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
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)