Re: Wrap .aac into .m4a container
Re: Wrap .aac into .m4a container
- Subject: Re: Wrap .aac into .m4a container
- From: Thomas Clement <email@hidden>
- Date: Wed, 30 Jul 2008 11:57:08 +0200
Hi,
I successfully duplicated an .m4a file by using AudioFileReadPackets
and AudioFileWritePackets (to check the code).
However when I use the same code to wrap an .aac file, depending on
the source file I either get the following crash:
#0 0x969c77d8 in small_malloc_from_free_list ()
#1 0x969bf4c6 in szone_malloc ()
#2 0x969bf2f8 in malloc_zone_malloc ()
#3 0x969bf28c in malloc ()
#4 0x923cf598 in operator new ()
#5 0x917283ae in std::vector<long long, std::allocator<long long>
>::_M_insert_aux ()
#6 0x9172e030 in NUMovieBox::AppendChunkWithPacketCount ()
#7 0x91726994 in MP4AudioFile::WritePackets ()
#8 0x916d8201 in AudioFileWritePackets ()
#9 0x00001dcd in main
or the resulting .m4a produces no sound.
In all cases, the original .aac file is perfectly readable using
QuickTimePlayer (also using aqplay).
I have tried using several .aac files with no luck.
Do you have any idea?
Thanks,
Thomas
On Jul 29, 2008, at 3:34 AM, William Stewart wrote:
Using the AudioFileReadPackets call you can read the AAC packets
from an ADTS file. Using AudioFileWritePackets you can write them to
an M4A file.
So, its easy to write an audio file duplication tool by just opening
an existing file, creating a new file with the same data format,
then read/write the packets of audio data and the magic cookie, to
the new file.
Bill
On Jul 26, 2008, at 6:37 AM, Thomas Clement wrote:
Hi,
What is the easiest way to wrap a raw .aac file into a regular .m4a
container ?
Can I do that using Core Audio or is there another framework I
should use (QTKit ?) ?
Thanks,
Thomas
_______________________________________________
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