Set flag that forces nvenc to produce IDR frames when a keyframe is
forced. We require IDR frames at chapter marks.
//for nvenc to "turn off" the maximum bitrate feature
//that is normally applied to constant quality.
context->bit_rate = bit_rate_ceiling;
+
+ // Force IDR frames when we force a new keyframe for chapters
+ av_dict_set( &av_opts, "forced-idr", "1", 0 );
}
else if ( job->vcodec == HB_VCODEC_FFMPEG_VCE_H264 || job->vcodec == HB_VCODEC_FFMPEG_VCE_H265 )
{