Personal:

Free software projects:

Web projects (Swedish):

email: fredrik@jemla.se

Windows 7 Sins

python-oggvideopreview

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

Introduction

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.

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)

Change log

  • 1.0 (2009-11-03) - Initial release.