WebcamGridMovie is a sample app I wrote to gather dynamically generated images into a grid in a movie. It is written with Objective-C and Cocoa.

WebcamGridMovie illustrates how to draw into a NSImage, how to add NSImages to a QTMovie, how to use NSTimer, how to use NSThread, and how to use Core Data. My usage of Core Data is pretty weak in this example. I wanted an easy way to write to a document file and Core Data is about as easy as you can get.

There is no support or warranty for this software. It is as is.

  1. Add Name/URL pairs by clicking on the 'Add' button. Removing pairs can be done by selecting the pair and clicking the 'Remove' button.
  2. Each pair will show up in a cell in the movie. The size of the cells are determined by Cell Width and Cell Height. Columns is how many columns in the grid.
  3. Time Value and Time Scale are for adding each frame to the movie
  4. Timer is in seconds. How long the software will wait before adding a frame to the movie. The threads that go and get the images do so every 10 seconds regardless of this setting.
  5. Destination is where the movie will be written to. Also, the software writes a log file. The log file is a tab delimited file that contains an average value for each cell. We wrote the software to find occurrences of bad images - they show up as white.

The zip file includes all the source as well as the working app. Enjoy!


download zip

© 2006-8 Cetuscript Systems. All rights reserved.
Edmonton, Alberta, Canada