PCM转AAC
报错如下:
Output #0, adts, to '/var/mobile/Containers/Data/Application/6BD36B53-E9BF-49BF-9BA3-8CEBD98D2233/Documents/TestAAC1.aac':
Stream #0:0: Audio: aac, 44100 Hz, stereo, s16, 64 kb/s
[aac @ 0x14c8a0400] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.查找问题说 pCodecCtx->strict_std_compliance =FF_COMPLIANCE_EXPERIMENTAL; 然后解决。出现下面的错误:
Output #0, adts, to '/var/mobile/Containers/Data/Application/4DF33CCF-C12B-4CB5-8D50-019204860CC7/Documents/TestAAC1.aac':
Stream #0:0: Audio: aac, 44100 Hz, stereo, s16, 64 kb/s
[aac @ 0x14e873200] Specified sample format s16 is invalid or not supported
Failed to open encoder!Specified sample format s16 is invalid or not supported? 求解
解决方案 »
- 使用ShareSDK将信息分享到qq空间出现错误
- 问一个移植版权的问题?
- iOS三种Json方法解析国家气象局API
- iphone sdk 发布第三版本了
- 客户端从服务器分页获取列表,如何保证流量最少,且客户端和Server数据的一致性?
- 新人求救:coredata修改实体对象再重新生成类文件,编译显示找不到
- 自定义的uiview不能跟随模拟器旋转?
- 新项目ios开发,现是是选object-c好还是swift好?
- 怎么在xcode7里面添加 xcode5的 iOS空白模板
- IOS 获取第三方键盘的高度
- iPhone6s app 求助 一个页面中<input>标签中输入内容,按home键切回后台,再切回来输入的内容没了怎么办???
- FFmpeg PCM转AACDdemo
所有的格式: https://www.ffmpeg.org/doxygen/2.0/samplefmt_8h.htmlenum AVSampleFormat {
AV_SAMPLE_FMT_NONE = -1, AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32,
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_U8P, AV_SAMPLE_FMT_S16P,
AV_SAMPLE_FMT_S32P, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_DBLP, AV_SAMPLE_FMT_NB
}或者试下:AV_SAMPLE_FMT_S16P ?
Output #0, adts, to '/var/mobile/Containers/Data/Application/B956CB26-C09A-406B-A7B8-0C389BDD8F1B/Documents/TestAAC1.aac':
Stream #0:0: Audio: aac, 8000 Hz, 1 channels (FL+FR), s16p, 0 kb/s
[aac @ 0x13480ca00] Specified sample format s16p is invalid or not supported
Failed to open encoder!
你用过Ffmpeg 将PCM转AAC吗?
你用过Ffmpeg 将PCM转AAC吗?