h264编码速度测试

1,  最新版本的ffmpeg4.0及x264库.

h264编码速度测试


 可以直接改preset那个地方
av_opt_set
在x264.h里面有一个枚举
x264_preset_names
改成medium,faster甚至very fast都可以试试
这几个里面subq相差挺大的,最快时候的可能是slow的二倍多 

 /* x264_param_default_preset:
 *      The same as x264_param_default, but also use the passed preset and tune
 *      to modify the default settings.
 *      (either can be NULL, which implies no preset or no tune, respectively)
 *
 *      Currently available presets are, ordered from fastest to slowest: */
static const char * const x264_preset_names[] = { "ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo", 0 };
/* x264_param_apply_profile:
 *      Applies the restrictions of the given profile.
 *      Currently available profiles are, from most to least restrictive: */
static const char * const x264_profile_names[] = { "baseline", "main", "high", "high10", "high422", "high444", 0 };