summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-01-17 08:51:48 -0800
committerJohn Stebbins <[email protected]>2019-01-18 12:14:09 -0800
commit96285fe66cbd4e03fcb88ac89245da8342c9292c (patch)
tree7b694a93cda5570d5b96dd8c37a8b09e5b48d474 /libhb
parent1aa1278c0003fa8fee7b13b83ea81a1a851b10a2 (diff)
encavcodec: Make VCE h.265 encoder emit an IDR for every GOP
Diffstat (limited to 'libhb')
-rw-r--r--libhb/encavcodec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 5e5c0f900..01dcd8c70 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -562,6 +562,12 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
}
}
+ // Make VCE h.265 encoder emit an IDR for every GOP
+ if (job->vcodec == HB_VCODEC_FFMPEG_VCE_H265)
+ {
+ av_dict_set(&av_opts, "gops_per_idr", "1", 0);
+ }
+
if( job->pass_id == HB_PASS_ENCODE_1ST ||
job->pass_id == HB_PASS_ENCODE_2ND )
{