Version: 1.0.1

Posted: 2006-03-31

Build Requirements: Xcode 2.2 or greater using the Mac OSX 10.4 Universal SDK

Runtime Requirements: Mac OS X 10.4.x w/QuickTime 7

View Source Code:

Download Sample (“ExtractMovieAudioToAIFF.zip”, 104.6K)
Download Sample (“ExtractMovieAudioToAIFF.dmg”, 163.9K)



Description

ExtractMovieAudioToAIFF contains simple class called AIFFWriter that encapsulates the functionality of two sets of APIs; QuickTime's Audio Extraction API's and Core Audio's Audio File APIs.

This class will either perform the extraction and file writing on a separate thread if it can, or do so on the main thread in slices thereby not blocking the UI. It also implements a progress callback similar to a movie export progress proc. so clients of the class can drive some UI element like a progress bar.

The sample application uses an instance of the AIFFWriter class to easily perform audio extraction from a QTKit QTMovie to an AIFF file.

The AIFFWriter class uses the default extraction channel layout which is the aggregate channel layout of the movie (for example, all Rights mixed together, all Left Surrounds mixed together, etc).

The output stream description for the file is 16-bit, interleaved big endian with the sample rate set to the highest sample rate found in the movie.

This project builds a Universal Binary target.

Document Revision History

Date Notes
2006-03-31Now ensures a Movie is fully loaded before extraction can begin. See Q&A1469.
2006-01-25Demonstrates how to extract audio from QuickTime Movies and write the data to an AIFF file.

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.