04-02-2009 01:55 PM
Anything not dealing with initializing or closing was what I was referring to by the "meat" of the code.
For example, you'll always want your grab in a loop, but you only need to initialize the camera once.
04-13-2009 03:19 PM
04-14-2009 01:46 PM
04-14-2009 01:48 PM
Hey PSU,
Could you post your new code or at least screenshots? I might be able to find out why its not looping correctly if I can see what you have done so far.
04-14-2009 03:02 PM
04-14-2009 04:15 PM - edited 04-14-2009 04:15 PM
Ahh, makes more sense now.
I assume what was happening is this:
(correct me if I'm wrong)
You were just creating an ever-increasing AVI in 11 second intervals. So, the AVI would go 0 seconds, 11, 22, 33, etc. But you are wanting only 11 second CHUNKS, not a file larger than 11 seconds.
If I have assumed correctly, you can avoid this by moving your Create and Close for the AVI inside ONE more loop. Your camera initialization is perfect, but if you have your AVI vis on the far outside, it will just keep writing to the end of it.
Moving the AVI Create inside your outer loop will cause it to re-write the AVI every 11 seconds, which is what you want to do.