11-26-2012 05:35 AM
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?
11-26-2012 10:48 AM
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
11-26-2012 11:35 AM
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.
11-27-2012 02:28 AM
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:
Christian
11-27-2012 08:40 AM
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.
12-05-2012 09:02 AM
You could try to upgrade your version of DirectX.
Christian
12-10-2012 05:18 AM
That was the first thing I tried, with no success.
Thiago
12-11-2012 02:36 AM
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
12-12-2012 09:45 AM
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.