Sets video compression settings.

function SetVideoCompressionSettings(DataRate, KeyFrameRate, PFramesPerKeyFrame, WindowSize: LongInt; Quality: Double): Boolean;

bool __fastcall SetVideoCompressionSettings(int DataRate, int KeyFrameRate, int PFramesPerKeyFrame, int WindowSize, double Quality)

Function SetVideoCompressionSettings(DataRate As Long, KeyFrameRate As Long, PFramesPerKeyFrame As Long, WindowSize As Long, Quality As Double) As Boolean


Sets the video compression settings supported by some codecs. Returns true if the current video compressor supports this interface.
The current values can be retrieved by GetVideoCompressionSettings .
DataRate: retrieves the output data rate.
KeyFrameRate: The key-frame rate is the number of frames per key frame. For example, if the rate is 15, then a key frame occurs every 15 frames.
PFramesPerKeyFrame: P frames are used only in MPEG compression. E.g. let's say a key frame occurs once every 10 frames, and there are three P frames per key frame. The P frames will be spaced evenly between the key frames. The remaining six frames are bi-directional (B) frames.
WindowSize: retrieves the number of frames over which the compressor will maintain the average data rate. E.g. if a data rate of 100K/sec and a frame rate of 10 frames per second, if the window size is 1, then every frame will be 10K or less. If the window size is 5, then every five consecutive frames will average 10K per frame, but individual frames may exceed this size.
Quality: The quality is expressed as a value between 0.0 and 1.0, where 1.0 indicates the best quality and 0.0 indicates the worst quality. If the value is negative, the filter will use the default quality.
CanCrunch: the compressor can compress video to a specified data rate (see DataRate above).
CanKeyFrame: the compressor supports the KeyFrame property above.
CanBFrame: the compressor supports the PFramesPerKeyFrame property above.
CanWindow: the compressor supports WindowSize property above.
CanQuality: the compressor supports Quality property above.

See Also
Recording methods and properties TCompressionType TOnVideoCompressionSettings AudioCompressor AudioCompressorIndex AudioCompressorName AudioCompressors AudioCompressorsCount CompressionMode CompressionType GetVideoCompressionSettings OnReencodingCompleted OnReencodingStarted OnVideoCompressionSettings RefreshDevicesAndCompressorsLists SaveCompressorSettingsToDataString SetVideoCompressionDefaults VideoCompression_KeyFrameRate VideoCompression_PFramesPerKeyFrame VideoCompression_Quality VideoCompression_WindowSize VideoCompressor VideoCompressorIndex VideoCompressorName VideoCompressors VideoCompressorsCount