Hello:
I've been struggling with a problem for awhile. I've asked this question over on the QuickTime list, but haven't found the answer I've been looking for. Perhaps I'm looking in the wrong areas, or perhaps I need to rewrite some of my code and start making use of Core Audio (which I figure I'll need to start working towards, anyway).
Here's my problem:
I'm trying to export a QTMovie while preserving settings such as pitch, rate/speed, and volume. So far my experiments have come down to being able to export the file, but the settings are not preserved, which is like modifying an image in Photoshop, saving the file, but the new file doesn't retain any of the changes made.
I have been researching QTMovieExportSettings thoroughly, and this seems to be on the right track, but it seems that all of my research keeps returning to many of the same sources, but nothing seems to be giving me the proper solution. This leads me to believe that I am either still missing something, or I am going in the wrong direction all together. Perhaps QTKit doesn't provide what I need fully? Do I need to start looking into using Core Audio? The playback of the file sounds correct, I just want to be able to save out what I hear to a new audio or movie file.
I am trying to save out the file (with its current settings) using QTMovie's writeToFile: withAttributes: method.
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], QTMovieExport, [NSNumber numberWithLong:kQTFileTypeAIFF], QTMovieExportType, [NSNumber numberWithLong:SoundMediaType], QTMovieExportManufacturer, exportSettings, QTMovieExportSettings, nil]; [myFile writeToFile:[savePanel filename] withAttributes: attributes]; Any guidance on where I need to look so I can properly export my QTMovie (which may be an audio file, QuickTime movie, etc.) and save it out in another format with the effects applied to it? I've been giving myself a headache trying to sort everything out, and QuickTime can quickly become a monster to wrestle against.
Regards,
Chad |