VideoCompressorIndex
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 wildcards, e.g.:
VideoGrabber1.VideoCompressor := VideoGrabber1.VideoCompressorIndex ('Microsoft MPEG-4 Video Codec V2'); // selects the "Microsoft MPEG-4 Video Codec V2" video compressor.
VideoGrabber1.VideoCompressor := VideoGrabber1.VideoCompressorIndex ('Microsoft MPEG-4*'); // selects the 1st video compressor that begins with "Microsoft MPEG-4".
VideoGrabber1.VideoCompressor := VideoGrabber1.VideoCompressorIndex ('*MPEG-4*'); // selects the 1st video compressor that contains "MPEG-4".