Markus,
You may find some things that will help in the patches by Max Neupert.  Though his patches keep the audio and video as separate files, the techniques work well.  

http://www.maxneupert.de/pd/

The files on Motion detection (17-documentation.pd in particular) and Audiovisual programming may help out.  

Hope this is helpful,
Mitch



On Mar 1, 2011, at 6:14 PM, pd-list-request@iem.at wrote:

Message: 1
Date: Tue, 01 Mar 2011 22:29:32 +0100
From: Markus Demmel <az@zankapfel.org>
Subject: [PD] How to capture sound & video from Pd/Gem
To: pd-list@iem.at
Message-ID: <4D6D653C.7000102@zankapfel.org>
Content-Type: text/plain; charset=ISO-8859-1

Hi List,

does anybody know a good (working) way to capture audio and video from Pd/Gem
under linux?

So far i tried using glc-capture, which gives good video results, but refuses to
record any sound at all. glc-capture should work with alsa, but it only outputs
error messages like this: snd_pcm_open (input): Device or resource busy or [
33.15s alsa_capture error ] initialization failed: Invalid argument ...

markus