ffmpeg x264编码打开编码器失败 返回-1

此时调用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 -vpre

[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;



 



你可能感兴趣的:(FFmpeg/FFplay)