Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Incompatible compression filter Error -1074396007 occurred at IMAQ AVI Write Frame

Solved!
Go to solution
Ok, so I have two computers.
On the one of them, the VI works fine, on the other I get a error and no AVI file.

I am trying to take a bunch of tif files and compress them into and AVI file with the Indeo® video 5.10 Compression Filter.
Both computers are running Windows XP.  The one that works is older and slower (but still pretty new, 2 years old).  The new one that doesn't work is a dual core with 3GB of RAM.
One difference is that with the older computer Labview is installed on the C drive along with windows.  On the new computer Labview is installed on a second partion (Drive D) while windows is installed on the C drive.

At first the demo write avi file and compare compression filters VI's wouldn't work on the new computer, but after upgrading Direct X to version 9 and restart the computer they now work.  With the Compare compression filter example VI the IndeoR video 5.10 Compression Filter runs fine.

When I try to run my VI (attached) on the new computer it runs but I get an error (Error -1074396007 occurred at IMAQ AVI Write Frame  Incompatible compression filter. Possible reason(s): IMAQ Vision:  (Hex 0xBFF60499) Incompatible compression filter.) and no avi file is produced.  When I run other filters with the VI, I get a avi file that runs fine!! 

I have NI Vision 8.2.1 installed on both computers.  On the old computer I also have older versions of Labview installed. 

I even went to the windows/system32 and found the CODEC (ir50_32.dll) on the old computer and copied it and replaced the version I had on the new computer.  This had no effect. 

Any thoughts as to why I am getting this error? 
Andre
0 Kudos
Message 1 of 7
(5,075 Views)
Some more observations,
The program runs fine on the new computer with some tif files, and not others.
I have run it on 1360 * 112, 1360 * 160 and 1360 *220 images with no problem.
I can not get it to run on 1360*150 images.  These images were stored on a disk that had "compression enabled" and have now been moved to a disk that does not have compression enabled.  The other images have never been on a disk with compression enabled.  Could the windows compression be effecting the files in a way that makes it impossible for the codec to work? 

I read at digital.ni.com/public.nsf/ad0f282819902a1986256f79005462b1/1f8c78b78598c6af86257261002c0d94/$FILE/Readme.rtf that there is an issue with

      Indeo® Video 5.10 Compression Filter

      Intel Indeo® Video R3.2

      Intel Indeo® Video 4.5

      Indeo® Video 5.10

  Namely that" On Windows XP computers with Service Pack 2 installed, NI Vision 8.2.1 does not support reading AVI files located in the Local Settings folder, or any subfolders of this folder, when the AVI file uses any of the following compression filters:"

I tried INdeo Video 5.10, and it also produced the same bug. 

Could these issues be in someway related? 

I am running Labivew 8.2.1 as an admin users

Andre


0 Kudos
Message 2 of 7
(5,070 Views)

Hello AZimmer,

The NI Vision 8.2.1 Development Module Readme file that you have referenced suggests copying an uncompressed AVI file into another folder (not the Local Settings folder or any subfolders of this folder) to resolve complications with the Indeo(R) Video 5.10 Compression Filter or Indeo(R) Video 5.1.  If you have not already tried changing the location of your TIF image files in accordance with this recommendation, then I suggest you do so.

If the problem persists, you might try reverting to Windows XP Service Pack 1.  The Readme file indicates that the known limitation occurs on computers running Windows XP with SP2. 

For more information on the specifics of the Indeo(R) compressors' internal processes, you will need to contact Intel.  Intel may be able to provide you with more information about why the Indeo(R) compressors are not operating on 1360x150 TIF image files.

Best Regards,
T. McCarty   

0 Kudos
Message 3 of 7
(5,040 Views)
To test if it really was an image dimensions issue I just collected two sets of images, one at 1360*150, the other at 1360*160.  The later goes into an AVI file with no problems, while the 1360*150 has the error.  So it has nothing to do with disk compression, but everything to do with image dimensions.  I guess it is time to see what intel says.  Will now see if adding an additional 10*1360 row of pixels to the image will solve the problem.
Andre

0 Kudos
Message 4 of 7
(5,035 Views)
The addition of a 1360*10 array (image to array, add array, array to image) fixed the problem.

0 Kudos
Message 5 of 7
(5,034 Views)
AZimmer -

Since the Indeo(R) Video 5.10 Compression Filter is provided by DirectX and not by NI, I can only guess what's happening.  Some filters refuse to accept images of certain dimensions - it sounds like perhaps this filter won't accept images whose width is not divisible by 4.  You could try adding only 2 extra columns instead of 10 to save a little space.

Greg Stoll
Vision R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 6 of 7
(5,030 Views)
Solution
Accepted by topic author AZimmer
Adding a strip of 2 did work, so I guess the div by 4 rule is applicable.  Thanks.
Andre

0 Kudos
Message 7 of 7
(5,027 Views)