ffmpeg 编码h264 profile如何设置为baseline的问题
2015-07-07 18:23
417 查看
使用最新版ffmpeg-0.11 libx264-125,使用默认编码时,用Eyecard发现profile-idc一直是PROFILE_H264_HIGH (profile-idc=100),但是项目要求是baseline,设置了AVCodecContext的->profile=FF_PROFILE_H264_BASELINE也没用,经过多方查找,需要如下解决方法:
[cpp] view
plaincopy
AVDictionary *opts = NULL;
[cpp] view
plaincopy
av_dict_set(&opts, "profile", "baseline", 0);
/* open the codec */
if (avcodec_open2(m_pEncoderCtx, encoder, &opts) < 0)
真是曲折啊。
QQ讨论群:219128816
[cpp] view
plaincopy
AVDictionary *opts = NULL;
[cpp] view
plaincopy
av_dict_set(&opts, "profile", "baseline", 0);
/* open the codec */
if (avcodec_open2(m_pEncoderCtx, encoder, &opts) < 0)
真是曲折啊。
QQ讨论群:219128816
相关文章推荐
- H264 各种profile
- 【翻译】使用Sencha Ext JS 6打造通用应用程序
- 【翻译】使用Sencha Ext JS 6打造通用应用程序
- 万网虚拟空间二级域名绑定子目录
- A. Ilya and Diplomas
- C# DataTable 按数字排序问题
- jQuery的选择器中的通配符[id^='code']
- 正则收集
- [ORACLE] case when then else end 应用
- css三角形的实现
- python yield
- 频繁跳槽为哪般?
- thwen 缓动框架
- web移动开发最佳实践之html篇
- 关于友好性测试中鼠标样式的修改
- Android FragmentManage FragmentTransaction介绍
- 常见分布式计算框架特点
- Python
- FMDB官方使用文档-GCD的使用-提高性能(翻译)
- Java 面向对象