Bug 1330676 - Use VBR in VP8TrackEncoder. r?derf, r?bechen draft
authorAndreas Pehrson <pehrsons@gmail.com>
Thu, 12 Jan 2017 17:13:13 +0100
changeset 459727 49689cd6397a3e792800faab995bdc714f505024
parent 459725 c579431dcfd12caf60e372d808ec1042ecf79d9a
child 541990 f0310b3d65ecc92fc4ec05c5ce977c69b89a0b83
push id41324
push userbmo:pehrson@telenordigital.com
push dateThu, 12 Jan 2017 16:53:16 +0000
reviewersderf, bechen
bugs1330676
milestone53.0a1
Bug 1330676 - Use VBR in VP8TrackEncoder. r?derf, r?bechen MozReview-Commit-ID: AvezDCrOIuZ
dom/media/encoder/VP8TrackEncoder.cpp
--- a/dom/media/encoder/VP8TrackEncoder.cpp
+++ b/dom/media/encoder/VP8TrackEncoder.cpp
@@ -124,17 +124,17 @@ VP8TrackEncoder::Init(int32_t aWidth, in
   } else if (mFrameWidth * mFrameHeight > 640 * 480 && number_of_cores >= 3) {
     config.g_threads = 2; // 2 threads for qHD/HD.
   } else {
     config.g_threads = 1; // 1 thread for VGA or less
   }
 
   // rate control settings
   config.rc_dropframe_thresh = 0;
-  config.rc_end_usage = VPX_CBR;
+  config.rc_end_usage = VPX_VBR;
   config.g_pass = VPX_RC_ONE_PASS;
   // ffmpeg doesn't currently support streams that use resize.
   // Therefore, for safety, we should turn it off until it does.
   config.rc_resize_allowed = 0;
   config.rc_undershoot_pct = 100;
   config.rc_overshoot_pct = 15;
   config.rc_buf_initial_sz = 500;
   config.rc_buf_optimal_sz = 600;