Skip to content

VideoCompression_KeyFrameRate

property

Delphi
property VideoCompression_KeyFrameRate: LongInt read GetVideoCompression_KeyFrameRate write SetVideoCompression_KeyFrameRate  default DEF_VideoCompression_KeyFrameRate;
C++Builder
__property System::LongInt VideoCompression_KeyFrameRate = {read=GetVideoCompression_KeyFrameRate, write=SetVideoCompression_KeyFrameRate, default=15};
C#
public int VideoCompression_KeyFrameRate { get; set; }
VB.NET
Public Property VideoCompression_KeyFrameRate As Integer
C++/Qt
int GetVideoCompression_KeyFrameRate ();
void SetVideoCompression_KeyFrameRate (int Value);

Specifies the desired key-frame rate for the current video compressor.

If the value is negative (-1), the filter uses its default key-frame rate. If the value is zero, only the first frame is a key frame.

Media Foundation encoders of the VideoCompressors list (e.g. "H264 (Auto)", "H264 GPU (Nvidia)", also the "H264 (Auto)" encoder of an MKV recording without video compression) and MP4 recording without video compression (H.264 encoded by the built-in MP4 writer): the default value 15 is not applied (key frame every 2 seconds, or the setting of ShowDialog (dlg_VideoCompressor)), except when it is assigned by SetVideoCompressionSettings; 0 means automatic (key frame every 2 seconds); other values: number of frames per key frame, taking precedence over the setting of ShowDialog.

Use the OnVideoCompressionSettings event to get the default value for the current codec (see the Software compression by using codecs chapter for more details).