Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
How to save sound that FCP likes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to save sound that FCP likes?



I managed to extract the audio last night from a DV frame. I do some processing on it and then I save it out. By processing I mean a pass with some filters. Nothing that changes the length of the data, its bit rate or anything. The audio I extracted is 16-bit big endian, 2 channel at 32Khz.

However FCP complains about the audio in my files and says: "The following media files are not optimized for Final Cut Pro HD...". The Audio works fine, but I would like to get rid of the warning.

The SoundDescription that I create looks like this:

SoundDescriptionHandle hSoundDesc = (SoundDescriptionHandle)NewHandle (sizeof(SoundDescription));
(*hSoundDesc)->descSize = sizeof(SoundDescription);
(*hSoundDesc)->dataFormat = k16BitBigEndianFormat;
(*hSoundDesc)->resvd1 = (*hSoundDesc)->resvd2 = 0;
(*hSoundDesc)->dataRefIndex = 1;
(*hSoundDesc)->version = 1;
(*hSoundDesc)->revlevel = 0;
(*hSoundDesc)->vendor = 0;
(*hSoundDesc)->packetSize = 0;
(*hSoundDesc)->numChannels = 2;
(*hSoundDesc)->sampleSize = 16;
(*hSoundDesc)->sampleRate = rate32khz;
(*hSoundDesc)->compressionID = 0;


And media gets added like this:

err = AddMediaSample2(audioMedia, // the Media
(UInt8*)veryLargeOutputBuffer, // const UInt8 * dataIn
outputBytes, // ByteCount size
1, // TimeValue64 decodeDurationPerSample
0, // TimeValue64 displayOffset
(SampleDescriptionHandle)hSoundDesc, // SampleDescriptionHandle sampleDescriptionH
outputFrames, // ItemCount numberOfSamples
0, // MediaSampleFlags sampleFlags
NULL); // TimeValue64 * sampleDecodeTimeOut


Any ideas what I need to do so that FCP will not give warnings? Like I said, everything else works. Its just the warning I am think it is the way I am describing the sound in the QT file.

Thanks in advance

Mark



_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.