forked from Mirrors/freeswitch
FS-11394: [mod_av] Clean up defaults cos they are still wrong
This commit is contained in:
parent
4333f6813d
commit
f3b65c2ee7
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue