此时调用avcodec_open2() 返回 -1
console打印错误:
[libx264 @ 02ed6880] broken ffmpeg default settings detected
[libx264 @ 02ed6880] use an encoding preset (e.g. -vpre medium)
[libx264 @ 02ed6880] preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 02ed6880] speed presets are listed in x264 --help
[libx264 @ 02ed6880] profile is optional; x264 defaults to high
答案:
设置oVcc->qmin = 10; //H264编码重要参数,否则返回-1
oVcc->qmax = 51;