From: Marco Paniconi Date: Wed, 13 May 2020 22:08:15 +0000 (-0700) Subject: vp9-rtc: Increase thresh for scene detection X-Git-Tag: v1.9.0-rc1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1243d2fc27b1cad8863ac2d688b4fde71a80a74d;p=libvpx vp9-rtc: Increase thresh for scene detection For CBR screen content mode. Makes it more robust to false detections. Change-Id: Icad89adb6f79b530b589bba2c71ba88ee5088d37 --- diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index 5dd745f3a..4da50379b 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -2960,7 +2960,7 @@ void vp9_scene_detection_onepass(VP9_COMP *cpi) { int scene_cut_force_key_frame = 0; int num_zero_temp_sad = 0; uint64_t avg_sad_current = 0; - uint32_t min_thresh = 10000; + uint32_t min_thresh = 20000; // ~5 * 64 * 64 float thresh = 8.0f; uint32_t thresh_key = 140000; if (cpi->oxcf.speed <= 5) thresh_key = 240000;