Skip to content

VideoCompression_DataRate

property

Delphi
property VideoCompression_DataRate: LongInt read GetVideoCompression_DataRate write SetVideoCompression_DataRate default DEF_VideoCompression_DataRate;
C++Builder
__property System::LongInt VideoCompression_DataRate = {read=GetVideoCompression_DataRate, write=SetVideoCompression_DataRate, default=-1};
C#
public int VideoCompression_DataRate { get; set; }
VB.NET
Public Property VideoCompression_DataRate As Integer
C++/Qt
int GetVideoCompression_DataRate ();
void SetVideoCompression_DataRate (int Value);

Specifies the data rate to use for video compression, in bits per second (e.g. 2000000 for 2 Mb/s).

If the value is -1 (or 0), the default data rate of the codec is used. Values below 10000 are not applied (warning reported by OnLog).

The data rate applies to the video compressors that support it (CanCrunch = true in the OnVideoCompressionSettings event), through the bit rate of their output format; otherwise it is not applied and OnLog reports it.

Media Foundation encoders of the VideoCompressors list (e.g. "H264 (Auto)", "H264 GPU (Nvidia)", "AV1 GPU (Intel)", also the "H264 (Auto)" encoder of an MKV recording without video compression): mean bit rate of the encoder, taking precedence over the bit rate set with ShowDialog (dlg_VideoCompressor) and over VideoCompression_Quality; a constant quality set with ShowDialog becomes VBR. Not applied to the MJPEG entries (quality only).

MP4 recording without video compression (RecordingMethod = rm_MP4, H.264 encoded by the built-in MP4 writer): mean bit rate of the H.264 encoder (VBR), taking precedence over VideoCompression_Quality.

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