Loading...
Logo
Processing Forum
Hello everyone,

I'm excited to start using my webcam with processing! (I'm using 1.0.9 on Ubuntu 8.10)

I've downloaded gsvideo 0.6 pre5 and unzipped it to sketchbook/libraries/
I've also tried in ./processing-1.0.9/libraries/

None of the examples work because of errors like 

"the package processing.video does not exist"

I found a useful post on the old forum with some code posted by the library author.( http://processing.org/discourse/yabb2/YaBB.pl?num=1260456465)

By changing the import to

import codeanticode.gsvideo.*

and the changing all the "Capture video"  to "GSCapture video", I get a working app.

But I'm wondering what everyone else is doing? I'd like to be able to browse the demos without all this changing!

Cheers,

Matthew

Replies(6)

Hello, what you did is the correct way of switching between the built-in video library and GSVideo.

There is no way of using GSVideo without making the changes you just described, otherwise Processing wont' be able to know that you are trying to load GSVideo.

I could have named the video capture class Capture instead of GSCapture, but I think it is better idea to keep different names to differentiate between the two libraries.

For Linux it doesn't matter, since the built-in video library is not functional at all. But on Windows and Mac, having different names gives you the possibility of loading both libraries at the same time, in the situation you need to use classes from both codeanticode.gsvideo and processing.video simultaneously.

Cheers,
Andres
Hello!

Whatever you find inside the File >> Examples menu only has examples for whatever is built right into processing.
Examples for manually installed libraries can be found in  File >> Sketchbook >> libraries.


The reason that the examples of the built-in video library don't work on linux is that they still depend on quicktime.
Thanks guys, 

you know this is one of those things where as soon as I lay down to sleep I knew that the examples were the built in ones and so wouldn't work with gsvideo!

Cheers,

Matthew
Hey guys, thanks for the help with this. I got it working and successfully used my app for a graffiti workshop. Some pics here of the results!

In the end I combined it with a wiimote to make it even easier/more fun for them to play with.

I hooked up a projector and after capturing the high contrast image they could trace round the projected image onto a peice of paper/cardboard.

Using temporary stencils and spray paint these were made:

great pics. thanks for posting!

Is this a workshop at a high school?
it was for a summer school. I do quite a lot of science/tech/art workshops with young people.

I also used processing for data display of wind tunnel stats for a wind turbine blade design competition I ran recently: