gpt4 book ai didi

iphone - 如何使用 afconvert 将 .caf 格式转换为 .mp3 格式?

转载 作者:行者123 更新时间:2023-12-03 18:18:49 26 4
gpt4 key购买 nike

我正在使用 afconvert 命令行实用程序从 .caf 转换音频文件至.mp3格式。我用过afconvert :

afconvert -f 'MPG3 ' -d '.mp3' -v input.caf output.mp3 

但这给了我以下错误:

Input file: input.caf, 19008 frames
Error: ExtAudioFileSetProperty ('cfmt') failed ('fmt?')

我还尝试了以下方法:

afconvert -f 'MPG3 ' -d LEI32@44100 -v input.caf  output.mp3

这也给了我错误:

Input file: min.caf, 19008 frames
Error: ExtAudioFileCreateWithURL failed ('fmt?')

我不明白为什么会出现这个错误。

有人可以指导我解决这个问题吗?

提前致谢。

最佳答案

你应该检查一下,

afconvert -f mp4f -d aac -b 128000   input.caf output2.mp4

这样您就可以将 CAF 文件转换为 MPEG-4 格式。

阅读:除了 iTunes 中内置的 MP3 编码器外,Apple 并未在 Mac OS X 中提供任何形式的 MP3 编码器。来源:http://lists.apple.com/archives/coreaudio-api/2005/Jul/msg00182.html

如果您需要编码 mp3,您应该使用第 3 方编码器Mp3 编码器示例:lame 编码器或 ffmpeg :) 祝你好运。

关于iphone - 如何使用 afconvert 将 .caf 格式转换为 .mp3 格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/435349/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com