LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1074395967: Bug in 'IMAQ AVI2 Read Frame.vi'?

I'm having a bit of trouble with the IMAQ AVI2 library, specifically the 'IMAQ AVI2 Read Frame' function.

 

I have video which is a large uncompressed AVI file, using images captured from a 5MP industrial camera (in this case a Basler Pilot).

 

The video clip I have been testing on here is 101 frames long and about 400MB in size. A hefty file but nothing crazy.

 

Here's a snippet of my original code:

 

AVI2_read_frames_1.png

 

'IMAQ AVI2 Get Info.vi' correctly detects the file has 101 frames, which is then passed to a loop for reading.

Unfortunately when the loop gets to the 101th frame (i=100) the 'IMAQ AVI2 Read Frame.vi' function returns an error (as detected by my probe): 

 

Error -1074395967 occurred at IMAQ AVI2 Read Frame

Possible reason(s):

IMAQ Vision: (Hex 0xBFF604C1) Error reading AVI frame

 

This information is vague and doesn't really help me solve the problem. The movie, including the 101st firame, works fine in a number of other applications, including NI Vision Assistant.

 

It appears to be a resources-related bug, because if I lower the number of frames to read, say 95 rather than the full 101, it executes without error:

 

AVI2_read_frames_2.png

 

 

As you can see I am trying to use the same IMAQ handle 'frame' each time to conserve resources. Is there a memory leak or other known problem with the IMAQ AVI2 Read Frame function? This is a method I used to use with the old AVI library. Is it no longer valid?

 

 

I am using LabVIEW 2016 64bit on Windows 7, with Vision Acquisition Software Feb 2016 and Vision Development Module 2015 SP1.

 

 

Download All
0 Kudos
Message 1 of 4
(4,873 Views)

I'm aware of this thread:

http://forums.ni.com/t5/LabVIEW/reading-frames-in-avi-files/td-p/2501840

 

The solution here seems to be to revert to the old functions, but I don't really want to do that unless I have to.

 

I'd rather try and get to the bottom of this bug.

0 Kudos
Message 2 of 4
(4,871 Views)

Can you attach the 101-frame AVI?  Also, since LabVIEW 2016 isn't out (yet -- wait a week ...), your version of LabVIEW is (also almost certainly) LabVIEW 2015, possibly the Spring 2016 SP1 version.  [Had it truly been LabVIEW 2016, I would not have been able to open it with my LabVIEW 2015 SP1 32-bit.

 

Bob Schor

0 Kudos
Message 3 of 4
(4,841 Views)

Update from NI support:

 

"After looking into the forum that you mentioned, I researched internally about this error and was able to determine that this is a known issue which R&D is currently working on.

The recommended workaround  to the file size issue is currently to use the old AVI function."

 

 

Looks like this week's LabVIEW 2016 (Aug) update doesn't yet fix the problem.

0 Kudos
Message 4 of 4
(4,772 Views)