Skip to content

Commit

Permalink
hevc: Fix the VBV buffer to a user supplied value, don't scale by 2x …
Browse files Browse the repository at this point in the history
…4x or 24x etc
  • Loading branch information
Steven Toth committed Apr 16, 2020
1 parent 6a00701 commit d969836
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions encoders/video/hevc/x265.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,7 @@ static int reconfigure_encoder(struct context_s *ctx)

if (ctx->h->obe_system == OBE_SYSTEM_TYPE_LOWEST_LATENCY) {
/* Found that in lowest mode, obe doesn't accept the param, but the codec reports underruns. */
ctx->enc_params->avc_param.rc.i_vbv_buffer_size = ctx->enc_params->avc_param.rc.i_vbv_max_bitrate * 24;
ctx->enc_params->avc_param.rc.i_vbv_buffer_size = ctx->enc_params->avc_param.rc.i_vbv_max_bitrate * 4;
//ctx->enc_params->avc_param.rc.i_vbv_buffer_size = ctx->enc_params->avc_param.rc.i_vbv_max_bitrate;
ctx->enc_params->avc_param.rc.i_vbv_buffer_size = ctx->enc_params->avc_param.rc.i_vbv_max_bitrate;
printf(MESSAGE_PREFIX "vbv_bufsize = %d\n", ctx->enc_params->avc_param.rc.i_vbv_buffer_size);
}
sprintf(&val[0], "%d", ctx->enc_params->avc_param.rc.i_vbv_buffer_size);
Expand Down

0 comments on commit d969836

Please sign in to comment.