WhackedTV is a replacement for the venerable Carbon HackTV. It shows how to use the Sequence Grabber API's to capture movies from external video and audio sources, just as HackTV, but adds many important new features, including simultaneous capture from multiple SGChannel's, use of the new SGAudioChannel (including a sample Cocoa audio preferences user interface), video preview using ICMDecompressionSessions and OpenGL.
Document Revision History
Date
Notes
2008-05-09
Fixed two bugs:
(1) "Select Output Format" in the audio dialog failed with error -206 if the source audio were set to 20 or 24 bits on an Intel Mac. The source format is 24-bits aligned low in 32-bits. WhackedTV was setting this as the default output format. But QuickTime movies can only contain packed samples. Added a utility function to conform the output format for movie-safety.
(2) Began preferring the kQTSGAudioPropertyID_CodecSpecificSettingsArray property to the kQTSGAudioPropertyID_MagicCookie property. See QuickTimeComponents.h for an explanation of the differences between these properties, and why CodecSpecificSettingsArray should always be preferred over MagicCookie.
2008-01-18
Fixed a bug in SGAudioSettings.mm where multiple audio devices with the same name would only be listed once.
2007-08-14
Updated code for WhackedTV to
1) demonstrate the .noindex technique for holding off Spotlight from prematurely indexing files being written by Sequence Grabber. This avoids frame droppage.
2) demonstrate the newish GainScalarToDecibels property of SGAudioChannel.
3) clean up some of the threaded code (alert dialogs were being invoked from secondary threads).