forked from Mirrors/freeswitch
FS-11189 add some default config to be consistent if default xml config is missing
This commit is contained in:
parent
75dae616be
commit
827be99f9b
|
@ -116,6 +116,7 @@
|
|||
<param name="token-parts" value="3"/>
|
||||
<param name="static-threash" value="1000"/>
|
||||
<param name="noise-sensitivity" value="0"/>
|
||||
<!-- DEFAULT or SCREEN -->
|
||||
<param name="vp9e-tune-content" value="SCREEN"/>
|
||||
</profile>
|
||||
|
||||
|
|
|
@ -1383,7 +1383,36 @@ static void load_config()
|
|||
|
||||
vpx_globals.max_bitrate = 0;
|
||||
vpx_globals.vp8.cpuused = -6;
|
||||
vpx_globals.vp8.enc_cfg.g_profile = 2;
|
||||
vpx_globals.vp8.enc_cfg.g_timebase.den = 1000;
|
||||
vpx_globals.vp8.enc_cfg.g_error_resilient = VPX_ERROR_RESILIENT_PARTITIONS;
|
||||
vpx_globals.vp8.enc_cfg.rc_resize_allowed = 1;
|
||||
vpx_globals.vp8.enc_cfg.rc_end_usage = VPX_CBR;
|
||||
vpx_globals.vp8.enc_cfg.rc_target_bitrate = switch_parse_bandwidth_string("1mb");
|
||||
vpx_globals.vp8.enc_cfg.rc_min_quantizer = 4;
|
||||
vpx_globals.vp8.enc_cfg.rc_max_quantizer = 63;
|
||||
vpx_globals.vp8.enc_cfg.rc_overshoot_pct = 50;
|
||||
vpx_globals.vp8.enc_cfg.rc_buf_sz = 5000;
|
||||
vpx_globals.vp8.enc_cfg.rc_buf_initial_sz = 1000;
|
||||
vpx_globals.vp8.enc_cfg.rc_buf_optimal_sz = 1000;
|
||||
vpx_globals.vp8.enc_cfg.kf_max_dist = 360;
|
||||
|
||||
vpx_globals.vp9.cpuused = -6;
|
||||
vpx_globals.vp9.enc_cfg.g_profile = 2;
|
||||
vpx_globals.vp9.enc_cfg.g_timebase.den = 1000;
|
||||
vpx_globals.vp9.enc_cfg.g_error_resilient = VPX_ERROR_RESILIENT_PARTITIONS;
|
||||
vpx_globals.vp9.enc_cfg.rc_resize_allowed = 1;
|
||||
vpx_globals.vp9.enc_cfg.rc_end_usage = VPX_CBR;
|
||||
vpx_globals.vp9.enc_cfg.rc_target_bitrate = switch_parse_bandwidth_string("1mb");
|
||||
vpx_globals.vp9.enc_cfg.rc_min_quantizer = 4;
|
||||
vpx_globals.vp9.enc_cfg.rc_max_quantizer = 63;
|
||||
vpx_globals.vp9.enc_cfg.rc_overshoot_pct = 50;
|
||||
vpx_globals.vp9.enc_cfg.rc_buf_sz = 5000;
|
||||
vpx_globals.vp9.enc_cfg.rc_buf_initial_sz = 1000;
|
||||
vpx_globals.vp9.enc_cfg.rc_buf_optimal_sz = 1000;
|
||||
vpx_globals.vp9.enc_cfg.kf_max_dist = 360;
|
||||
vpx_globals.vp9.tune_content = VP9E_CONTENT_SCREEN;
|
||||
|
||||
vpx_globals.vp10.cpuused = -6;
|
||||
|
||||
xml = switch_xml_open_cfg("vpx.conf", &cfg, NULL);
|
||||
|
|
Loading…
Reference in New Issue