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.

Similar Messages

  • Write/read image to avi file, VI works incorrectl​y from the second run

    Hi everybody, in my labview I write image from IMAQ USB to avi file and read image from avi file, the VI runs correctly at the first run then after that it goes wrong, I can write/read only one frame and it terminates automatically. Does anybody know why and how to solve this?
    Thanks a lot,
    Hannah

    Without seeing your code I can't comment specifically, but if it runs correctly the first time and then stops be looking for something that is not getting reinitialized correctly. Also what exactly do you have to do to get it to work again? Close and reopen the VI? Restart LV? Restart the computer?
    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

  • My Xtreamer media player won't read srt sub files downloaded from my iMac and stored in a 1Tb seagate external disk. However, the Xtreamer Elvira media player will read all the .avi files I have loaded in the external disk. Any ideas?

    My Xtreamer media player won't read srt sub files downloaded from my iMac and stored in a 1Tb seagate external disk. However, the Xtreamer Elvira media player will read all the .avi files I have loaded in the external disk. Any ideas?

    I am experiencing the same issue with a new external DVD burner, a Sony DRX-840U. When I load a CD into this external drive it appears in iTunes but when you go to import or play the CD iTunes indicates playing or importing for each individual track for just a moment. The end result is that nothing is ever imported or played. I am experiencing this on two different systems. One a notebook running Win2K and the other a desktop running XPpro. If I use the internal DVD drives on either of these systems everything work just fine. Yet I am able to use this new external DVD drive with every other application. For example Window Media Player has no problem playing or importing the same CD that iTunes fails on. The last person indicated that if one set the DVD drive in question to be the drive of choice under preferences>advanced>burning that all was ok. I my case this Sony external drive is the drive listed as the drive of choice for burning yet the issue still exists.
    As this appears to be an issue that others are also experiencing help from Apple Tech Support would be greatly appreciated.

  • Problems with large frame uncompressed AVI files in QT 7 player

    I have just recently gone from QT Pro 6.5.2 to QT Pro 7, mainly because of the HD support.
    I have a dual boot system with QT 7 on Windows 2000, and QT 6 on Windows 98SE.
    I am having problems playing uncompressed AVI files in the QT 7 player, apparently if the frame size is large (in the example case 688 x 516).
    Sometimes I just get "error 108 unknown error" pop up when I try to load the file. Sometimes the file loads but will not play except in short bursts of movement every now and again as it moves along the timeline. Sometimes the file plays, but with one or more broad black lines across the image!
    All the problem files play perfectly in QT 6.5.2, but will not play in QT 7, which should surely play them better, not worse!
    Can anyone make any suggestion as to what's happening?
    I've uninstalled and reinstalled QT 7, which made no difference. I'm sure I don't need any extra codecs, as QT has always played RAW AVIs without anything extra before.
    Thanks in anticipation, Dave.

    I have just recently gone from QT Pro 6.5.2 to QT Pro 7, mainly because of the HD support.
    I have a dual boot system with QT 7 on Windows 2000, and QT 6 on Windows 98SE.
    I am having problems playing uncompressed AVI files in the QT 7 player, apparently if the frame size is large (in the example case 688 x 516).
    Sometimes I just get "error 108 unknown error" pop up when I try to load the file. Sometimes the file loads but will not play except in short bursts of movement every now and again as it moves along the timeline. Sometimes the file plays, but with one or more broad black lines across the image!
    All the problem files play perfectly in QT 6.5.2, but will not play in QT 7, which should surely play them better, not worse!
    Can anyone make any suggestion as to what's happening?
    I've uninstalled and reinstalled QT 7, which made no difference. I'm sure I don't need any extra codecs, as QT has always played RAW AVIs without anything extra before.
    Thanks in anticipation, Dave.

  • CS5 not reading a DV-avi file. Fine in Elements 3...

    Screenshot from Elements 3. This clip will not play in Premiere CS5. But other DV-avi files play fine in CS5, but some of them dont. Why?

    My guess would be that the clip that plays fine Elements but not in PPro is a DV AVI Type-1, which PPro does not like. PPro edits DV AVI Type-2, however, which is what I would guess the other clip is. That might explain the interleaving difference.
    Try using the GSpot utility (http://www.headbands.com/gspot) to get more information about the files than Elements is able to tell you. If it is indeed a Type-1 AVI, you can convert it to a Type-2 AVI with a number of freely available utilities. Just search for "Type-1 to Type-2 AVI converter" and you should find plenty.

  • Detect Packed Bitstream in AVI files

    Hi,
    Does anybody know of an API in Quicktime/QTKit that can be used to detect packed bitstream (b-frames) in .AVI files?
    Thanks in advance for any help or pointers that can be provided.

    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.

  • VI to AVI File

    Hello,
    I search a vi to read and write AVI file.
    I want read an AVI file and write some BMP file.
    Have you this ?
    Thanks
    Laurent

    Laurent COUVET wrote:
    > I search a vi to read and write AVI file.
    > I want read an AVI file and write some BMP file.
    By searching the Deja News archive for "avi and labview" from the main
    NI Technical Support page, I found a reference to a third-party AVI
    reader/writer:
    http://x40.deja.com/~natinst/[ST_rn=qs]/getdoc.xp?AN=568204691&CONTEXT=948764473.1675690006&hitnum=2
    The site referenced is http://www.imagemill-tech.com, and I think the
    utility provided there might require IMAQ Vision to work properly.
    There are a number of methods you can use to write a BMP file from
    LabVIEW, depending whether or not you have IMAQ Vision, what version of
    LabVIEW you have, etc. Here's the result of a search in NI's Example
    Programs Database with some of the possibilities:
    http://d
    igital.ni.com/explprog.nsf/websearch?SearchView&Query=vi%20panel%20image
    Regards,
    John Lum
    National Instruments

  • IMAQ image to array vi not working with images extracted from avi file

    Hi,
      I downloaded some avi's and uncompressed them so that I can analyze them within labview. I am trying to convert images I am reading from the avi file to an array. When I use "IMAQ image to array" I get the following error " IMAQ Image To Array  Invalid image type" -1074396080.
       I am able to display each read image and save them to the hard drive, but I am unable to convert the vision image to array. I verified that the image extracted from avi is the same as the image type I created in memory to hold the image.
      Please see the attached vi I created.
    thank you
    Ruz
    Attachments:
    example2.vi ‏62 KB

    Hi all, this thread was useful for me...but i have another doubt... when I try to extract a single plane (Luminance, Saturation, R,G,B...anyone) and try to save it in jpg as gray image, it saves an image with blue tones. I have examinated it using Matlab and checked that Red plane has low values (but not zero), the same for G plane and high values for B plane. An image of the VI is attached.
    Thanks in advance
    Attachments:
    planes.png ‏28 KB

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

  • Read an avi file using "Read from binary file" vi

    My question is how to read an avi file using "Read from binary file" vi .
    My objective is to create a series of small avi files by using IMAQ AVI write frame with mpeg-4 codec of 2 second long (so 40 frames in each file with 20 fps ) and then send them one by one so as to create a stream of video. The image are grabbed from USB camera. If I read those frames using IMAQ AVI read frame then compression advantage would be lost so I want to read the whole file itself.
    I read the avi file using "Read from binary file" with unsigned 8 bit data format and then sent to remote end and save it and then display it, however it didnt work. I later found that if I read an image file using "Read from binary file" with unsigned 8 bit data format and save it in local computer itself , the format would be changed and it would be unrecognizable. Am I doing wrong by reading the file in unsined 8 bit integer format or should I have used any other data types.
    I am using Labview 8.5 and Labview vision development module and vision acquisition module 8.5
    Your help would be highly appreciated.
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    read avi file in other data format.JPG ‏26 KB

    Hello,
    Check out the (full) help message for "write to binary file"
    The "prepend array or string size" input defaults to true, so in your example the data written to the file will have array size information added at the beginning and your output file will be (four bytes) longer than your input file. Wire a False constant to "prepend array or string size" to prevent this happening.
    Rod.
    Message Edited by Rod on 10-14-2008 02:43 PM

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

  • Delete or insert frames in an AVI file

    Hello,
    Is there any way to insert or delete frames in an aVI video, without copying the part you want in another file ?
    Thank you.

    I don't think this is possible. The only way I know to do it is to read the images from one AVI file and write the ones you want to a new AVI file.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Premiere Elements 7 won't recognise a .avi file, and only reads the audio of the file. Help?

    Hello, so here is my predicament:
    I own Premiere Elements 7, licenesed and all. Totally legit.
    It is reading .mp4 files, at least, that's the only other video file type I've used. It is reading the video of that file.
    But for some reason, when I drag a .avi file into the software, it reads the file type as 'audio' when it is obviously a video file! It doesn't recognise the video of the file at all.
    When I drag it into the timeline, it only shows the audio! Video section is empty.
    Why is this happening?
    Screenshots of the problem attached!!

    What is the source of this AVI file? Is it from a miniDV camcorder, captured over a FireWire connection?
    AVIs from non-camcorder sources can use any of thousands of codecs, most of which are not compatible with Premiere Elements. Open the file in a program like G Spot and post the specs for audio and video codecs, frame rate, dimensions, etc., and we may be able to suggest a file converter.
    http://www.headbands.com/gspot/

Maybe you are looking for

  • Can't open one project in Garageband 2

    I can open all my other projects in Garageband except for one (size is 431.2 MB on disk). This just started yesterday. A small Garageband box pops up with the moving diagonal blue & grey stripes, then just sits there until I have to close Garageband

  • Cash discount in Portugal

    Hello, I am currently implementing SBO in Portugal, they are using a lot the cash discounts, exactly as discounts linked to payment terms. I have been told that for legal reason the cash discount can not be set up as it is used to be via payment term

  • Startup disk/master password dilemma....

    Hi there, I hope someone can help me here,I`ve already looked in the relevant forums for an answer but nothing really helps. I was trying to find out why my father`s pc printer (lexmark) wouldn`t work on my G4.And I was instructed that maybe I didn`t

  • I want to delete the transactional record from database table

    Hai, I want to delete the transactional data from database table with out using the dialog programming is it there any trancation for this. for master data we have the transaction code for delete the records. The t.code is 'OBR2'. Plz help in that cs

  • IPad 2 in Russia.

    Hi! I live in Russia. I really want to buy iPad 2 and some accessories. But here in Russia iPad first generation officially was not until November 9. Apple products are only sold in small Apple shops, which are in the middle of the big electronics st