To determine if there exists video stream in AVI file check IDV_Codec_FourCC value:
if GetInfo(aviinfo, IDI_Video_Stream, IDV_Codec_FourCC) <> '' then begin // The video stream exists
All the constants in the enumeration lie in the range [0 .. IDV_max], so if you want to count all the IDV_... values, use following construction:
for cur_idv := 0 to IDV_max do begin
... cur_idv ...
end;
Constant
|
Unit
|
Example
|
Description
|
IDV_Codec_FourCC
|
---
|
0x30355844
|
hexadecimal representation of four character code of the video codec (algorithm of the compression), use FccToStr to convert it into the text representation ("DX50")
|
IDV_Handler_FourCC
|
---
|
0x78766964
|
hexadecimal representation of four character code of the video handler, use FccToStr to convert it into the text representation ("DIVX")
|
IDV_Width
|
pixels
|
640
|
video frame width
|
IDV_Height
|
pixels
|
352
|
video frame height
|
IDV_Aspect_Ratio
|
---
|
1,82
|
video frame aspect ratio, actually width/height
|
IDV_Frame_Proportion
|
---
|
13 x 24
|
the nearest integer proportion representative aspect ratio
|
IDV_Bit_Depth
|
bits per pixel
|
24
|
characterize a number of possible hue: a number of bits used to hold the information about color of one pixel
|
IDV_Frames
|
---
|
166
|
total number of video frames in the AVI file
|
IDV_Key_Frames
|
---
|
1
|
total number of "key" frames in the AVI file ("key" frames could be decompressed independently of other frames)
|
IDV_Frame_Rate
|
frames per second
|
29,9700
|
speed of video stream (fps)
|
IDV_Data_Rate
|
bits per second
|
387994
|
characterize bandwidth: average amount of information per second used when video being decompressed
|
IDV_Maximum_Data_Rate
|
bits per second
|
2898462
|
characterize bandwidth peaks: maximum amount of information per second used when video being decompressed
|
IDV_Effective_Bits_Per_Pixel
|
bits per pixel
|
0,057
|
characterize video compression: average real number of bits, used to save color information of one pixel (taking into consideration compression)
|
IDV_Effective_Bits_Per_Frame_3x4
|
bits per frame 3x4
|
17654
|
effective video quality: number of bits, utilized to save one video frame, stretched to screen proportion 3x4.
|
IDV_Compression
|
percentage
|
99,761
|
video compression: portion of data gained after compression
|
IDV_Power_Of_Compression
|
---
|
417,6 : 1
|
ratio of uncompressed size of the video and compressed one
|
IDV_Duration
|
millisecondes
|
5539
|
duration of the video stream
|
IDV_Rate
|
frames per scale unit
|
30000
|
characterize video playback speed: rate value (fps = rate / scale)
|
IDV_Scale
|
scale units per second
|
1001
|
characterize video playback speed: scale value (fps = rate / scale)
|
IDV_Size
|
bytes
|
268637
|
total size of the video data (without corresponding headers and indexes)
|