Re: AAC/MP3 to raw audio
Re: AAC/MP3 to raw audio
- Subject: Re: AAC/MP3 to raw audio
- From: Doug Wyatt <email@hidden>
- Date: Wed, 10 May 2006 11:49:06 -0700
On May 8, 2006, at 9:25 AM, Ivan C Myrvold wrote:
I have been looking at afconvert. I think this will be very close
to what I need. I want to convert from e.g. aac or mp3 format, to
raw audio, 8kHz sample rate, mono (single channel).
But I am overwhelmed by the list of options this tool can handle.
Can anyone give me the correct syntax with afplay for this?
Do you mean afconvert?
afconvert -f AIFF -d BEI16@8000 -c 1 infile outfile
I see that the output file is optional in afplay. If I omit the
output file parameter, will afplay then write to standard output? I
tried that, but I get 'Error: create audio file (5000)'. So why is
the output_file optional (i.e. in brackets):
Usage:
afconvert [option...] input_file [output_file]
If you don't specify one, afconvert will generate an output filename
from the input filename, in the same directory.
Apparently you don't have write permission to that directory.
afpAccessDenied = -5000, /* Insufficient access
privileges for operation */
Doug
_______________________________________________
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