Writing m4a problems
Writing m4a problems
- Subject: Writing m4a problems
- From: Martin Hairer <email@hidden>
- Date: Tue, 10 May 2005 22:37:44 +0100
If you run the afconvert tool in the SDK, does this write a valid m4a
file:
% afconvert /System/Library/Sounds/Submarine.aiff /tmp/tmp.m4a -f m4af
-d alac -v
% afinfo /tmp/tmp.m4a
When I run this (with a different destination name) I get the following
output:
5> afconvert /System/Library/Sounds/Submarine.aiff
/Users/hairer/test.m4a -f m4af -d alac -v
Input file: Submarine.aiff, 42998 packets
Formats:
Input file 2 ch, 44100 Hz, 'lpcm' (0x0000000E) 16-bit big-endian
signed integer
Output file 2 ch, 44100 Hz, 'alac' (0x00000001) 0 bits/channel, 0
bytes/packet, 4096 frames/packet, 0 bytes/frame
Stereo
Output client 2 ch, 44100 Hz, 'lpcm' (0x0000000E) 16-bit big-endian
signed integer
AudioConverter 0x182c62c [0x3221c0]:
CodecConverter 0x323ff0
Input: 2 ch, 44100 Hz, 'lpcm' (0x0000000E) 16-bit big-endian
signed integer
Output: 2 ch, 44100 Hz, 'alac' (0x00000001) from 16-bit source,
4096 frames/packet
Error: create audio file ('typ?')
Exactly the same error appears when I try to create an m4a or mp4 file
from
within my application. Creating a caff file (also containing AAC data)
works fine.
This is on a PB G4/667 running MacOS 10.3.9 with QT7 installed.
What's happening here? I thought that m4a / mp4 was supported in QT7
even
under Panther? When I just type "afconvert" I get the following output
which
seems to indicate that m4a / mp4 support is simply missing despite what
Bill
stated in a recent post:
{ -f | --file } file_format:
'AIFC' = AIFC
data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
BEF64 'ulaw' 'alaw' 'MAC3' 'MAC6'
'ima4'
'QDMC' 'QDM2' 'Qclp' 'agsm'
'AIFF' = AIFF
data_formats: BEI8 BEI16 BEI24 BEI32
'MPG3' = MPEG Layer 3
data_formats: '.mp3'
'NeXT' = NeXT/Sun
data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
BEF64 'ulaw'
'Sd2f' = Sound Designer II
data_formats: BEI8 BEI16 BEI24 BEI32
'WAVE' = WAVE
data_formats: LEUI8 LEI16 LEI24 LEI32 LEF32
LEF64 'ulaw' 'alaw'
'ac-3' = AC3
data_formats: 'ac-3'
'adts' = AAC ADTS
data_formats: 'aac '
'caff' = Apple CAF File
data_formats: '.mp3' 'MAC3' 'MAC6' 'OggV' 'QDM2'
'QDMC' 'Qclp' 'Qclq' 'aac ' 'agsm'
'alac'
'alaw' 'drms' 'dvca' 'dvi ' 'ima4'
'lpc '
BEI8 BEI16 BEI24 BEI32 BEF32 BEF64
LEI16 LEI24 LEI32 LEF32 LEF64
'ms\x00\x02'
'ms\x00\x11' 'ms\x001' 'ms\x00U'
'samr' 'ulaw' 'vdva'
{ -d | --data } data_format[@sample_rate_hz]:
[-][BE|LE]{F|[U]I}{8|16|24|32|64} (PCM)
e.g. -BEI16 -F32@44100
or a data format appropriate to file format, as above
{ -c | --channels } number_of_channels
add/remove channels without regard to order
{ -l | --channellayout } layout_tag
layout_tag: name of a constant from CoreAudioTypes.h
(prefix "kAudioChannelLayoutTag_" may be omitted)
if specified once, applies to output file; if twice, the first
applies to the input file, the second to the output file
{ -b | --bitrate } bit_rate_bps
e.g. 128000
{ -q | --quality } quality
quality: 0-127
{ -v | --verbose }
print progress verbosely
{ -p | --profile }
collect and print performance profile
Regards,
Martin
HairerSoft
http://www.hairersoft.com/
_______________________________________________
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