EnableMultipurposeEncoder
Delphi
function EnableMultipurposeEncoder (MultipurposeEncoderType: TMultipurposeEncoderInstance; Enable: Boolean): Boolean;
C++Builder
bool __fastcall EnableMultipurposeEncoder(TMultipurposeEncoderInstance MultipurposeEncoderType, bool Enable);
C#
public bool EnableMultipurposeEncoder(TMultipurposeEncoderInstance MultipurposeEncoderType, bool Enable);
VB.NET
Public Function EnableMultipurposeEncoder(MultipurposeEncoderType As TMultipurposeEncoderInstance, Enable As Boolean) As Boolean
C++/Qt
BOOL EnableMultipurposeEncoder (TMultipurposeEncoderInstance MultipurposeEncoderType, BOOL Enable);
Enables the Datastead Multipurpose Encoder in FFmpeg command-line mode.
Remarks
Enables (Enable = true) or disables the FFmpeg command-line mode of the Datastead Multipurpose Encoder for the recording (mpe_Recording), the network streaming (mpe_Streaming) or the reencoding (mpe_Reencoding), see TMultipurposeEncoderInstance.
The FFmpeg command line is then set with SetMultipurposeEncoderSettings, before invoking StartRecording, StartPreview or StartReencoding.
Without command line, the Datastead Multipurpose Encoder is configured with Encoder_SetInt / Encoder_SetStr (encoder mode, recommended), see using the Datastead Encoder.
See Record/Stream/Merge/Transcode through the Datastead Multipurpose Encoder for sample code.