Skip to content

Encoder_SetInt

function

Delphi
function Encoder_SetInt (EncoderID: LongInt; Setting: TEncoder_int; Value: LongInt): Boolean;
C++Builder
bool __fastcall Encoder_SetInt(System::LongInt EncoderID, TEncoder_int Setting, System::LongInt Value);
C#
public bool Encoder_SetInt(int EncoderID, TEncoder_int Setting, int Value);
VB.NET
Public Function Encoder_SetInt(EncoderID As Integer, Setting As TEncoder_int, Value As Integer) As Boolean
C++/Qt
BOOL Encoder_SetInt (int EncoderID, TEncoder_int Setting, int Value);

Sets an integer parameter (TEncoder_int) of the Datastead Encoder identified by EncoderID: 0 for the encoder used by the TVideoGrabber recording functions (StartRecording, RecordToNewFileNow...), or an ID returned by Encoders_CreateInstanceForRecording / Encoders_CreateInstanceForStreaming.

E.g. Encoder_SetInt (0, Enc_Video_BitRate_kb, 2000). A TGPUEncoder value is passed as an integer, e.g. Encoder_SetInt (0, Enc_Video_GPU_Encoder, integer (Enc_GPU_Auto)).

Invoke this function before starting the video. Returns false if EncoderID does not match an existing encoder.

Applies to the Datastead Multipurpose Encoder only (FFmpeg codecs). The Media Foundation encoders of the VideoCompressors list are configured with ShowDialog (dlg_VideoCompressor) and the VideoCompression_DataRate, VideoCompression_KeyFrameRate and VideoCompression_Quality properties and VideoCompression_SetInt, those of the AudioCompressors list with ShowDialog (dlg_AudioCompressor) and AudioCompression_SetInt.

See Recording through the Datastead Encoder.