Active File Processor(Full Documentation for this will be written shortly.)
What is it?It's designed to sit on the backend of a website that accepts images and videos from users, and transodes them to sizes suitable for the web, and to flash video.
The code is however more general, and could in fact be used for anything that needs to watch a bunch of directories and do interesting things (hence the name of this page).
What does it do right now?At present, the code does this:
Draft Installation Instructions
Install Image Magick as normal.
Download and install libamrThis is to support transcoding of video from mobile phones.
Originally from http://www.penguin.cz/~utx/amr
curl -O http://ftp.penguin.cz/pub/users/utx/amr/amrnb-22.214.171.124.tar.bz2
Download and install ffmpegThis is used by the transcode engine to transcode videos. You can however plug something in its place relatively easily.
svn co svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-trunk
Download, install and configure the transcode engine.Grab the code and install it
Create uploads and moderation directories for transcode/moderation pipelinecurl -O http://edit.kamaelia.org/release/Kamaelia-FileProcessor-0.1.0.tar.gz
Make everything writeable by the webuser.cd /tmp # or whereever you prefer - you'll need to change a config option no matter what :-)
Copy the default config to one you want to edit
Then edit /etc/batch_converter.conf such that the following lines/config options ...cp /etc/batch_converter.conf.dist /etc/batch_converter.conf
... get changed to:# main_incoming_queue /tmp/uploads
... or whatever you changed it to...# main_incoming_queue /tmp/incoming
Grab and install PIL ("python imaging library")
Note: PIL requires the ability to build tcl/tk apps for odd reasons. You may find you need to install that dependency before PIL will build. Hence the recommendation to use am .rpm or .deb file if you can.tar zxvf Imaging-1.1.6.tar.gz
This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)
(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved