Get Video Info
Description
Obtains information about the video file. Type : polymorphic.
Input parameters
Session Src : class
Output parameters
Session Dst : class
Frame Data : cluster, cluster containing information about the video.
Width : integer, specifies the width of the image.
Height : integer, specifies the height of the image.
Image Type : integer, specifies the type of image used in the video file.
-
-
-
- Grayscale (U8) : 8 bits per pixel (unsigned, standard monochrome)
- RGB (U32) : 32 bits per pixel (red, green, blue, alpha)
- HSL (U32) : 32 bits per pixel (hue, saturation, luminance, alpha)
-
-
Num Frames : integer, number of frames.
Frames Per Second : integer, specifies the frame per second of the video.
Loop timing : integer, period between two images.
Codec : string, specifies the codec used to create the video file.
Has Data : boolean, false if video file is empty.
Example
All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).
Simple use of Get Video Info
1 – Initialize
Open video reference.
2 – Get
Use the “GetVideoInfo” function to retrieve certain information about the video.
3 – Close
We close all open references.