Version: 1.0.1

Posted: 2005-08-12

Build Requirements: Xcode 2.1, Xcode 1.5+

Runtime Requirements: Mac OS 10.4, Mac OS X 10.3.x with QuickTime 7, iSight, DV Camera or QuickTime compatible capture device

View Source Code:

Download Sample (“BrideOfMungGrab.zip”, 77.9K)
Download Sample (“BrideOfMungGrab.dmg”, 142.8K)



Description

This sample runs the Sequence Grabber in record mode using a Sequence Grabber DataProc to get at the captured data. It also uses an Overlay Window and CoreGraphics to draw on top of the capture video.

This example is based on the SGDataProcSample (a companion sample to this one which contains Minimung, MungGrab and SonOfMungGrab).

While the code in the SGDataProcSample used an offscreen GWorld and some QuickDraw calls to draw text on top of video, this sample removes the need for the extra GWorld by using Overlay windows and Core Graphics to draw some text and graphics on top of the video image being captured.

The graphs in the upper left of the window display the following stats (shorter is better): Number of frames in the queue. Number of skipped frames. Difference between the TimeBase time and the dataProc frame time. Difference between the last frame time and the current frame time.

The status string prints out the time, a min:seconds:frames representation of time, frames per second and average frames per second. The dataProc in this case will also drop frames under certain situations.

Xcode 2.1 project builds universal binary.

Document Revision History

Date Notes
2005-08-12This sample code has been updated to include a project that produces a universal binary. No code changes were required.
2005-04-01Handling sgchanSound failure case fix r. 4074248
2005-02-18Demonstrates the use of overlay windows and CG to draw text on captured video.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.