August'24: Kamaelia is in maintenance mode and will recieve periodic updates, about twice a year, primarily targeted around Python 3 and ecosystem compatibility. PRs are always welcome. Latest Release: 1.14.32 (2024/3/24)

Multimedia facilities

Audio and Video capabilities

Kamaelia.Audio contains components implementing audio input and output as well as support for some codecs such as MP3. These are provided by using the cross-platform pymedia library (make sure you have installed it!). Some bespoke components for audio filtering and mixing are also held here.

Kamaelia.Codec contains components for encoding and decoding Dirac video, and Speex and Ogg Vorbis audio, as well as support for parsing raw data into video frame data structures. There is also a libAO based audio player, which obviously requires libAO and the pyao python bindings.

Formats used to pass audio and video between components

Audio components for the most part pass around raw audio data as raw pcm data in python strings.

Uncompressed raw video is passed around as whole frames - using a dictionary structure containing the raw data and useful metadata such as the width, height, pixel format and frame rate.

Where to look:

See Kamaelia.Audio for:


See Kamaelia.Codec for:

-- Matt, April 2007