We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Processing in Eclipse / Video doesnt work
Page Index Toggle Pages: 1
Processing in Eclipse / Video doesnt work (Read 955 times)
Processing in Eclipse / Video doesnt work
Aug 5th, 2008, 12:08pm
 
Hi Guys,

i have read a similar post, but it still doesn't work.
The Video image only shows up 1 out of 20 times.

I have this code:

Capture video;

   public void setup() {
....
}

public void captureEvent(Capture video)
   {
   video.read();
   newFrame = true;
   }

public void draw() {
...
if (video.available()) {
       video.read();
}
...
}

mostly the screen stays gray.

Thanks!


Re: Processing in Eclipse / Video doesnt work
Reply #1 - Aug 6th, 2008, 1:16pm
 
Hi Greg

I don't have an answer for you sorry, however it sounds a little like the problem I'm having.
(http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Integrate;action=display;num=1217580260)

Are you running this as an applet or an application?
Try running it as an applet if you aren't.

Cheers
FrankyG
Re: Processing in Eclipse / Video doesnt work
Reply #2 - Aug 10th, 2008, 10:54pm
 
hi,

thanks for the link.

I was running it as a applet, but still it does only work 1 out of 10 times.
Is this a Eclipse-made Problem?
Maybe it works with other IDEs like Netbeans? Somebody knows?

best!
Re: Processing in Eclipse / Video doesnt work
Reply #3 - Dec 5th, 2008, 4:38am
 
It doesn't seem that you're actually drawing anything. You need to use image(video); in the draw() method, to draw it to the screen. Also, if this is a video, like a .mov file, you should be using void movieEvent() instead of captureEvent().

If you need more help, take a look at the documentation here: http://processing.org/reference/libraries/video/Movie.html

Hope this helps you!
Page Index Toggle Pages: 1