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.
Page Index Toggle Pages: 1
video delay (Read 1696 times)
video delay
May 7th, 2005, 2:28pm
 
hi
im more or less a processing newbie and so i need a little help.
i am working on a live video project, and therefore i would need a 5 second delay.
i used the delay function but that had the wrong effect.
thanks
Re: video delay
Reply #1 - May 7th, 2005, 4:36pm
 
What effect are you looking for? delay() stops the program for the duration specified (in milliseconds). If you want a 5 second delay use delay(5000);. Are you trying to do some other processing during the delay?
Re: video delay
Reply #2 - May 7th, 2005, 5:11pm
 
i dont want the program to stop.
i want to have a time-shift efffect.
the captured video input should be displayed a few seconds later.
Re: video delay
Reply #3 - May 7th, 2005, 5:18pm
 
I was trying to set up a timelapse photography project with Processing (before I found out my webcam already does this).

http://processing.org/reference/second_.html

I used second and just put the current value into a variable marker and waited until second() = (marker+5)%60;

Do you want the feed to go into some kind of buffer and play later though? That might be tricky. It's easy with single frames (just copy() on to a PImage), a live delay would imply some kind of video buffer.
Re: video delay
Reply #4 - May 7th, 2005, 5:57pm
 
yes  - i want the feed to go into some kind of buffer and play it later.

i will try your advice using "copy() on to a PImage".
hopefully i will manage it.
thanks
Page Index Toggle Pages: 1