Example Code

Convert folder of images to AVI

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 a series of images as an AVI video file.

 

Description

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

The example reads every image in the specified folder and writes each image as a video frame to the AVI file.
 

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. Select the folder with the image files (e.g. choose the 'data' subdirectory)
  2. Select the path of the AVI video file generated from the image files
  3. Run the VI

 

Additional Information or References

Save Images as AVI LV2012 NIVerified.vi - Front Panel.png

 

Save Images as AVI LV2012 NIVerified.vi - 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
Staff Certification Engineer

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

Comments
Cheng6688
Member
Member
on

Hi,

I have downloaded the VI, but have not figured out how to use it properly. Would you explain in details how to specify the following contents: Image String Specifier, AVI output path, Image input folder?

Hello,

I have just figured out how it works. No worries.

Thanks.