Re: AAC/MP3 to raw audio
Re: AAC/MP3 to raw audio
- Subject: Re: AAC/MP3 to raw audio
- From: Ivan C Myrvold <email@hidden>
- Date: Wed, 10 May 2006 22:49:02 +0200
Den 10. mai. 2006 kl. 20:49 skrev Doug Wyatt:
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
Yes, I meant afconvert. This is working. Thanks!
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.
Yes, that worked. Alas, I had hoped that it would write to stdout, if
the output filename was omitted. There are no option for writing out
to standard output then?
Ivan
_______________________________________________
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