Fix I-frame interval in stream test video (#47638)

This commit is contained in:
uvjustin 2021-03-09 03:23:57 +08:00 committed by GitHub
parent 67effbc8c4
commit d9bf63103f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@ def generate_h264_video(container_format="mp4", audio_codec=None):
stream.width = 480
stream.height = 320
stream.pix_fmt = "yuv420p"
stream.options.update({"g": str(fps), "keyint_min": str(fps)})
a_packet = None
last_a_dts = -1