Skip to content

AVIDuration

method

Delphi
function AVIDuration (AVIFile: string; var Duration: OleVariant; var FrameCount: OleVariant): Boolean;
C++Builder
bool __fastcall AVIDuration(System::UnicodeString AVIFile, /* out */ LargeInteger &Duration, /* out */ LargeInteger &FrameCount);
C#
public bool AVIDuration(string AVIFile, out long Duration, out long FrameCount);
VB.NET
Public Function AVIDuration(AVIFile As String, ByRef Duration As Long, ByRef FrameCount As Long) As Boolean
C++/Qt
BOOL AVIDuration (wchar_t *AVIFile, __int64 *Duration, __int64 *FrameCount);

Returns the duration of the AVI file specified.

Duration: returns the duration of the AVI file, expressed in 100 nanoseconds units, returns 0 upon failure.

FrameCount: returns the total frame count if available, otherwise returns 0.

VideoWidth: width of the video