]> granicus.if.org Git - libvpx/commitdiff
vp9-rtc: Increase thresh for scene detection
authorMarco Paniconi <marpan@google.com>
Wed, 13 May 2020 22:08:15 +0000 (15:08 -0700)
committerMarco Paniconi <marpan@google.com>
Wed, 13 May 2020 22:16:49 +0000 (15:16 -0700)
For CBR screen content mode. Makes it more
robust to false detections.

Change-Id: Icad89adb6f79b530b589bba2c71ba88ee5088d37

vp9/encoder/vp9_ratectrl.c

index 5dd745f3aa1da40e62c3a9663118694b44eb7e15..4da50379b428c75f00e997dcdd7cfcdf7b08f971 100644 (file)
@@ -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;