Example Code

Save an AVI as a Set of Images

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • Vision Development Module
  • LabVIEW

Code and Documents

Attachment

Overview

The example demonstrates how to save frames of an AVI video as images.

 

Description

In case it is necessary to split a AVI video file into a set of images you can accomplish the task with the functions of the Vision Development Module.

The example reads the AVI video file frame by frame and writes the image of the particular frame to disk.
 

Requirements

 Software

  • LabVIEW 2012 Base Development System (or compatible)
  • Vision Development Module 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Open the attached file
  2. Select the AVI video file to convert
  3. Select the folder to save the images to
  4. Run the VI

 

Additional Information or References

Save Images as AVI - Front Panel.png

 

Save Images as AVI - Block Diagram.png

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**

National Instruments
Senior Systems Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.