Converting audio to CAF format for playback on iPhone using OpenAL

浪子不回头ぞ 提交于 2019-11-28 02:32:44
Dave Verwer
afconvert -f caff -d LEI16@44100 -c 1 in.wav out.caf

References:

Simple bash script to convert the mp3 files in a folder to caf for iphone

#!/bin/bash
for f in *.mp3; do
  echo "Processing $f file..."
  afconvert -f caff -d LEI16@44100 -c 1 "$f" "${f/mp3/caf}"
done

this is the best for size:

afconvert -f caff -d ima4 original.wav

thanks for the info.

also, if you're looking into additional compression with openAL, this might be of interest:

"iPhone, OpenAL, and IMA4/ADPCM" http://www.wooji-juice.com/blog/iphone-openal-ima4-adpcm.html

It looks like the -c is not working today, I got it with following:

afconvert -f caff -d LEI16 input.m4a output.caf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!