|
Author |
Topic: begin video (Read 728 times) |
|
st33d
|
begin video
« on: Jan 30th, 2005, 2:19am » |
|
I can't find reference to beginVideo() despite what the example in Learning says. I have my "Creative" web-cam plugged into the usb port. I run the code below: Code: boolean newFrame = false; void setup() { size(320, 240); beginVideo(width, height, 4); } void videoEvent() { newFrame = true; } void loop() { if(newFrame) { background(video); newFrame = false; } } |
| And that's when my computer locks up. I've waited quarter of an hour with no change other that the screen saver kicking in and I have to reset the computer or wait fifteen minutes for the task manager to shut down Processing. My computer only seems to slow down when I have in excess of 10,000 basic objects running around so I don't think it's a speed issue. I'm assuming there's something I haven't done but there's no indication anywhere of what. All the examples I've seen seem to infer a magical detection of the web-cam. I've tried quick-time and that's not a problem.
|
I could murder a pint.
|
|
|
st33d
|
Re: begin video
« Reply #2 on: Jan 31st, 2005, 2:36am » |
|
Thanks. I may be lacking the correct driver, am going to start rooting. The command beginVideo() crashes the computer regardless of a web-cam. No exceptions thrown. I imagine I should wrap it in a try{}, but unsure if that works at setup(), and since there is no exception reported that's unlikely to work. No offense personally but I hate your computer. It plays havoc with my website CSS, won't pass my javascript remote activated flash movies, saves web pages in a foriegn format that is unreadable on PCs and OS 9 doesn't like my PHP counter program. Make's demonstrating at school a pain. Damn you Apple. Update: winVDIG has solved the crashing of my computer. It seems that when Processing searches for the components it locks everything up and doesn't stop looking. Now I have a problem getting it to differentiate between the video card and the web-cam. I will raise this question in "cameras". Thanks for your time.
|
« Last Edit: Jan 31st, 2005, 4:03am by st33d » |
|
I could murder a pint.
|
|
|
fjen
|
Re: begin video
« Reply #3 on: Jan 31st, 2005, 4:15am » |
|
... but it plays video from a webcam instantly. /F
|
|
|
|
|