472,122 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

programming video manipulation

Hi,
I am an artist who creates interactive video installations that are
controlled using a set of sensors, a microcontroller, computer and
video projector. Currently I am using MAX/MSP and Jitter to program
how information collected from the sensors then is used to manipulate
pre-recorded video footage.

I have been investigating Python as an alternative to using
MAX/MSP/Jitter to program the collection of information from the
sensors and the resulting video manipulation. I have not been able to
find information about manipulating video with Python, or collecting
information from a microcontroller. I have heard that I may need a
library of commands already written in C or C++. Does anyone have any
information about using Python with microcontrollers or manipulating
video? Ideas?

My current programming experience is limited to using MAX/MSP/Jitter
and Macromedia Director.

Thank you much for your time,
Olivia
Jul 18 '05 #1
2 4666
Olivia Robinson wrote:
Hi,
I am an artist who creates interactive video installations that are
controlled using a set of sensors, a microcontroller, computer and video
projector. Currently I am using MAX/MSP and Jitter to program how
information collected from the sensors then is used to manipulate
pre-recorded video footage.

I have been investigating Python as an alternative to using
MAX/MSP/Jitter to program the collection of information from the sensors
and the resulting video manipulation. I have not been able to find
information about manipulating video with Python, or collecting
information from a microcontroller.


Hi, here's my best guess at some tips for doing this, but it would be
nowhere as easy as using Jitter I bet (but free instead of $850).

First, see this related project that used sensors to create music, and
is programmed with Python. Simon Burton could give you some advice.
http://www.pcworld.idg.com.au/index.php?id=716362867
http://arrowtheory.com/hypersense/

The most difficult thing to program on your own may be reading the
sensor data from the computer. It used to be simple using serial ports,
but now we use USB. There are no solutions here, just some pointers to
related resources:
http://developers.coedit.net/UsbProgramming
http://developers.coedit.net/AudioProgramming

For the video and real-time video transformations, you would likely want
to use OpenGL from Python (pyopengl). It is possible to load a frame
from a video file as a texture in OpenGL. And you can manipulate it
just like any other texture or surface. Here are demos of this below.
The code can be adapted to pyopengl, but there is also some
Windows-specific and Mac-specific code to read the video format.
http://nehe.gamedev.net/data/lessons....asp?lesson=35
http://developer.apple.com/samplecod...nGL_Movie.html
Jul 18 '05 #2
Ian
On Tue, 25 May 2004 15:15:39 -0400, Olivia Robinson <ro****@rpi.edu>
wrote:

I have been investigating Python as an alternative to using
MAX/MSP/Jitter to program the collection of information from the
sensors and the resulting video manipulation. I have not been able to
find information about manipulating video with Python, or collecting


Hi Olivia,

I don't have answers for all your questions, but you may be interested
in this project:

http://aid.interaccess.org/drupal/

We are developing a standard microcontroller module for use by
artists, and have developed Python interfaces for it. We've also used
Director and Pure Data (similar to Max I understand). Currently the
module uses a serial interface, we use usb-to-serial adapters. We
have an experimental usb board interface and will be implementing usb
support for our Python module. All source will be available on our
site, as well as recipes for software and hardware configuration.
There are a variety of hardware interface modules available for the
board.

By the way you can build your own board from the info on our site,
or soon buy finished boards as well. We don't have any direct support
for video at the moment, but that should change soon.

Ian

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dmitry Borisov | last post: by
5 posts views Thread by Ch3ru5 | last post: by
7 posts views Thread by Paolo Pantaleo | last post: by
6 posts views Thread by John Salerno | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.