Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X

View Source Code:

Download Sample (“CocoaVideoFrameToGWorld.zip”, 108.5K)
Download Sample (“CocoaVideoFrameToGWorld.dmg”, 159.4K)



Description

This sample demonstrates how to step frame-by-frame through a QuickTime movie using the GetNextInterestingTime function, drawing each frame of the movie into a GWorld using a decompression sequence. Finally, the contents of the GWorld are drawn into a Cocoa NSQuickDrawView. Simply launch the application, and at the prompt, select a movie file to display. Press the "NextFrame" button to advance frame-by-frame through the movie (note: for MPEG-4 movies the above technique will work, but not MPEG-1 or 2 because with these movie files all frames are treated as a single large sample in the movie). Requirements: Mac OS X Keywords: NSQuickDrawView video frame step GetNextInterestingTime

Document Revision History

Date Notes
2003-01-14Demonstrates how to draw each frame of a QuickTime movie into a Cocoa NSQuickDrawView.

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.