10-04-2010 11:31 AM
hi everybody,
I am facing a very annoying problem with the reading of .avi files. Read AVI example shipped with LV failed giving the following error :
"Error -1074395975 occured 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."
My avi files are 10MB big (around 2000 images) and I have no problem to read them with Windows Media Player. I also tried to read them with Vision Assistant and it succeeded. The process is a bit heavy but all images are read. I would like to reproduce this in LV given the fact that I want to programatically cut the movie by reading a database. I hope this is only a problem of memory management.
Thanks for your help. Any ideas appreciated
Christophe
10-04-2010 09:44 PM
10-06-2010 01:56 AM
Hi,
Thxs for the links. It is clear now that is a codec problem. If I use IMAQ Avi Get Info, It gives MPC Video Decoder which is not registered by IMAQ Get Filter Names. The video cannot be read but it's surprising that the Vision Assistant reads it. The camera that I use saves films as .mpg with no other solution and I converted them with a free software in .avi
I am looking at MPC Video decoder, see if I can use it in LV or find another compression system for my videos
Any ideas appreciated
Christophe
10-06-2010 03:30 AM
I have searched through the web infos about videos in general and found free videos converters or trial versions offering a large palette of codecs to convert *.mpg to *.avi. I used one given by IMAQ Get Filter Names like MJPEG Decompressor and the new .avi video can be read by LV.
I also tried to change the file extension .mpg to .avi directly in Windows Explorer. If I just go through the Windows warning and use Read AVI example.vi, it works. I do not understand why, properties of the video haven't changed (MPEG2, 720*576, 25fps etc...). LV doesn't recognize the compression filter but reads it.
Does anyone have an idea ?
Thanks
Christophe