(At 30 frames per second, 5 seconds is 150 frames, so five such excerpts will total 750 frames.) The counter at the top responds to the qmetro and counts repeatedly through the 150 numbers 0-149. The jit.matrixset in this patch has been initialized to set aside memory for 750 frames of 640x480 video. The jit.matrixset object allocates memory in which to store and recall matrices, in this case frames of video. The task we have set is: Every five seconds, arbitrarily decide whether to record the next 5-second excerpt of live video, and at the same time also arbitrarily decide which of the five most recently captured excerpts to play back. It uses jit.matrixset as a circular buffer to hold selected frames of live video from jit.grab, and it uses the decide and random objects to make arbitrary decisions regarding when to record and which excerpt to play back. This patch shows a way to capture and play back excerpts of live video.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |