Saving Uncompressed AVI Files in LabVIEW

Updated Apr 9, 2023

Reported In


  • LabVIEW


  • NI-IMAQdx

Issue Details

I’m developing a machine vision system where I need to save the uncompressed RGB video from a camera to be able to extract the uncompressed data frame-by-frame at a later stage. I’ve tried different AVI codecs but they either compress the video or only allow greyscale (such as Y800 Uncompressed Grey Scale). 


The IMAQ AVI2 Create V I creates a new or rewrites an AVI file. Leaving the Codec input to the IMAQ AVI2 Create VI unwired will save the file without using a codec and therefore save an uncompressed file. If the image acquired from the camera is RGB, the file saved will be an uncompressed RGB file.

The best way to see this is to modify the LabVIEW IMAQ shipping example (LabVIEW\examples\Vision\Files\AVI Codec by removing the Codec input on the IMAQ AVI2 Create VI.

Additional Information

In some versions of the IMAQ AVI2 Create V I, the Codec input is a required input. However in most versions of LabVIEW, this is actually a recommended input, meaning it can be left unwired.