AVIDuration
Delphi
function AVIDuration (AVIFile: string; out Duration: LargeInteger; out FrameCount: LargeInteger): 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);
Retrieves the duration of the video file specified; returns false if the format is not supported.
-
Duration: returns the duration of the video file, expressed in 100-nanosecond units, or 0 upon failure;
-
FrameCount: returns the total frame count if available, otherwise 0.