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:
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:
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.