| Index: source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| diff --git a/source/libvpx/examples/vpx_temporal_svc_encoder.c b/source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| index cbe0157ff9ab55df1f7690a229264769f9029980..7a582d2b8502b67f3291e346f610839b679975ef 100644
|
| --- a/source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| +++ b/source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| @@ -19,12 +19,12 @@
|
| #include <string.h>
|
|
|
| #include "./vpx_config.h"
|
| -#include "vpx_ports/vpx_timer.h"
|
| +#include "../vpx_ports/vpx_timer.h"
|
| #include "vpx/vp8cx.h"
|
| #include "vpx/vpx_encoder.h"
|
|
|
| -#include "./tools_common.h"
|
| -#include "./video_writer.h"
|
| +#include "../tools_common.h"
|
| +#include "../video_writer.h"
|
|
|
| static const char *exec_name;
|
|
|
| @@ -602,6 +602,8 @@ int main(int argc, char **argv) {
|
| cfg.rc_resize_allowed = 0;
|
| cfg.rc_min_quantizer = 2;
|
| cfg.rc_max_quantizer = 56;
|
| + if (strncmp(encoder->name, "vp9", 3) == 0)
|
| + cfg.rc_max_quantizer = 52;
|
| cfg.rc_undershoot_pct = 50;
|
| cfg.rc_overshoot_pct = 50;
|
| cfg.rc_buf_initial_sz = 500;
|
| @@ -666,11 +668,13 @@ int main(int argc, char **argv) {
|
| if (strncmp(encoder->name, "vp8", 3) == 0) {
|
| vpx_codec_control(&codec, VP8E_SET_CPUUSED, -speed);
|
| vpx_codec_control(&codec, VP8E_SET_NOISE_SENSITIVITY, kDenoiserOnYOnly);
|
| + vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 1);
|
| } else if (strncmp(encoder->name, "vp9", 3) == 0) {
|
| vpx_codec_control(&codec, VP8E_SET_CPUUSED, speed);
|
| vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3);
|
| vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0);
|
| vpx_codec_control(&codec, VP9E_SET_NOISE_SENSITIVITY, 0);
|
| + vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0);
|
| if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1: 0)) {
|
| die_codec(&codec, "Failed to set SVC");
|
| }
|
| @@ -678,7 +682,6 @@ int main(int argc, char **argv) {
|
| if (strncmp(encoder->name, "vp8", 3) == 0) {
|
| vpx_codec_control(&codec, VP8E_SET_SCREEN_CONTENT_MODE, 0);
|
| }
|
| - vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 1);
|
| vpx_codec_control(&codec, VP8E_SET_TOKEN_PARTITIONS, 1);
|
| // This controls the maximum target size of the key frame.
|
| // For generating smaller key frames, use a smaller max_intra_size_pct
|
|
|