LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read AVI Example.vi error #1074395975

I was trying to run the  Read AVI Example.vi with those avi files shipped within Vision package. But no success.

 

While the CompressorComparison.avi showed "Error -1074395993 occurred at IMAQ AVI Open File I/O error.", all the others stated "Error -1074395975 occurred at IMAQ AVI Read Frame   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."

 

Howerver, from windows task manager, my cpu usage never exceeded 20% and I have two in my computer.

0 Kudos
Message 1 of 13
(7,012 Views)

Hello,

 

What version of the Vision Development Module (VDM) do you have? I would make sure that you have the latest version of DirectX on your PC. For Vision 8.6, you need Microsoft DirectX 8.1 or later. Do you notice a difference when you have no other applications running? If you have the system requirements to run your version of VDM, you could try repairing the installation of VDM as well. 

 

 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 2 of 13
(6,991 Views)
It's 8.5, and my DirectX is 9.0c. There's no other major programs running.
0 Kudos
Message 3 of 13
(6,979 Views)

Hello,

 

I would try repairing VDM. You can do this by following these steps:

1) Go to Add/Remove Programs in the Control Panel

2) Select National Instruments Software and then click on Change/Remove

3) Choose 'NI Vision 8.5' from the list of software and then click on Repair.

 

If a repair does not work, you could try a complete uninstall and re-insatll of VDM. I hope this helps.

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 4 of 13
(6,963 Views)

Dear Mr.Vivek,

That did not help.

I am using vision 8.6.4.

I use a webcam and capture images to avi.

Then I open the avi and check the number of frames.Up to this point ,everything works fine.

But if I want to extract a frame out of this avi,the following error comes.

 

"Error -1074395975 occurred at IMAQ AVI Read Frame

  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."

 

I am stuck with this and can you please help me.I have attached the read avi file.

This error comes even when I use the example file in the library with the avi files provided by labview.

 

Thanks and regards 

 

 

 

0 Kudos
Message 5 of 13
(6,334 Views)

I ran the VI you attached and was able to open one of the sample AVI files and extract a frame successfully. The folder I got the AVI file from was: C:\Documents and Settings\All Users\Documents\National Instruments\CVI\Samples\Vision\Images\AVIs . You can try these AVI files as well.

 

If you get this error even when using the AVI files in the folder I specified, it seems the issue is related to either the DirectX or Vision software installation on your PC. I would make sure that the DirectX  is up to date. Would you please mention the version of DirectX and the Operating System on this PC?

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 6 of 13
(6,303 Views)

Hi,

Thanks for the reply.

I have attached the Directx information with this message.

The computer bears a  labview 8.6 and vision 8.6.4.

I have even updated the directx.

Can you please suggest or can you give information about the computer's directx on which you have run my VI .

 

Thanks and Regards

 

0 Kudos
Message 7 of 13
(6,287 Views)

Hi,

 

I have the same version of DirectX on my PC as is mentioned in the text file you attached. I was using LabVIEW 2009 SP1 with Vision 2009.  I even tried this with LabVIEW 8.6 and had it working. Considering you have already tried repairing the Vision Development Module and updating DirectX, the issue may have to do with adminstrative settings on that PC or with a corruption in the operating system, LabVIEW or Vision Development Module.

 

At this point, I wouldfirst make sure you are signed in as Administrator on this PC and have complete administrative privileges. If so, I would try a complete uninstall and re-install of the Vision Development Module. If that also does not work, the issue may be to do with DirectX, which Microsoft support may be able to assist you with. 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 8 of 13
(6,265 Views)

Had same problem (sort of). Found that the first frame was impossible. So started at frame 2 and then added a little delay before reading the next. Not sure it'll solve your problem, but it's easy to try.

0 Kudos
Message 9 of 13
(5,678 Views)

Somewhat the same here... I didn't have any problems while processing some stream captured using  a webcam. Converted an MPG4 stream to AVI and this doesn't work.

 

Some frames (even frames, not frame 0) work well for the first 100 or so, then it flips to working correctly to odd frames after a while.

 

First guess it is related to interlaced data. In this case only half the frames can be read or so...

---

25+ years long fan of LabVIEW. Move to Emerson looks to be for the better! See the last posts in subscription model thread.
0 Kudos
Message 10 of 13
(5,521 Views)