From f3b65c2ee758419673b80161215e738d509c7050 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 27 Sep 2018 19:13:48 +0000 Subject: [PATCH] FS-11394: [mod_av] Clean up defaults cos they are still wrong --- conf/vanilla/autoload_configs/av.conf.xml | 2 +- src/mod/applications/mod_av/autoload_configs/av.conf.xml | 2 +- src/mod/applications/mod_av/avcodec.c | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/conf/vanilla/autoload_configs/av.conf.xml b/conf/vanilla/autoload_configs/av.conf.xml index 7d0390646a..cf28fab3d3 100644 --- a/conf/vanilla/autoload_configs/av.conf.xml +++ b/conf/vanilla/autoload_configs/av.conf.xml @@ -9,7 +9,7 @@ - + diff --git a/src/mod/applications/mod_av/autoload_configs/av.conf.xml b/src/mod/applications/mod_av/autoload_configs/av.conf.xml index 7d0390646a..cf28fab3d3 100644 --- a/src/mod/applications/mod_av/autoload_configs/av.conf.xml +++ b/src/mod/applications/mod_av/autoload_configs/av.conf.xml @@ -9,7 +9,7 @@ - + diff --git a/src/mod/applications/mod_av/avcodec.c b/src/mod/applications/mod_av/avcodec.c index 39b426acd6..a2eda7caf9 100644 --- a/src/mod/applications/mod_av/avcodec.c +++ b/src/mod/applications/mod_av/avcodec.c @@ -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")) {