afconvert 音频格式转换使用相关

简介:     有点凌乱,先收集着 ,有时间再整理好了. //wav转caf http://www.yifeiyang.net/iphone-development-skills-of-tool-papers-4-wav-...

 

 

有点凌乱,先收集着 ,有时间再整理好了.

//wav转caf

http://www.yifeiyang.net/iphone-development-skills-of-tool-papers-4-wav-file-conversion-using-afconvert/

 //音频方面的详解介绍

http://www.cnblogs.com/bandok123/archive/2012/03/02/2377023.html

 

//外国佬也遇到这类问题 caf 转mp3

http://stackoverflow.com/questions/435349/how-to-use-afconvert-to-convert-from-caf-to-mp3-format

 //苹果官网关于音频的参考库

http://www.apple.com.cn/developer/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AudioandVideoTechnologies/AudioandVideoTechnologies.html

 

//命令位置

/Applications/Utilities/终端.app 

 

//查看某个音频的具体参数

afinfo /Users/amarishuyi/Desktop/sound1.mp3 

 

//查看具体支持的转换格式

afconvert -hf 

 

 

//CAF 转换成MP3 (可以)

afconvert -f mp4f -d aac -b 128000 /Users/amarishuyi/Desktop/sound1.caf/Users/amarishuyi/Desktop/sound1.mp3

 

 

 

//amr 转换成caf (可以)

afconvert -f caff -d LEI16 -b 128000 /Users/amarishuyi/Desktop/1.amr /Users/amarishuyi/Desktop/1.caf

 

 

 

//CAF转换成AMR  (还转不了)

afconvert -f amrf -d samr -b 128000 /Users/amarishuyi/Desktop/sound1.caf/Users/amarishuyi/Desktop/sound1.amr

afconvert -f amrf -d samr  /Users/amarishuyi/Desktop/sound1.caf  /Users/amarishuyi/Desktop/sound1.amr

 

 

 

 

 

File:           /Users/amarishuyi/Desktop/1.amr

File type ID:   amrf

Data format:     1 ch,   8000 Hz, 'samr' (0x00000000) 0 bits/channel, 0 bytes/packet, 2400 frames/packet, 0 bytes/frame

                no channel layout.

estimated duration: 8.380000 sec

audio bytes: 13408

audio packets: 28

bit rate: 12769 bits per second

packet size upper bound: 480

audio data file offset: 6

optimized

 

 

File:           /Users/amarishuyi/Desktop/sound1.caf

File type ID:   caff

Data format:     2 ch,  44100 Hz, 'ima4' (0x00000000) 0 bits/channel, 68 bytes/packet, 64 frames/packet, 0 bytes/frame

                no channel layout.

estimated duration: 2.860408 sec

audio bytes: 134096

audio packets: 1972

audio 126144 valid frames + 0 priming + 64 remainder = 126208

bit rate: 374850 bits per second

packet size upper bound: 68

audio data file offset: 4096

optimized

source bit depth: I16

sound check:

    approximate duration in seconds          2.86

    source bit depth                         I16

----

 

 

File:           /Users/amarishuyi/Desktop/sound1.mp3

File type ID:   MPG3

Data format:     2 ch,  48000 Hz, '.mp3' (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame

                no channel layout.

estimated duration: 1.030786 sec

audio bytes: 14431

audio packets: 1

bit rate: 112000 bits per second

packet size upper bound: 968

maximum packet size: 336

audio data file offset: 27631

optimized

----

 

 

File:           /Users/amarishuyi/Desktop/1.caf

File type ID:   caff

Data format:     1 ch,   8000 Hz, 'lpcm' (0x0000000C) 16-bit little-endian signed integer

                no channel layout.

estimated duration: 8.380000 sec

audio bytes: 134080

audio packets: 67040

audio 67040 valid frames + 0 priming + 0 remainder = 67040

bit rate: 128000 bits per second

packet size upper bound: 2

audio data file offset: 4096

optimized

source bit depth: I16

sound check:

    approximate duration in seconds          8.38

----

目录
相关文章
|
5月前
|
存储 编解码 数据处理
【FFmpeg 视频基本格式】深入理解FFmpeg:从YUV到PCM,解码到编码(三)
【FFmpeg 视频基本格式】深入理解FFmpeg:从YUV到PCM,解码到编码
162 0
|
5月前
|
存储 编解码 数据处理
【FFmpeg 视频基本格式】深入理解FFmpeg:从YUV到PCM,解码到编码(二)
【FFmpeg 视频基本格式】深入理解FFmpeg:从YUV到PCM,解码到编码
181 0
如何使用 MusicFab 将 SoundCloud音频转换为 WAV格式?
这篇文章为你展示了如何利用三方工具将SoundCloud音频转化为WAV格式以便进行兼容收听。
|
5月前
|
存储 缓存 编解码
【FFmpeg 视频基本格式】深入理解FFmpeg:从YUV到PCM,解码到编码(一)
【FFmpeg 视频基本格式】深入理解FFmpeg:从YUV到PCM,解码到编码
172 0
|
内存技术
音频格式G711转PCM的代码
音频格式G711转PCM的代码
266 0
关于如何转换视频格式的解决方案
关于如何转换视频格式的解决方案
113 0
|
编解码
ffmpeg编码格式转换
ffmpeg编码格式转换
420 0
|
安全 Java 语音技术
将mp3格式的音频转换为采样率8k的wav
将mp3格式的音频转换为采样率8k的wav
490 0
|
算法 图形学 数据安全/隐私保护
Unity 之 音频类型和编码格式介绍
Inspector窗口显示多个导入设置。这些设置决定了:加载行为,压缩行为,质量,采样率,以及是否支持双声道音频。
444 0
Unity 之 音频类型和编码格式介绍
|
数据采集 存储 传感器
【Android RTMP】音频数据采集编码 ( AAC 音频格式解析 | FLV 音频数据标签解析 | AAC 音频数据标签头 | 音频解码配置信息 )(一)
【Android RTMP】音频数据采集编码 ( AAC 音频格式解析 | FLV 音频数据标签解析 | AAC 音频数据标签头 | 音频解码配置信息 )(一)
263 0
【Android RTMP】音频数据采集编码 ( AAC 音频格式解析 | FLV 音频数据标签解析 | AAC 音频数据标签头 | 音频解码配置信息 )(一)