提交 f3b65c2e authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Andrey Volk

FS-11394: [mod_av] Clean up defaults cos they are still wrong

上级 4333f681
......@@ -9,7 +9,7 @@
<!-- <param name="key-frame-min-freq" value="250"/> -->
<!-- integer of cpus, or 'auto', or 'cpu/<divisor>/<max> -->
<param name="dec-threads" value="cpu/2/4"/>
<param name="dec-threads" value="1"/>
<param name="enc-threads" value="cpu/2/4"/>
<param name="h263-profile" value="H263"/>
<param name="h263+-profile" value="H263+"/>
......
......@@ -9,7 +9,7 @@
<!-- <param name="key-frame-min-freq" value="250"/> -->
<!-- integer of cpus, or 'auto', or 'cpu/<divisor>/<max> -->
<param name="dec-threads" value="cpu/2/4"/>
<param name="dec-threads" value="1"/>
<param name="enc-threads" value="cpu/2/4"/>
<param name="h263-profile" value="H263"/>
<param name="h263+-profile" value="H263+"/>
......
......@@ -1095,8 +1095,8 @@ static void set_h264_private_data(h264_codec_context_t *context, avcodec_profile
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);
//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) {
switch_event_header_t *hp;
......@@ -1993,6 +1993,9 @@ static void load_config()
val = atoi(value);
ctx->profile = FF_PROFILE_H264_BASELINE;
ctx->level = 31;
if (!strcmp(name, "dec-threads")) {
aprofile->decoder_thread_count = switch_parse_cpu_string(value);
} else if (!strcmp(name, "enc-threads")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论