FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Video, Camera
(Moderator: REAS)
   CPU processes after playing QT
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: CPU processes after playing QT  (Read 640 times)
macavity13


CPU processes after playing QT
« on: Dec 16th, 2004, 4:21pm »

When I load and play a QT video, the CPU processes for javaw jump to about 45% and seem to hang around 35% - 40% after I stop running the app.  The only way I can seem to get the processes to go back down is to restart Processing.  Has anyone had this problem or know of a solution?  Not doing anything crazy, just a simple load and play:
 
BVideo bv;
 
void setup(){
  size(200, 200);
  background(0);
  bv = loadVideo("king.mov");
  play(bv);
}
 
void loop(){
  image(bv, 10, 0);
}
 
adm


Re: CPU processes after playing QT
« Reply #1 on: Dec 23rd, 2004, 10:16pm »

I was just about to start a thread about this. Yes, I seem to be having the same problem. After I simply load and play a .mov file in Processing, after its closed and I'm back in the Processing environment, everything runs slowly. In my task manager after closing the applet window, the javaw.exe process steadily takes up more and more memory even while I'm not do anything. I'm watching it right now as I write this and its up to 120,000K and still growing steadily. As it goes up further, my computer slows to a crawl.
 
Now its up to 165,000K. Time to End Process.
 
-Aaron
 
fry

WWW
Re: CPU processes after playing QT
« Reply #2 on: Dec 27th, 2004, 4:13pm »

yeah, this is a general problem with the quicktime support, but it's fixed in 0070+ which we're trying to get ready for public consumption.
 
actually, you might be able to trick it by creating an empty 'code' folder inside your sketch folder. however, that might cause other bugs to give you trouble instead
« Last Edit: Dec 27th, 2004, 4:15pm by fry »  
macavity13


Re: CPU processes after playing QT
« Reply #3 on: Dec 28th, 2004, 6:38am »

Gotcha.  Thanks for the info, I'll give it a shot.
 
D
 
pacesetter


Re: CPU processes after playing QT
« Reply #4 on: Jan 11th, 2005, 7:00pm »

I had this same problem.
what I did is this:
I make sure the video that is used stops playing before I exit the application.
so just put something like this in your code:
 
void keyPressed(){
if(key ==' '){
stop(vid);// the name of the BVideo is 'vid'
}
}
 
the you just have to hit the spacebar before exiting the application.
hope this helps.
 
macavity13


Re: CPU processes after playing QT
« Reply #5 on: Jan 14th, 2005, 10:38pm »

Thanks, that did the trick.  One thing you can do, if you want to stop the video when the app ends, without needing to press a key or something like that, use:
 
public void stop(){
  stop(vid);
}
 
Thanks for the help!
 
 
Pages: 1 

« Previous topic | Next topic »