Create Video Writer

Description

Creates a video reference. Type : polymorphic.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

Documentation illustration (illustration unavailable in the archive). Video Path : path, path of the video.
Documentation illustration (illustration unavailable in the archive). FPS : integer, video fps.
Documentation illustration (illustration unavailable in the archive). Codec : string, video codec.

Output parameters

 

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

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).

Create and write video

Documentation illustration (illustration unavailable in the archive).

1 – Initialize

Open camera reference, create a temporary memory location for an image and create video reference.

2 – Process

Each loop reads the last frame and displays this frame. If the “Record” boolean is true, the image is saved in video.

3 – Close

We close all open references.