IMAQ AVI Read Frame Trigger Error
I have an application that is creating avi clips of a process. This application is writing frame data which is read later in another application. It is at this point, during the reading of the data that an Error -1074396037 Trigger error is occuring. I am using IMAQ Vision 7.0 and Labview 7.0. Attached is an avi that was created. It consists of a total of 75 frames. Also attached is a simplified version of the frame read part of my application. When reading the frame data I get the error at frames 36 and 51.
I was hoping somebody could have a look and see why I am getting the error.
Terry Sopkow
Sr. Reseach Technologist
Oilphase-DBR
Attachments:
ReadFrame.zip 596 KB
Hi Terry,
I ran your program with your video and got error 1074395975 DirectX has timed out reading the avi file. I do not think there is anything wrong with your program because I ran your program with a different avi file and it worked perfectly. I also ran the shipping example Read AVI Example.vi with your video and got the same timeout error.
So there must be something wrong with your avi file. Perhaps frames 36 and 51 are missing or corrupt for some reason. Try creating the avi file again and see if you still have the same problem. If you do, then we'll have to investigate the problem with the creation of the file.
Christopher W.
Application Engineer
National Instruments
Similar Messages
-
Hello,
What does the IMAQ AVI read frame error "Trigger Time out" mean ?
Thank you.Hello Vanessa,
In some applications, when a trigger occurs after several minutes or when integration takes several seconds, the timeout parameter may be too small to wait the amount of time it takes to acquire an image. If the image you request is not ready by the timeout parameter, the acquisition code generates a timeout error.
To prevent this problem, check the acquisition status and request an image only when you know one is ready. By just checking the acquisition status and not requesting an image, you could wait indefinitely for an image without receiving an error.
Sanaa TAZI
Application Engineer
National Instruments -
Error -1074395975 occurred at IMAQ AVI Read Frame DirectX has timed out readin
When i run the "Read AVI Example" on every kind of AVI file, I get the error:
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.The forums search gives two threads talking about this error:
http://forums.ni.com/ni/board/message?board.id=170&message.id=392042&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=170&requireLogin=False&thread.id=195832
Did you allready had a look at them? -
saludos al foro...
alguien me puede ayudar con el error-1074395975 ocurred at imaq avi read frame.
tengo labview 2011
ni vision 2011
ni vision assistant 2011
directx11
adjunto una imagen del diagrama a bloques y el mensaje de error
gracias
¡Resuelto!
Ir a solución.
Adjuntos:
imagen.png 39 KBvicbit ....tal vez se podría revisar un ejemplo para la versión 2013 que podría servir ...... llamado "Read AVI File.VI" que se encuentra en la ayuda..... como menciona Omar las funciones relacionadas con el manejos de archivos AVI, fueron cambiados en la ultimas versiones asi que saldrá un poco diferente o tal vez el ejemplo no se encuentre . Yo pienso que el truco radica en el uso adecuado de los " Frames per Second" ,"Number de frames" y el "time Delay".
Algo que observe en los códigos que han subido anteriormente es que no es necesario usar dentro del ciclo la funcion "Imaq Create" ya que va a crear un espacio en memoria cada vez que se ejecuta un ciclo (Cada frame) esto no es necesario y podria afectar , además no se estan liberando estos espacios con "Imaq Dispose VI".
A continuacion la imagen del ejemplo que se encuentra en la versión 2013
en la versión 2010 se puede encontrar ejemplos también-->https://decibel.ni.com/content/docs/DOC-14904
Jonathan Cruz
CHALLENGER
K U D O S __ B I E N V E N I D O S -
IMAQ AVI Read Frame vs. IMAQ AVI2 Read Frame, no data terminal
Hi,
I just noticed when dropping a IMAQ AVI2 Read Frame vi in place of an older IMAQ AVI Read Frame vi, there is no "data out" terminal. I do make use of this feature to add data to the frames of the AVI. Is there supposed to be an alternative way to store this frame data, using the imaq image custom info perhaps?Hello David,
You are correct in that the data out terminal is no longer available in the AVI2 functions. However you can use the IMAQ Read Custom Data and IMAQ Write Custom Data functions. These allow you to write and read custom data to the IMAQ images using specified keys. In this way you can add miscellaneous data to your images for later use.
Earl C
Applications Engineer
National Instruments -
IMAQ AVI read frame performanc​e
I've been playing around with the read AVI with buffer example in the Developer Community. It reads all the frames of an AVI into memory and then plays them back at the appropriate frame rate. This works ok with very small AVI files but with anything larger it gets slower and slower until it almost stops loading the AVI. At that point it seems to be loading less than 5 frames per second and is killing my cpu. I have plenty of free RAM during this.
https://decibel.ni.com/content/docs/DOC-8479
This is the case with the play AVI example that comes with Labview too (without a buffer) which just loads and plays one frame at a time. Can someone suggest a way to improve the performance of an AVI player in Labview? My ultimate goal is to read an AVI and detect changes in motion of objects by comparing two frames at a time. These AVIs are going to be at least 5 minutes in duration at a frame rate of 30 fps.
I'm using Labview 2009 with the Vision Developer installed.
Attachments:
image_png.png 77 KBVTKim wrote:
Hi,
One thing we could implement is a compression filter that is on the IMAQ AVI Create VI used in conjunction with the IMAQ AVI Get Filter Names VI. Also, what is the RAM available on your computer and what size images are you acquiring and saving to AVI? Thanks!
Kim
Thanks for replying. I'm running labview 2009 on a dual core pentium 2.3 GHz with 4 Gigs of ram. It typically has 2 Gigs free while running the program.
I'm not tryingt write an AVI, I'm trying to read an AVI. The frames are 352 x 240 in size. I've tried several read AVI examples and they all act the same way. They slow down quickly and the hard drive and CPU are really cranking away. -
Voici l'erreur que j'ai sur mon VI si vous pouvez me renseigner se seraiat cool merci.
L'erreur -1074396010 s'est produite à : IMAQ AVI Read Frame
Solved!
Go to Solution.Bonjour,
Cette erreur a été corrigé dans la version 2012 SP1 (12.1) du logiciel.
Je suppose que vous avez une version antérieure ?
Cordialement,
Maxime G. | Application Engineer
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
LabVIEW Tour
Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014 -
IMAQ AVI - What is "frame read lookahead"?
Hi,
I'm using The IMAQ AVI Read Frame function, and just wondering what the "frame read lookahead" input actually does. The documentation is very vague.
ThanksWhat is vague about it? What additional information do you need?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
"IMAQ AVI Create" not found under menuitem "AVI" (IMAQ 2.6)
Does anyone know why the Libs. "IMAQ AVI Create ,IMAQ AVI Open ,IMAQ AVI Read Frame ,IMAQ AVI Get Filter Names" are not located in the "AVI" menu ? (IMAQ 2.6)
Thanks MarioThe AVI VIs should be located there, if they are not there was probably a problem with your installation. Launch the installer again by going to Add/Remove Programs and selecting National Instruments Software. From there another menu will open showing most of your NI software. Select on NI-IMAQ 2.6 and select modify. Double check that support for your version of LabVIEW is selected, and proceed with the rest of the install. If you are still having problems, I suggest calling going to www.ni.com/support and getting a hold of NI Tech support.
-
When reading large AVI files, I get an error when trying to read frame 870 or higher:
Error -1074395967 occurred at IMAQ AVI2 Read Frame
Possible reason(s):
IMAQ Vision: (Hex 0xBFF604C1) Error reading AVI frame
Is this a limitation of the system? I have the problem even when using the AVI read example.
Solved!
Go to Solution.I have to disagree. I do not use old functions. The test program is very simple (see the picture). But video contains over 60,000 images (640x480, 8-bit grayscale, no compression). This example hangs on image 3474.
-
MPEG Streamclip 1.8 error message "can't read frame size"
I receive message "Error: cant read frame size" after importing a QuickTime Movie file into MPEG Streamclip and choosing File-> Export to QuickTime as suggested in another forum to resolve the problem of no sound when importing a still camera QuickTime Movie file like the following into iMovie.
(MPEG Streamclip imports the sound but no video.)
Bottom line, how do I get the video and sound together in iMovie or Final Cut Express?
Stream: Louie&Sarful 3345.mov
Path: ~/Movies/Sarful & Louie/Louie&Sarful 3345.mov
Type: MPEG elementary stream
Duration: 0:00:53
Data Size: 0.49 MB
Bit Rate: 0.08 Mbps
Video Tracks:
DV/DVCPRO - NTSC, 720 × 480, 29.97 fps, 28.77 Mbps
Audio Tracks:
192 MP2 mono, 32 kHz, 64 kbps
Stream Files:
Louie&Sarful 3345.mov (2.13 MB)
I'm trying to resolve the problem of no sound when importing/opening still camera movie files like this into iMovie or Final Cut Express.
iMac5,1 IC2D Mac OS X (10.4.8) 1 GB 2.16 GHZRef Bottom Line
Solved my problem by opening the file in MPEG Streamclip and choosing Demux to AIFF and saving the AIFF file to the same folder as the original, then drag the AIFF file to the sound track in iMovie and the original file to the video track.
iMac5,1 IC2D Mac OS X (10.4.8) 1 GB 2.16 GHZ -
Frame timeout error using Configure Trigger3.vi
Hi all,
I'm triggering the frame capture of an .avi with an RTSI connection. However, I keep getting a frame timeout error when I use the IMAQ Configure Trigger3.vi. I don't get any timeout errors when I just use the IMAQ Generate Pulse3.vi but I am trying to sync the frame capture to an optical switch. If I just use IMAQ Generate Pulse3.vi, I get a .avi but the frames are completely out of sync with the switch, but if I use both IMAQ Generate Pulse3.vi and Configure Trigger3.vi I get nicely separated images but it takes an age and ends up in a timeout error.
I want to capture e.g. 500 frames, over the course of 2 s - so I've set my frame timeout to be 2000. At my current acquisition rate (31680 Hz per line (1024 pixels)) 500 frames corresponds to a total of 1.578 s (images are 100 pxls in height). This is much less than the total scanning time. Where am I going wrong?
Thanks in advance for your help.
Miika
Attachments:
screen.png 32 KBHey Miika
What are the hardware you are using. These vi's only work with specific hardware and this may be why they are not functioning correctly. For example the Configure trigger3 vi only works with the following PCIe-1427, PCIe-1429, PCe-1430, PCIe-1433.
Matthew Trott
Applications Engineer
National Instruments UK
www.ni.com/ask -
Imaq avi get info do not retrieve any info
Hi everyone,
I have some trouble with the vision VI IMAQ AVI get info,
everything was working well then I don't know what happened but the VI does not retrieve any information on any files, and I get the following error:
Error -1074395993 occurred at IMAQ AVI Open
Possible reason(s):
IMAQ Vision: File I/O error.
I need the framerate, Width, height and number of frame from this VI or else I cannot develop my application.
it only returns 0 on all values but the number of frames which is not correct 4294967295
I am thinking I might have broken the vision library.
Thanks for your help.Sorry for the multiple message,
I have found why it did not work it was not the imaq get file info but the IMAQ AVI Open VI that does not like the path string given by the open/Create/Replace File VI.
If you have any idea why it would be appreciated.
Thanks.
Attachments:
Open Avi.vi 22 KB -
Problems using AVI read/write example
I would like to test some vision processing software I wrote by reading an AVI file rather than a live stream. I found the "AVI read/write example" mentioned on this forum and it sounds like exactly what i need, but I cannot get it to read my avi files. When I run the example read VI, it says "An exception occured with the external code called by a call library node". Doing further testing, I found one AVI on my computer that would work, all others crash the VI. Another odd behavior is that the "avi init read" subvi will return the wrong frame rate for some AVIs. I have tried both compressed and uncompressed AVIs all in RGB format. I have also tried different frame rates and encoding options for my AVI file with no luck. I am just a stud
ent, so buying software is not an option for me.
Has anyone had problems reading AVIs with this? Are there AVI encoding options that will make this VI work?Hello,
I think the avi functions that you get are VFW based, it can not read
any format of compression codec. But it should be able to read
uncompressed AVI files. But anyway, if you can't get IMAQ-vision 7.0
avi functions to try (I don't have, I don't know how it works), you
can always get my IVision to try out. In IVision, there are two groups
of avi functions. One is called "AVI functions", they are VFW based,
so not always work for all kind compressed avi files, but I have
another group called "Media files", the functions there work for all
format compressed AVI files, including mpeg, asf, avi... you can
access the frame image by using a callback vi (example included), seek
the media position, change play rate, etc.
Go to get a download at:
http://www.hytekautomatio
n.com/Products/IVision.html
Irene
excube wrote in message news:<50650000000800000028B00000-1068850981000@exchange.ni.com>...
> I would like to test some vision processing software I wrote by
> reading an AVI file rather than a live stream. I found the "AVI
> read/write example" mentioned on this forum and it sounds like exactly
> what i need, but I cannot get it to read my avi files. When I run the
> example read VI, it says "An exception occured with the external code
> called by a call library node". Doing further testing, I found one AVI
> on my computer that would work, all others crash the VI. Another odd
> behavior is that the "avi init read" subvi will return the wrong frame
> rate for some AVIs. I have tried both compressed and uncompressed AVIs
> all in RGB format. I have also tried different frame rates and
> encoding options for my AVI file with no luck. I am just a student, so
> buying software is not an option for me.
>
> Has anyone had problems reading AVIs
with this? Are there AVI encoding
> options that will make this VI work? -
I am trying to move a video file onto final cut pro to edit and I either get a unkown error or frame rate error. I have 3 files from the same camera and the others transferred just fine. I have tried to convert to .mov or .avi, but nothing works. Any suggestions?
Thanks!
IndyOpen an H.264 video codec file on two machines (one of which is more powerful than your current one) and compare the data viewed in the Movie Info (Command-i) window.
QuickTime, by design, drops frames to insure playback. You'll see the same issue when viewing any HD movie trailers. I get poor frames rates from anything above 480.
Newer HD (1080i) videos may play at less than one tenth of the designated frame rate on older machines even though they use data rates that should (technically) supported.
Blame it on advances in computers. I remember 90X60 "videos" at 8 frames a second that would "stall" during playback. Now we all want HD movies.
Maybe you are looking for
-
HTML Tags in HTMLB or How to shrink HTMLB ?
Hi, I have a JSP page using HTMLB tags, which works fine in EP5. I am migrated this JSP in EP6 SP6 and now it gives me the following message: Error in executing a process for compilation, C:/usr/sap/EP6/JC00/j2ee/cluster/server0/apps/sap.com/irj/serv
-
i backed up my iphone to itunes and tried restoring the info on to a new iphone and for some reason it used an old back up from last may. I know that the recent back up worked as I used it to set up another phone a week ago (a phone whihc also had p
-
Amount field with dollar symbol?
Hello I have a AMOUNT field on my_form. Because of good compatibility/data transfer i have defined it as a DECIMAL FIELD 12,3. Data transfer is btwn my_form and back end system SAP / Oracle. Fine. But, user want to have the below requirement: Say, fo
-
How can I download IDM 8.0 or IDM 8.1?
Hi , I want to use IDM8.1.1. But The IDM 8.1.1 is a update package. It is not a fresh install. So I need IDM 8.0 or IDM 8.1. Thanks, Tiger
-
Any Userexit & BADI for transaction VB(7 during final settlement
Hi SAP GURUS, I have checked no user exit and BADI. Any Userexit & BADI for transaction VB(7 during final settlement. During final settlement of rebate, I have to change the amount from KONP table in transaction VB(7 . Let me know the userexit and BA