提交 6d6f217a authored 作者: Seven Du's avatar Seven Du 提交者: Mike Jerris

FS-11189 add H264 default private configs

上级 515bbdc8
...@@ -1213,6 +1213,12 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -1213,6 +1213,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
av_opt_set(context->encoder_ctx->priv_data, "preset", "llhp", 0); av_opt_set(context->encoder_ctx->priv_data, "preset", "llhp", 0);
av_opt_set_int(context->encoder_ctx->priv_data, "2pass", 1, 0); av_opt_set_int(context->encoder_ctx->priv_data, "2pass", 1, 0);
} else { } else {
av_opt_set(context->encoder_ctx->priv_data, "preset", "veryfast", 0);
av_opt_set(context->encoder_ctx->priv_data, "intra-refresh", "1", 0);
av_opt_set(context->encoder_ctx->priv_data, "tune", "animation+zerolatency", 0);
av_opt_set(context->encoder_ctx->priv_data, "sc_threshold", "40", 0);
av_opt_set(context->encoder_ctx->priv_data, "crf", "18", 0);
if (profile->options) { if (profile->options) {
switch_event_header_t *hp; switch_event_header_t *hp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论