Re: Conversion to 3gp
Re: Conversion to 3gp
- Subject: Re: Conversion to 3gp
- From: William Stewart <email@hidden>
- Date: Thu, 19 Jul 2007 13:00:26 -0700
I can help you on Leopard but not on previous systems, through the
use of the CoreAudio APIs.
On Leopard we will have the ability to write 3gp files with AMR data.
You can use the ExtendedAudioFile API quite simply:
(1) Create an ExtAudioFile object of type 3gp and data format is AMR
(2) Set the client format to a PCM format that is most convenient to you
(3) Push data in using the ExtAudioFileWrite call, where you provide
it the data in the format you set, and it will handle the conversion
and write to the underlying file object for you.
You could use the ConvertFile example (/Developer/Examples/CoreAudio)
in the SimpleSDK folder as a starting point. You could for instance,
write CAF files with AMR data in it. Then, when you have Leopard you
will be able to write the 3GPP file. On Leopard as well, you can also
read and write AMR files if that's of interest.
Thanks
Bill
On 19/07/2007, at 1:14 PM, Norman Franke wrote:
I'm attempting to convert a custom ADPCM format to 3GP / AMR for
streaming to an iPhone. I need to do this without a GUI, basically,
pass it a buffer of samples and get a .3gp file as output. I'd
prefer to do this without an intermediate file.
I've looked at the same code on apple.com (under QuickTime), most
of which is quite out of date. None seem to do this without a GUI
and/or file IO.
I had some old code that uses SoundConverter to convert to
PureVoice, but I had to hard code the compression params (magic
cookie).
How do I specify both the media type AMR and file type (3gp), get
the magic cookie/compression params and the like?
Is the the wrong way to go?
-Norman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden