Get Video Info

Description

Obtains information about the video file. Type : polymorphic.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

Documentation illustration (illustration unavailable in the archive). Session Src : class

Output parameters

 

Documentation illustration (illustration unavailable in the archive). Session Dst : class

Documentation illustration (illustration unavailable in the archive). Frame Data : cluster, cluster containing information about the video.

Documentation illustration (illustration unavailable in the archive). Width : integer, specifies the width of the image.
Documentation illustration (illustration unavailable in the archive). 
Height : integer,
 specifies the height of the image.
Documentation illustration (illustration unavailable in the archive). 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)


Documentation illustration (illustration unavailable in the archive). 
Num Frames : integer, 
number of frames.
Documentation illustration (illustration unavailable in the archive). 
Frames Per Second : integer, 
specifies the frame per second of the video.
Documentation illustration (illustration unavailable in the archive). Loop timing : integer, period between two images.
Documentation illustration (illustration unavailable in the archive). 
Codec : string, 
specifies the codec used to create the video file.
Documentation illustration (illustration unavailable in the archive). 
Has Data : boolean, 
false if video file is empty.

Documentation illustration (illustration unavailable in the archive).

Examples

All these examples 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 Computer Vision ​library to run it).

Simple use of Get Video Info

Documentation illustration (illustration unavailable in the archive).

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.

Open and play a video

Documentation illustration (illustration unavailable in the archive).