Re: Writing AAC, MP3, or other compressed audio files
Re: Writing AAC, MP3, or other compressed audio files
- Subject: Re: Writing AAC, MP3, or other compressed audio files
- From: john <email@hidden>
- Date: Wed, 10 Mar 2004 23:41:32 -0500
Hi Tim,
The qtmoviefromprocs sample code shows you how to write to a specific
file type directly using procs - however, I (and someone else trying)
am not able to make it work properly for MP4 files (only for AIFF and
WAVE). It creates the file but QT complains about it when trying to
open it. I can send you my example project I've been working on if
you'd like to take a stab at it.
If you hadn't figured out yet, you can export your AAC mov file into an
MP4 file using ConvertMovieToFile().
You can store the atom data from the "ugly" QT panels by getting the
settings from it as an atom container and writing the atom to file. You
can use this to read in preset settings so you don't have to display
the panel.
This is more of a QT issue than CoreAudio :)
-- John
Thanks, this looks like a pretty useful example (in that it actually
allows writing MP4 audio files, unlike any of the CoreAudio examples
I've found so far).
Still, I find it surprising that you can't write a 'naked' .mp4 file
with Apple's APIs (i.e., not wrapped in a QT .mov).
iTunes obviously does it, and it does it w/o running the ugly QT
panels. How are non-Apple apps supposed to do this? Any hints
gratefully accepted!
-tim
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.