From bc3416e6108a819e9e9deee00f26b734ed2d206f Mon Sep 17 00:00:00 2001 From: "sonal.g1@samsung.com" Date: Wed, 21 Jan 2015 17:56:18 +0530 Subject: [PATCH] [Tizen][WebRTC] Fix control rate of omx encoder The control rate of omx encoder has been changed to CBR from VBR. CBR adjusts the encoding algorithm of encoder dynamically according to the bitrate specified. In VBR sometimes big frames are produced which are not handled at receiver end. Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=10558 Reviewed by: Min-Soo Koo, Venugopal S M Change-Id: Idd89fce2190fea2dff4b411bab3ba8170cc99b16 Signed-off-by: sonal.g1@samsung.com --- .../content/common/gpu/media/tizen/tizen_video_encode_accelerator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tizen_src/impl/content/common/gpu/media/tizen/tizen_video_encode_accelerator.cc b/tizen_src/impl/content/common/gpu/media/tizen/tizen_video_encode_accelerator.cc index 891f2a2..d780e62 100644 --- a/tizen_src/impl/content/common/gpu/media/tizen/tizen_video_encode_accelerator.cc +++ b/tizen_src/impl/content/common/gpu/media/tizen/tizen_video_encode_accelerator.cc @@ -513,7 +513,7 @@ bool TizenVideoEncodeAccelerator::StartEncoder() { } g_object_set(impl_->encoder_, "byte-stream", TRUE, - "control-rate", 1, // 1:VBR_CFR 2:CBR_CFR 3:VBR_VFR 4:CBR_VFR + "control-rate", 2, // 1:VBR_CFR 2:CBR_CFR 3:VBR_VFR 4:CBR_VFR "encoder-profile", 1, // BASELINE_PROFILE "bitrate", impl_->gst_bitrate_, NULL); -- 2.7.4