Skip to content

Commit

Permalink
encavcodec: do not set a short GOP for VCE
Browse files Browse the repository at this point in the history
it doesn't seem to make any difference at the moment
  • Loading branch information
galad87 committed Oct 10, 2024
1 parent 5fa1e55 commit 45db267
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libhb/encavcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
{
av_dict_set( &av_opts, "rc", "vbr_peak", 0 );

// since we do not have scene change detection, set a
// relatively short gop size to help avoid stale references
context->gop_size = (int)(FFMIN(av_q2d(fps) * 2, 120));

//Work around an ffmpeg issue mentioned in issue #3447
// Work around an ffmpeg issue mentioned in issue #3447
if (job->vcodec == HB_VCODEC_FFMPEG_VCE_H265 || job->vcodec == HB_VCODEC_FFMPEG_VCE_H265_10BIT)
{
av_dict_set( &av_opts, "qmin", "0", 0 );
Expand Down

0 comments on commit 45db267

Please sign in to comment.