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?

Similar Messages

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

  • Using LockModeType.READ/WRITE

    What circumstances make it useful to lock individual entity instances using LockModeType.READ/WRITE? I figured that setting isolation levels would have been enough, but I guess there's a need for further locking?
    When you access an entity, isn't it locked automatically unless you're using optimistic locking? I'm pretty lost on this issue...
    Could somebody please describe when would you lock individual entities?
    Thanks.

    Hi this is my understanding although I am not an expert.
    When you have READ_COMMITTED mode it means T1 can read a value T2 can modify the same value and then commit. If T1 reads it again it will get a new value or if it commits it will overwrite the previous changes. (Non-repeatable read). You wouldn't get a dirty read although you would get non-repeatable read.
    If transaction T1 calls lock(entity, LockModeType.READ) on a versioned object, the entity manager must ensure that neither of the following phenomena can occur:
    With LockMode you get extra features.
    # P1 (Dirty read): Transaction T1 modifies a row. Another transaction T2 then reads that row and obtains the modified value, before T1 has committed or rolled back. Transaction T2 eventually commits successfully; it does not matter whether T1 commits or rolls back and whether it does so before or after T2 commits.
    P2 (Non-repeatable read): Transaction T1 reads a row. Another transaction T2 then modifies or deletes that row, before T1 has committed. Both transactions eventually commit successfully.

  • What is the best software programs that I can use to read, write and modify data / files on external HD (NTFS format i.e.  Windows) ?

    Hi guys,
    I’m new to Mac and have a MacBook Pro Lion OS (10.6.8 I think !!!) with Parallels 7 (Windows 7) installed. Can someone please tell me what is the best software program that I can use to read, write and modify data / files on external HD (NTFS format) from the Mac OS ? I heard of Paragon and Tuxera NTFS. Are they free ? Are they good ? Are there any other software programs out there ? I heard that some people have issues with Paragon.
    Thanks.

    Your best bet would be to take the drive to the oldest/compatible with that drive Windows PC and grab the files off, right click and format it exFAT (XP users can download exFAT from Microsoft) and then put the files back on.
    Mac's can read and write all Windows files formats except write to NTFS (and in some cases not read) so if you can change the format of the drive to exFAT (all data has to be remove first) then you will have a drive that doesn't require paid third party NTFS software (a license fee goes to Microsoft) for updates.
    Also it's one less hassle to deal with too.
    .Drives, partitions, formatting w/Mac's + PC's

  • 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

  • Problems with Buffered Read() - write() cycle

    URGENT!!!
    I have two network hosts communicating through Socket.
    i need a cycle of read/write until an escape string is written ("QUIT").
    BUT after first readLine() it stucks on blocking method, doesn't read anything!
    why?
    so my code look like this (i cut out initialization and boring parts):
    BufferedReader input;
    BufferedWriter output;
    String readString = "";
    while(read!="QUIT") {
    output.write("mySentence");
    readString = input.readLine();
    }THANKS

    you are all right, but I do use newLine() just to have the line separator.
    the exception is always the same (this afternoon it didn't result in an exception... ):
    java.net.SocketException: Software caused connection abort: recv failedI really can't figure it out...
    moreover, I don't understand which side generates the problem, since one side is an Applet.
    Again, the curious thing is that before the cycle they read and write (just once) normally!
    I post the actual part of the code, in order not to create misunderstandings...
    of course I used EITHER the "\n" OR the newLine() but not togheter...
    server side the method is called within a thread class...
    APPLET:
    do     {
           String letto = listaParametri.poll();
             os.write(letto);
            os.newLine();
            while( !letto.equals("LAST") );
    os.flush();
    while( this.isActive() )     {
                 received = is.readLine();
               if     ( received.equals("CHANGE") )
                              getAppletContext().showDocument(reloadURL, "_main");
                              break;
               else     if( received.equals("ALIVE") )     
                             {                               os.write("YES\n");
                               os.newLine();
                               os.flush();
                                                  }SERVER:
    while(!CLOSED)
                                         {if(CHANGE)     {
                                                         outputStream.write("CHANGE");
                                                         outputStream.close();
                                                         System.out.println("sent RELOAD comand - now Closed - );
                                                         break;
                                         else     {
                                                    outputStream.write("ALIVE\n");
                                                    //outputStream.newLine();
                                                   outputStream.flush();
                                                        System.out.println("inputStream");
                                                   appletStatus = inputStream.readLine();
                                                        System.out.println(" - appletStatus=" + appletStatus);
                                                   if( appletStatus == null )               CLOSED = true;
                                         else     if( appletStatus.equals("YES") )     CLOSED = false;

  • Using SanDisk Reader/Writer

    I cannot read a 1G xD card from my SanDisk Imagemate 8 in 1 reader/writer. I can read and transfer images from the camera to the computer but not from the SanDisk Imagemate 8 in 1 reader/writer. Is it possible this reader/writer just cannot handle a 1G xD card? The card is an Olympus MXD 1GM3 made by Toshiba. Any ideas out there? Thanks.

    SanDisk say this is a Legacy reader/writer, or something like that. Anyway, it is not designed to work with high capacity cards....

  • Problem using saxparser(reading japanese xml file)

    Hi everybody,
    I hav a problem while reading japanese xml file.(UTF-8 charset)
    I have to read the file and process it.
    But in the characters function of the saxparser(defaulthandler) the japanese chatracters are not read properly and the program is
    displaying some junk values(????) instead of the actual japanese characters.
    I am also usind xsd validation.
    I am not able to where the characters manipulation is being done.
    Please help me as soon as possible .
    Thanks in advance,
    Charan.

    There are a couple of things probably going on.
    1) When I've done things using Unicode unusual characters, they do not print properly if you do System.out.println( ). If you have a Gui panel and can put them into a JTextArea or JEditorPane, they may show up properly if you have set the font for that object to one that can display the characters.
    2) Many people starting with SAX write their code assuming that the characters method is only called once for each element that has text content. This is incorrect. The characters method can be called many times, and it is your responsibility to catch all of the data. In 1.4 you can use a StringBuffer, or in 1.5 there is a StringBuilder. You use these to accumulate the data from all of the calls to charactrers() between the startElement and endElement.
    Each parser can decide how often it calls characters, so you have to be able to process data from several calls.
    Dave Patterson

  • Problem using Adobe Reader 8.0 on nw04

    Hello,
    recently Adobe has released Reader version 8.0. It seems this is not supported by the Adobe Control provided by SAP. Is there an (ACF) update available for this?
    I have tested with nw04 - SP15 and SP18. Not (yet) with nw04s. I only got this error after i manually removed the adobe control plugin.
    For your reference the error message from the Adobe Control:
    <i>An unexpected situation has occured while downloading neccessary SAP components to your PC.
    Please have a look on the information given below.
    If this information is not sufficient to solve the problem please click on the 'Show developer traces' Button.
    This will show more detailed information which will be useful for the SAP Customer Service.
    Error description
    Neither Adobe Acrobat 6.0/7.0 nor Adobe Acrobat Reader 6.0/7.0 seems to be installed correctly.
    The SAP Adobe integration needs at least one of this products to run successfully</i>
    Thanks for your input,
    Marijn.

    Hi Markus,
    thanks for your message.  I'm sure you are already aware of the following: adobe advises users to upgrade to Reader 8.0 (or update AcroPDF.dll)
    See <a href="http://www.adobe.com/support/security/bulletins/apsb06-20.html">Security Bulletin</a>
    Regards, Marijn Sponselee
    Message was edited by:
            Marijn Sponselee
    Message was edited by:
            Marijn Sponselee

  • Parse problem using SOMSchema reading an .xsd file

              Platform: windowsXP, WLI2.1, WLS6.1sp1
              The following is extracted from a log of the sample WLI server.
              I used it as a platform for an adapter under development.
              The log shows an erronous SOMSchema after a failed creation of an application
              view.
              The cause is long before. During a parse of a schema.xsd from a file into a SOMSchema
              it loses a '/'.
              <xsd:element name="Value">
              <xsd:complexType>
              <xsd:complexContent>
              <xsd:extension base="xsd:complexType">
              <xsd:attribute name="col" use="required"/>
              <xsd:attribute name="row" use="required"/>
              </xsd:extension>
              --> <xsd:complexContent/>
              </xsd:complexType>
              </xsd:element>
              Of course I worked around by dropping the tag </xsd:complexContent/>. Without
              all parses allright.
              From the erronous SOMSchema you can derive valid DocumentRecords.
              For that reason I guess the problem is to be found in the schema package.
              

              Platform: windowsXP, WLI2.1, WLS6.1sp1
              The following is extracted from a log of the sample WLI server.
              I used it as a platform for an adapter under development.
              The log shows an erronous SOMSchema after a failed creation of an application
              view.
              The cause is long before. During a parse of a schema.xsd from a file into a SOMSchema
              it loses a '/'.
              <xsd:element name="Value">
              <xsd:complexType>
              <xsd:complexContent>
              <xsd:extension base="xsd:complexType">
              <xsd:attribute name="col" use="required"/>
              <xsd:attribute name="row" use="required"/>
              </xsd:extension>
              --> <xsd:complexContent/>
              </xsd:complexType>
              </xsd:element>
              Of course I worked around by dropping the tag </xsd:complexContent/>. Without
              all parses allright.
              From the erronous SOMSchema you can derive valid DocumentRecords.
              For that reason I guess the problem is to be found in the schema package.
              

  • Problem using PrintStream to write to file.

    I am trying to write some String data to a file.
    I have replaced System.out with a PrintStream of my own.
    When I open the file with notepad,
    there are little squared at the end of each line with text written.
    I'm guessing they have something to do with
    the default character encoding on a PrintStream Object.
    I am aware that
    "All characters printed by a PrintStream are converted into bytes using the platform's default character encoding".
    as I am aware of the "java.nio.charset.Charset "
    class. I have tryed specifying UTF-8 and US-ASII
    encoding when instantiating a PrintStream Object.
    What can I do to prevent the square being written, and just using default new lines
    there, no matter how the file is viewed?
    (my OS is Windows XP service pack 2)
    ?

    Yes, I have. And yes, one would expect.
    However, it isn't.
    This is just personal code. I am doing the following:
    import java.io.File;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import java.io.*;
    public class DomParsing {
    public static void main (String [] args)
    try
    DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = builderFactory.newDocumentBuilder();
    File file = new File("cd-catalog.xml");
    Node child = null;
    Document document = builder.parse(file);
    Node element = (Node)document.getDocumentElement();
    FileOutputStream fileStream = new FileOutputStream("SCREEN_OUTPUT.txt");
    PrintStream logger = new PrintStream(fileStream,false);
    System.setOut(logger);
    iterate(element);
    logger.close();
    fileStream.close();
    catch (Exception e)
    {e.printStackTrace();}
    //needs closer examination.
    public static void iterate(Node element)
    while(element instanceof Node)
    peekNode(element);
    peekAttributes(element);
    Node [] children = getChildren(element);
    if(children instanceof Node[])
    //Node child = ;
    iterate(children[0]);}
    element = getSibling(element);
    //Suspect may be either of those two instructions.
    if(element instanceof Node)
    //iterate(element);
    continue;
    private static Node [] getChildren(Node element)
    Node [] children = null;
    if(element.hasChildNodes())
    NodeList nodes= element.getChildNodes();
    children = new Node [nodes.getLength()];
    for(int i=0;i<nodes.getLength();i++)
    children[i] = nodes.item(i);
    return children;}
    private static Node getSibling(Node element)
    Node sibling = element.getNextSibling();
    return sibling;}
    private static void peekNode(Node node)
    if(node instanceof Node)
    if(node.getNodeName()!=null && (!node.getNodeName().equals("#text")))
    {System.out.println(new String(node.getNodeName()));
                   System.out.println();
    if(node.getNodeValue()!=null && (!node.getNodeValue().equals("#text")))
    {System.out.println(new String(node.getNodeValue()));
                   System.out.println();
    private static void peekAttributes(Node element)
    if(element.hasAttributes())
    NamedNodeMap map = element.getAttributes();
    for(int i=0;i<map.getLength();i++)
    Attr attribute = (Attr)map.item(i);
    peekNode((Node)attribute);}
    //*******************************************************************************************************************

  • Problems using avis in final cut

    hi there -has any1 else had trouble editing avi files in FCpro?
    Its a wierd 1 - when I click on the actual file it opens the video in the browser window and plays fine, but when I drop it into a squence to edit it I either get the unrendered message and beeps or a stuttering image and no sound - whats up with that?
    I've got some soft ware to conrert the avi into a mov but it takes about 2-3 hours and the files size multiplies by around 10x - not ideal!
    also once I've finished editing a file what do I have to save it as in oredr for it to work independently to the original source file (so as I can delete some of these massive .mov conversions)
    any help would be massivly appreciated
    peace - damian
    g5   Mac OS X (10.3.9)  

    sorry to be a pain but this one has got me proper stumped - I've managed to get round the sound problem by converting it to a .mov in divx doctor, but the picture is still playing up - it works fine when previewing from the browser win dow, and shows still images from the film when paused in the canvas window but when I try to play it all I get is the unrendered message.
    It seems to be doing this with files that I'm pretty sure were working last week so it maybe some thing that I've done (cant think what though)
    Any ideas guys - this is sending me round the bend man - surely it shouldn't be this hard to do something simple like splice an avi - I thought final cut was sposed to be the industry standard???
    thanx to all of Uz for the help - D
    P.s. - looked for the pixel demensions ect but dont really know what to do with them - the compressor is 3ivx mpeg-4 5.0
    and the frame size is 608 x 336 ???????

  • Need help with problem using sound and vibration examples. question repost

    I am generating a wav file using the sound and vibration example vi "SVXMPL_Wav Recorder(DAQmx)" using a ni 7422 board.  Then, using the example vi SVXMPL_Getting started with SVT(Simulated)" attempting to play back that file.  the wav file will load and play back on the graphs fine but when I click the "Play Wav File" which sends the audio to the computers speaker,  I get the error "Cannot recognise sound Format".  It plays the shipped example files fine.  I can also play the wav files I generate on a Windows audio player.  Don't know a lot about the sound and vibration toolkit or wav file formats but need to get these two to work together.  Using LV 8.5 and sound and vibration toolkit 4.0.  This is a bit of a repost of the same question ask last week but not answered.  Thanks

    Did you see Coq Rouge's reply in your original thread? Which thread are you going to continue?

  • Problems using Adobe Reader 10 in browsers

    Ok, I'm running Mac OSX Lion 10.7.2.
    I read the announcement regarding Adobe not working in Safari's browser. But I'm having
    this problem with every browser that I have tried.
    I'm trying to use my bank's website, and in order to go further I need to read a page and accept it.
    There is no way to download the PDF from them. It merely shows me a button that says I need to
    download Adobe Reader, which I have. (I have adobe reader 10)
    When I downloaded Adobe, I restarted my computer.
    When I opened my browser, it still displayed that I needed to
    download Adobe reader in order to continue. I have tried using it on
    Firefox and Chrome.
    Outside of the browser issue, Adobe works fine.

    Section 3 doesn't talk about distribution. It mentions that you can't integrate it in to other software unless you have applied for and received the Adobe Reader Integration Key.
    To do that, you can go to the following link: http://www.adobe.com/devnet/reader/ikla.html
    And don't worry about your English. Even if it was your first language, it's pretty tough to understand. Go to the link above and you'll find a ton of information in regular English rather than a bunch of legal speak. If in doubt, you'll be able to find contact information there as well.

  • Problem using internal BluRay writer.

    Used internal Blu-Ray writer on HP Envy 17t.  Files (pictures, in this cased), were burned to disk and can be readDshown on the laptop, but separate Sony DVD (with BluRay) cannot read the disk.  Any suggestions will be appreciated.

    rew_hp17t wrote:
    Used internal Blu-Ray writer on HP Envy 17t.  Files (pictures, in this cased), were burned to disk and can be readDshown on the laptop, but separate Sony DVD (with BluRay) cannot read the disk.  Any suggestions will be appreciated.What format did it use? Also it must read the format your using to be compatible. What program burned the pictures to the disc and was the disc dvd, bluray. The reason you can see it on the laptop is it recognized the format that is why you can see it the same can't be said of the Sony DVD player.

Maybe you are looking for