Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: converting to > 48 kHz



Hey all,

So I got this working. The trick is to recognize that QT does high sample rates only with versions 7 and later. If you don't already know that I don't know how you could ever do this. Anyway, once you know that, you can look in the QT docs for what changes in QT 7, and find the magic invocation, which looks sort of like this:

  Boolean useHighResolutionAudio = true;

// Hey exporter, I understand high-resolution audio!!
(void) QTSetComponentProperty(// disregard error
exporter,
kQTPropertyClass_MovieExporter,
kQTMovieExporterPropertyID_EnableHighResolutionAudioFeatures,
sizeof(Boolean),
&useHighResolutionAudio);


Why that's not the default is explained in the docs and you should probably read it. Anyway, of course this is not accessible from QTJ, because it's a QT 7 call and apple hasn't updated QTJ since before QT 7, which is a real shame, so I needed to write some JNI to make it work, but it does seem to work. Hopefully more testing won't reveal that my tiny bit of JNI to make that call didn't break something else :).

As long as I've done that, I might change my code to use JNI to simply set the conversion parameters programmatically rather than setting up tons of atom files (mono/stereo -- eventually surround, 8/16/24/32/64 bit, 44.1/48/88.2/96/176.4/196 kHz) because I understand there is an API for that (QTJ book mentioned that QT has this but that it's not exposed in QTJ)....

It would be great if someone wrote an up-to-date book on QuickTime, so you can find this kind of info where you expect it, rather than having to comb through updates.

	bjorn


On Jun 26, 2008, at 5:49 PM, Bjorn Roche wrote:

Hey all,

I've seen other posts about this, but I'm not having any luck with a solution so maybe there's some new info. I'm trying to use use a movie exporter to convert audio files to something greater than 48 kHz sample rate using QuickTime (Specifically, 88.2, 96, 176.4, and 192 kHz). For example, if a file comes in in format X @ 96kHz, and I want to convert it to an AIFF @ 96 kHz, QuickTime should be a reasonable way to do this. So created a loop to enter in my settings and save them as atoms, but the dialog wouldn't let me click OK if I entered a value that was too high (actually, it would if I clicked around a bit, but I think that was a bug, not a feature). That's when I poked around the web and discovered that there are some limitations in QuickTime, such as what's discussed here in Feb '01, but that was 7 years ago and I would think there's a way around this by now:

http://lists.apple.com/archives/QuickTime-API/2001/Feb/msg00164.html

So is there another exporter? Another thing I can do? Something I'm missing? I tried wav, as well and that had the same problem. Any suggestions are appreciated. I realize this is a general QuickTime question so I asked on that list, too.

	thanks,

	bjorn
-----------------------------
Bjorn Roche
XO Wave
Digital Audio Production and Post-Production Software
http://www.xowave.com
http://blog.bjornroche.com
http://myspace.com/xowave


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

----------------------------- Bjorn Roche XO Wave Digital Audio Production and Post-Production Software http://www.xowave.com http://blog.bjornroche.com http://myspace.com/xowave


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden
References: 
 >converting to > 48 kHz (From: Bjorn Roche <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.