LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem loading AVI with vision

 I started building a gait analysis program, and got stuck with the following. Whenever I load AVI files into labview (using IMAQ AVI READ FRAME) it displays about a dozen frames, then I get Error 1074395975: IMAQ Vision:  DirectX has timed out reading or writing the AVI file.  When closing an AVI file, try adding an additional delay.  When reading an AVI file, try reducing CPU and disk load. This happens even with the READ AVI EXAMPLE program that came with the vision package. Since LV is the only application, running on a i7, I am pretty sure this is no load problem. I tried changing the avi compressor, and the resolution, without success. Any ideas? 

0 Kudos
Message 1 of 9
(3,283 Views)

I can read/play your attached avi in LabVIEW 2011SP1 as well as 2012 with the simple "Read AVI Example.vi" from the Example Finder without any errors.

 

Did you have a look at this example?

 

 

 

Christian

 

 

0 Kudos
Message 2 of 9
(3,259 Views)

    I did look at that (even mentioned it earlier). From all I could check, the only reason I can imagine now is some sort of compressor problem in my DirectX, because I managed to load other movie files without problems. The ones recorded by that specific gait program does not load. The only way I managed to make it work was to build the AVI file uncompressed (thus making a 20sec file with 2.3MB to an awkward 1.09GB). A screenshot of the error message follows.

 

 

 

0 Kudos
Message 3 of 9
(3,255 Views)

Use IMAQ AVI Get Filter Names.vi to read out the installed compression filters at your system.

I have the following filters installed, whereas your AVI worked well:

 

Untitled.png

 

Christian

 

0 Kudos
Message 4 of 9
(3,245 Views)

 

    I'm sure it's not a problem with missing or incorrect compressors, because the files plays normally in any media player. The problem arises when loading the movie file in LabVIEW. Proof that this in not the problem is that it actually loads a few frames (about a dozen) before the error.

 

    One odd thing I found is that IMAQ AVI GET INFO does not recognize the compressor (it uses Microsoft MPEG4 V2) in the AVI file, but finds it correctly with IMAQ AVI GET FILTER NAMES. 

 

     While running some other tests I managed to make the movie run by forcing frame pre-load in IMAQ AVI READ, but performance is soo poor that it ended up the same.

 

 

filters.png

0 Kudos
Message 5 of 9
(3,236 Views)

You could try to upgrade your version of DirectX.

 

 

Christian

0 Kudos
Message 6 of 9
(3,208 Views)

     That was the first thing I tried, with no success.

 

 

      Thiago

0 Kudos
Message 7 of 9
(3,187 Views)

Did you actually check the CPU Load when playing the AVI?

I am wondering how much CPU Load you get when playing this AVI.

 

An alternative to the IMAQ AVI functions would be using ActiveX along with WMP. An example would be here.

 

 

Christian

0 Kudos
Message 8 of 9
(3,174 Views)

 

     These are the CPU and Disk loads while running the AVI (until it crashes, that's about a second of movie play).

     I'll try the activeX example, and see where it gets.

  

     Thanks.

 

 

Download All
0 Kudos
Message 9 of 9
(3,161 Views)