Skip to content

VideoCompressorIndex

function

Delphi
function VideoCompressorIndex (Value: string): LongInt;
C++Builder
System::LongInt __fastcall VideoCompressorIndex(System::UnicodeString Value);
C#
public int VideoCompressorIndex(string Value);
VB.NET
Public Function VideoCompressorIndex(Value As String) As Integer
C++/Qt
int VideoCompressorIndex (wchar_t *Value);

returns the index of a given compressor in the VideoCompressors list. The function accepts wild chars. E.g.: VideoGrabber1.VideoCompressor := VideoCompressorIndex ('Microsoft MPEG-4 Video Codec V2'); // selects the "Microsoft MPEG-4 Video Codec V2" video compressor. VideoGrabber1.VideoCompressor := VideoCompressorIndex ('Microsoft MPEG-4'); // selects the 1st video compressor that begins with "Microsoft MPEG-4". VideoGrabber1.VideoCompressor := VideoCompressorIndex ('MPEG-4'); // selects the 1st video compressor that contains "MPEG-4".