]> granicus.if.org Git - handbrake/commitdiff
encavcodec: Make VCE h.265 encoder emit an IDR for every GOP
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 17 Jan 2019 16:51:48 +0000 (08:51 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 18 Jan 2019 20:14:09 +0000 (12:14 -0800)
libhb/encavcodec.c

index 5e5c0f900bbc1c3fe7808626c0d0641a041d01e8..01dcd8c706d72682c7ecac4186e4b499cc6ae463 100644 (file)
@@ -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 )
     {