Questions tagged [afconvert]

10 questions
73
votes
5 answers

Converting audio to CAF format for playback on iPhone using OpenAL

I am using the SoundEngine sample code from Apple in the CrashLanding sample to play back multiple audio files. Using the sample caf files included with CrashLanding everything works fine but when I try and use my own samplesconverted to CAF using…
Dave Verwer
  • 6,140
  • 5
  • 34
  • 30
14
votes
7 answers

How do I use afconvert to convert all the files in a directory from wav to caf?

I have a directory with about 50 wav files that I need to convert to caf, because AudioServicesCreateSystemSoundID() returns an error for some of them (but not all). Here's an example of the command I've used successfully for a single…
Elliot
  • 6,086
  • 11
  • 45
  • 57
2
votes
1 answer

How to batch convert .ogg files to .wav using a command line utility?

I have a bunch of files: dir/file1.ogg dir/file2.ogg ... How could I convert them to .wav files dir/wav/file1.wav dir/wav/file2.wav ... by using a console command? Now I'm using OSX, but I need the answer for Windows as well.
yevt
  • 732
  • 1
  • 6
  • 21
1
vote
2 answers

How to convert iphone's caf to ogg on ubuntu

i really need your support to solve that problem: We developed an iOS application that sends a sound file to our server and then, we share this audio. The problem is we didnt find any solution to convert the audio inside the iOS. We tought: Ok,…
1
vote
1 answer

afconvert in iPhone reference library

Can you give me some information about using afconvert in iPhone to convert file formats? Or let me know some links that give me basic information on afconvert. I want to know the commands used - what do -f, -d , -c etc. stands for in: afconvert…
suse
  • 10,503
  • 23
  • 79
  • 113
1
vote
1 answer

afconvert: how to preserve the tag infos and album cover when converting .mp3 files to .m4a?

I'm using this command: afconvert -f 'm4af.m4a' -d aac@44100 -b 48000 -c 1 filename.mp3 to convert my .mp3 files to .m4a files, sadly, the tag infos(artist, song name, album name, etc) and album cover are lost after the conversion, can I preserve…
CarmeloS
  • 7,868
  • 8
  • 56
  • 103
1
vote
2 answers

Using afconvert from iOS

Does anyone know if it is possible to convert a sound file in the Documents directory from within an app? I have a recorded sound file that will be available in iTunes File Sharing that I need to convert. Is afconvert available from within…
chmod
  • 1,173
  • 1
  • 9
  • 17
0
votes
1 answer

Using afconvert command line tool to convert .mp3 files to m4r

I have a short bash script that is meant to convert a folder full of .mp3 files to .m4r ringtones. I am having trouble figuring out why it is throwing the following error: "Error: ExtAudioFileCreateWithURL failed ('fmt?')" #!/bin/bash cd…
notarobot
  • 23
  • 4
0
votes
1 answer

CAFF creation on Windows (or Linux)

On OS X I use this command to convert a sound file to CAFF for iPhone. afconvert -f caff -d LEI16@44100 file.wav file.caf I need to do the same on a Windows box. Any clues? I'd even settle for a Linux version.
Alexander Gladysh
  • 39,865
  • 32
  • 103
  • 160
0
votes
1 answer

Error converting wav to caf for the iPhone using afconvert

Here's the command I'm typing in a Terminal window: afconvert -f caff -d LEI16@44100 -c 1 buzzer.wav buzzer.caf Error: ExtAudioFileOpenURL failed ('dta?') Notice that buzzer.wav is my sound file. What's wrong? How should I do the conversion?
Elliot
  • 6,086
  • 11
  • 45
  • 57