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 KB

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

Similar Messages

  • 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?

  • Error en IMAQ AVI Read Frame

    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 KB

    vicbit ....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 error

    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

  • 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

  • Imaq erreur avi read frame

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

    What 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 Mario

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

  • Reading frames in avi files

    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.

  • 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@exc​hange.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?

  • Not enough speed when using AVI read

    Hello!
    I have a problem with the speed, when I'm using the 'AVI read' VI.
    I want to read 60 frames per second, but my test.vi allows to read at least 20 to 30 fps (->33 - 50ms loop time), even when I do it in the easiest way (only the AVIread in the loop without any analize, graphs and of course wait functions).
    The VI profiler tells me, that the AVI read VI only needs 1ms per loop. During that the CPU utilization is 10%.
    My hard disks are fast enough, because its possible to write more than 60 frames per second in real time.
    So, can anybody help me and tell me, where the VI spend its time and how to make it faster???
    Thank you,
    Gero

    Hi all,
    i just played around a bit using an advertisment video from Heineken. The default video is set to 24 fps which is displayed as expected.
    I converted the video (sadly with a not so good comporession) to 72 fps. In Windows Media Player, i'd say that the 72 fps are maintained.
    Using my Player.vi, the video is played with about 40fps on my Laptop. The CPU load is about 15%. So it seem that either my programming is bad or there is a platform dependency in the performance.
    Removing the display from the loop (so no visualisation of the video), the performance got up to near 43 fps.
    Gero, please confirm if this is the behaviour you are seeing. I asume quite an impact by different platforms, so feel free to check other systems as well.
    hope this helps,
    Norbert
    PS: I split the attachment and repacked the _fast-version using a higher compression (lossy) for a smaller file size.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    AVI Test.zip ‏3591 KB

  • 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

  • Where is IMAQ AVI Get Filter Names VI?

    I have LabVIEW 6.1 with NI IMAQ 2.6 and NI Vision 6.0.5. I'm trying to create a compressed AVI file from a camera source, and the help file states that there's something called the IMAQ AVI Get Filter Names VI that will return the filters I can use for AVI compression. This VI isn't there in my installation, though.
    Am I doing something wrong, or do I need to download something else?

    Try looking in the folder C:\Program Files\National Instruments\LabVIEW 6.1\examples\Vision\2. Functions\AVI for the AVI Compressor Comparison.llb example program. This uses the AVI Get Filter Names VI. If this is not available, then you need to upgrade to Vision 7.0 in order to get the functionality to read AVIs into LabVIEW.
    Hope this helps-
    Julie

  • Avi read write example : playback missing chunk of data at regular intervals

    Hi,
    I am writing a waveform data into avi write in order to read back (with has data input on) as in example avi read write with data shipping example but the graph played back is missing some amount of data at regular intervals and hence the waveform read back is choppy. 
    I am writing the same data into tdms also. when i read back it with tdms file viewer, it shows that it has entire data.
    note: i am writing the waveform data and avi in two seperate loops and using the porperty node value of the waveform data in the video loop in order to insert data into avi write (has data input on) and have the (wait ms multiple) input =10 in both loops
    i would like to post the video but it is 50 MB, is it possible to upload that much.
    can any one help me how/why this is happening..
    Thanks,

    Can you post a VI(s) as I have trouble understanding what you are doing
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

Maybe you are looking for

  • Premiere Pro CC won't encode anymore

    Hallo and sorry for my bad english! I'm in troubles with PPCC. I'm running the latest update. The problem is this: if i cancel a rendering during the encoding,after this operation PP won't encode anymore. I have to open a new project and import the o

  • IBooks Author does "real" 3D why doesn't Adobe

    We have been evaluating iBooks Author and it does "real" 3D. We have demo'd this using a Collada file and unlike ADPS's faux 3D it can be rotated in all direction and doesn't require the laborious creation of incrementally rotated still images. Why c

  • File Size bloating

    Hi guys, hope you can help me with this issue. I am running Designer ES version 8.2.1.5161.1.566259. I started with a form which was 1,057KB. I updated two variables in the Form Properties, saved the form and it was 2,227KB. I then replaced an image

  • Creating index on a single partition

    Is there any way in Oracle 10g to create an index on only a single partition of a large partitioned table?

  • Tab Order works in Acrobat, but not Reader?

    Using LiveCycle 8.0, I set the tab order in this fiscal chart so the order would flow in the direction of the arrows depicted in the chart below. Saved the LiveCycle doc; then I opened it in AcrobatPro 8.0 and enabled Reader usage rights. Saved file.