SvtAv1Enc: Howto produce KeyFrames only

I’m trying to produce a video containig key frames only using svtav1enc, but have failed so far:

gst-launch-1.0 ^
filesrc location=“Input.mkv” ^
! decodebin name=dec ^
dec. ^
! queue ! d3d12convert ! d3d12download ^
! queue ! svtav1enc intra-period-length=1 ! mux. ^
matroskamux name=mux ^
! filesink location=“Output.mkv”

intra-period-length=1 => every other frame is a key frame.
intra-period-length=0 => only the first frame is a key frame.

I’m able to achieve what I want using rav1enc:

rav1enc max-key-frame-interval=1

But it’s awfully slow.

FFMpeg 7.1.1 is also able to produce keyframes only (using libsvtav1):

ffmpeg -i Input.mkv -an -c:v libsvtav1 -g 1 Output.mkv
ffprobe -show_frames Output.mkv | grep -i key_frame

So, I think the gstreamer stav1enc plugin should also be able to produce keyframes only.
But how?

Feels like you will have to fix the code.