I am using x264 in ABR and CBR mode. However, the quality is degraded by time.<div><br></div><div>If I use CQP ratecontrol method, the quality is acceptable at bitrate 160kbps. However, with the same bitrate (or even higher) in ABR/CBR mode, video quality is degraded by time and unacceptable.</div>
<div><br></div><div>Here is context setting in my code:</div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>x264_param_default_preset(¶m, "veryfast", "zerolatency");</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>x264_param_apply_profile(¶m, "main");</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>param.i_threads = 1;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>param.i_width = width;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>param.i_height = height;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>param.i_fps_num = fps;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>param.i_fps_den = 1;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>param.i_keyint_max = fps * 2</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>param.b_intra_refresh = 0;</div>
</div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>param.rc.i_bitrate = 164 ;</div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>param.rc.i_vbv_max_bitrate = 164;</div>
<div><span class="Apple-tab-span" style="white-space: pre; "> </span>param.rc.i_rc_method = X264_RC_ABR;</div></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>param.b_repeat_headers = 1;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>param.b_annexb = 1;</div></div><div>Could anybody help me to modify or add other setting parameters to solve the problem?</div><div><br></div><div>Thank you!</div>
<div>Alex</div><div><br></div>