Using Extract to create AVI produces flickering

I have an application where I would like to view the image live on the screen but then at will be able to record an AVI for a period of time. I have used a buffer setup to minimize resources (as this is a part of a bigger control system). My problem is when I initiate the avi loop, I create a file and then continue with the recording, what happens is there will be flickering at the begining and then it quits. Attached is an example of what I an trying to do.
Attachments:
AVI_Example.vi ‏106 KB

Terry,
Your biggest problem is that you are using the loop index to select which frame to display. The vision acquisition is going to run much faster than the AVI creation, so you won't be able to keep up with it. Whenever the acquisition laps the AVI creation, you will get a jump in the image. If instead you use Status to get the last valid frame, you can always be displaying the current image.
There are a couple of solutions. If you are doing short enough loops that you can keep them all the images in memory at the same time, you can just set up a large buffer and stop acquisition after the desired time, then write the buffers to the AVI at your leisure.
If you need to store images over a long period of time, you are going to end up losing images.
In this case, you should use Status to find out what the last valid frame is, and write it to the AVI. You probably will want to figure out how long the AVI takes, and select images that are equally spaced. You could use the skipcount when setting up the buffer so that the acquisition becomes slower than the AVI.
Bruce
Bruce Ammons
Ammons Engineering

Similar Messages

  • Using JMF to create AVIs

    Hello all, I am new to JMF and I was wondering if anyone could point me in the right direction of using JMF to create AVIs on the fly... I have short [ ] buffers that contain image data, and i need to convert this into an .avi file, but i will not have the buffers all at once, but rather will be passing them one at a time. So i need the avi renderer/writer to be able to handle incremental input of buffers, frame by frame.
    if anyone could give me a hand or tell me where to look, i would be much obliged!
    thanks so much,
    ben

    sheik2311 wrote:
    I must do it in Applet since it should work on the web.Actually, no...if it "should work on the web", it either needs to be an applet (pain in the butt for JMF development) or a WebStart application (not a pain in the button). I'd personally recommend using a web start application to avoid all of the hassles of trying to put JMF in an applet.
    Second, I'm not sure where your sample code came from, but you definately need some more robust sample code to work with...so...in the order you should play with them...
    To show a video in a Swing component
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/SwingJMF.html]
    To transmit audio/video
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVTransmit.html]
    To receive audio/video
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVReceive.html]
    To save a received video to disk
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/RTPExport.html]
    To show and record video
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JVidCap.html]

  • How To: Use FCPX to create iPhone Portrait Movies (and other non-standard formats)

    Goal: Use Final Cut Pro X 10.0.7 to produce a 640x1136 video (iPhone 5 Portrait). You can use these same steps to produce virtually any dimensions you want. My example is for the iPhone 5, in Portrait mode.
    This information is available in various places, but you have to realy work to find it, so I thought I'd post a step-by-step guide here.
    By the way, you might think you could just create a FCPX Project with your desired dimensions, but you can't (at least with 10.0.7). Projects only support certainly dimensions. But there are other ways, as the rest of this post describes:
    1) Create an initial movie with the desired dimensions, to serve as a template. We'll call it "Template.mov". The only thing that matters is the dimensions. It can be in any codec FCPX understands, and virtually any length.
    I'm using a 2 second video shot on my iPhone for the template. You could also create a blank image (.png, whatever) with the proper dimensions, copy and paste it into a new Quick Time Pro 7 window, and Export it using custom settings. There's lots of different ways to do this.
    2) Drop Template.mov into a FCPX event.
    3) Select Template.mov in the Event browser, and select File->Duplicate (or command-D). You probably could just edit "Template.mov", but it's a good idea to save it for reuse.
    3) Change the name of the copied video. I'm using "iPhone Video".
    4) Right-click "iPhone Video" and select "Open in Timeline".
    5) If you made the Template video from a still image, you may need to change the duration (ctrl+D). You don't have to make it very long, but it needs to be longer than 1 frame. A few seconds should be enough.
    6) Use this timeline like you'd use a project's timeline. Drop in new content, trim, transition, etc. There may be things you can't do in it, but I haven't found any yet. I'm guessing Chapters may not work, but I haven't tried them.
    7) Note that when you drop new content into the timeline, it may size funny. That's because the default setting for "Spacial Conform" is "Fit". Simply select the newly-dropped content, and in the Video settings inspector, scroll down to "Spacial Conform" and change it. You could use "Fill", which fills the frame vertically, or "None", which uses the source's original height. Then crop/transform/whatever to get what you want.
    8) When you're ready to render, select "iPhone Video" in the Event browser, then use the "Share" button. You want to use the "Export File" destination, which you may have to add. Pick your codec, and let 'er rip.
    9) When the rendering is done, you should have a video in your desired dimensions.
    That's all there is to it. Hope this helps someone.
    Dan
    PS: Don't ask why someone would want to create an iPod video using FCPX. The point is that you may need to create a video with non-standard  dimensions at some point in time, and this is how to do it.
    PPS: Most of this information came from http://library.creativecow.net/articles/payton_t/FCPX_Custom-Resolution-Timeline s/video-tutorial. I just wrote it down, while I tried to do what the video suggested.

    Instructions for using QuickTime Pro 7 to create a template video with unusual dimensions.
    I suspect that anyone savy enough to be using FCPX has probably already figured out how to do this, either using my technique or another, so there probably isn't a real need for me to post this. For that matter, I may be the only person who cares about this at all. However, while I was trying to learn how to do all of this, I would have really appreciated having all the information in one place, so here goes.
    If you want to create a video with unusual dimensions (like 640x1136) using my steps above, you'll need a "template" video first. Here's an easy way to create one, using any image editor, and QuickTime Pro 7.
    1) Open QuickTime Pro 7 (QTP for short).
    2) From the menu, select File->New Player. You'll get a window with just the bottom portion of the player, i.e. the playback controls.
    3) Using an image editor, create a still image in the desired dimensions. You can use any image editor. It doesn't matter what the image contains (although it will end up showing as a thumbnail in FCPX).
    4) Copy the image to the clipboard.
    5) Switch back to QTP, and paste the image into the new player. Don't worry that there isn't a video window showing - just paste it into the window that has only playback controls. As soon as you do, the video window appears.
    6) Advance to the end of the movie (the short, 1-frame movie), then hold down Command+V (paste) and keep holding it down to paste multiple images in. Watch the time advance. You could, if you want, just hold down Command+V until you get the length you want. But if you want a long video, there's an easier way:
    7) When you reach a few seconds (or whatever duration your patience allows), select all (Command+A) and copy (Command+C). Then hold down Command+V to keep pasting in the longer clips. Wait until you reach a longer duration, then repeat the process. So, for example, 1 second, then 10 seconds, then 1 minute, then 10 minutes, then 1 hour. Or whatever you want.
    8) Save the video however you want. I usually use File->Export with H.264, with Quality set to "Least". Just make sure you don't let it change the dimensions. If you resized the player window, depending on which "save" or "export" method you've chosen, it might default to the resized dimensions, so double check that to make sure.
    That's it. You now have a template video you can use with my previous post(s).
    Dan

  • Error creating avi file

    I use Flash Cs4 and all of a sudden when I try to export to avi I get "error creating avi file." Any ideas why or how to fix this? I can still export to quicktime.
    thanks

    I ended up reinstalling my hard drive to fix this. If you uninstall/reinstall flash it doesn't help. I think it is something outside of flash with the video settings but that is how I fixed it.

  • Is it possible to extract vacacy created in Global HR or provide a link to 3rd party system on vacancy card?

    Hi,
    We have a client requirement either to extract vacacy created in Global HR or provide a link on vacancy card to 3rd party system ?
    Regards,
    Manoj

    Generally integration would be done using web services, the available web services are documented in OER. I am not familiar enough with HCM functionality to comment on the specific feature, I will ask a colleague to comment.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • My camera creates .avi files, imovie can't read them

    I have a camera that creates .avi files and I wanted to use imovie if possible or another software to create movies if imovie won't work, can anyone suggest what I need to do?

    Video Tracks: ?, 640 × 480, 30 fps, 1.84 Mbps
    The video codec is not recognized. Very likely a proprietary format that is only works with Windows. You need someone who can read the files on a Windows system and convert them to an industry standard codec such as DV.
    Who is the manufacturer and what is the model number of this camera?

  • How to capture all the values(occurrence) using Extraction Rules(correlation) in VSTS web test?

    Hi,
      I am using VSTS 2010 for performance testing and have a question about Extraction Rules functionality.  Requirement below.
    Example :
    Server Response
    <a>1</a>
    <a>2</a>
     <a>3</a>
    <a>...</a>
    we need to capture all the values with same left and right boundary. Along with the number of occurrence from the response. We need pass a random value in the
    index where the index value will be between 0 - count of values with same left and right boundary.
    How to find out the count of values with same left and right boundary.

    Thanks for Adrian's help.
    Hi PChav,
    Based on your issue, I think that the Adrian's suggestion is useful for you, so I suggest you could refer the Adrian's suggestion to check your issue.
    In addition, I suggest you could also try the rogeorge's suggestion to create a custom extraction rule to do this.
    Reference:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ccff9f7a-d5bc-45d5-80eb-c83f9fc0e103/how-to-capture-all-the-valuesoccurrence-using-extraction-rulescorrelation-in-web-test?forum=vstswebtest
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • A doubt in xml ..should i use extract or make my own plsql function..

    I am using apex.. and fetchiNG data in xml format..
    Now in plsql ..There are functions ..like extract which can be used to extract the values..
    But i find it difficult to understand
    since i find making a function which shall use substring and instr to find the value .. .
    Wait let me show you the example of xml..data
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <CraftyResponse>
    <address_data_paf_compact>
    <thoroughfare_count>1</thoroughfare_count>
    <thoroughfare>
    <delivery_point_count>5</delivery_point_count>
    <delivery_point>
    <organisation_name>THE BAKERY</organisation_name>
    <department_name/>
    <po_box_number/>
    <building_number>1</building_number>
    <sub_building_name/>
    <building_name/>
    <udprn>12345678</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FILMS R US</organisation_name>
    <department_name/>
    <po_box_number/>
    <building_number>3</building_number>
    <sub_building_name/>
    <building_name/>
    <udprn>12345679</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FAMILY BUTCHER</organisation_name>
    <department_name/>
    <po_box_number/>
    <building_number>7</building_number>
    <sub_building_name/>
    <building_name/>
    <udprn>12345680</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name/>
    <department_name/>
    <po_box_number/>
    <building_number/>
    <sub_building_name/>
    <building_name>BIG HOUSE</building_name>
    <udprn>12345681</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name/>
    <department_name/>
    <po_box_number/>
    <building_number>17</building_number>
    <sub_building_name/>
    <building_name>LITTLE COTTAGE</building_name>
    <udprn>12345682</udprn>
    </delivery_point>
    <dependent_thoroughfare_name/>
    <dependent_thoroughfare_descriptor/>
    <thoroughfare_name>HIGH</thoroughfare_name>
    <thoroughfare_descriptor>STREET</thoroughfare_descriptor>
    </thoroughfare>
    <double_dependent_locality/>
    <dependent_locality>CRAFTY VALLEY</dependent_locality>
    <town>BIG CITY</town>
    <postal_county>POSTAL COUNTY</postal_county>
    <traditional_county>TRADITIONAL COUNTY</traditional_county>
    <postcode>AA1 1AA</postcode>
    </address_data_paf_compact>
    </CraftyResponse>
    Now how do i extract values of town, postal_country building_name,
    I know we can use extract to get the result ..But how exactly to use extract here I dotn know..
    The other method is a easier method.. which involves creating your own function which uses substr ..and instr
    It shal lsearch for <organisation_name> and find the orgonizatio..
    I dont know which approch is betTER .. I find making my own customised function a easier and better way..
    But any one has idea on extract function ..please let me know..
    Db version is 11g
    Any information shall be appreciated
    Thanks

    Hi Thanks Marco, and odie
    Tried it.. some synatx issues..
    Was trying to understand about these functions..
    This is the structure of my table ..
    desc xml_data_tab
    Name Null Type
    XML_DATA XMLTYPE()
    This is the xml data
    <?xml version = '1.0' encoding = 'UTF-8'?><CraftyResponse>
    <address_data_paf_compact>
    <thoroughfare_count>1</thoroughfare_count>
    <thoroughfare>
    <delivery_point_count>5</delivery_point_count>
    <delivery_point>
    <organisation_name>THE BAKERY</organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>1</building_number>
    <sub_building_name></sub_building_name>
    <building_name></building_name>
    <udprn>12345678</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FILMS R US</organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>3</building_number>
    <sub_building_name></sub_building_name>
    <building_name></building_name>
    <udprn>12345679</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FAMILY BUTCHER</organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>7</building_number>
    <sub_building_name></sub_building_name>
    <building_name></building_name>
    <udprn>12345680</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name></organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number></building_number>
    <sub_building_name></sub_building_name>
    <building_name>BIG HOUSE</building_name>
    <udprn>12345681</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name></organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>17</building_number>
    <sub_building_name></sub_building_name>
    <building_name>LITTLE COTTAGE</building_name>
    <udprn>12345682</udprn>
    </delivery_point>
    <dependent_thoroughfare_name></dependent_thoroughfare_name>
    <dependent_thoroughfare_descriptor></dependent_thoroughfare_descriptor>
    <thoroughfare_name>HIGH</thoroughfare_name>
    <thoroughfare_descriptor>STREET</thoroughfare_descriptor>
    </thoroughfare>
    <double_dependent_locality></double_dependent_locality>
    <dependent_locality>CRAFTY VALLEY</dependent_locality>
    <town>BIG CITY</town>
    <postal_county>POSTAL COUNTY</postal_county>
    <traditional_county>TRADITIONAL COUNTY</traditional_county>
    <postcode>AA1 1AA</postcode>
    </address_data_paf_compact>
    </CraftyResponse>
    Edited by: susf on Aug 29, 2012 7:00 PM

  • How To: Use reflection to create instance of generic type?

    I would like to be able to use reflection to instantiate an instance of a generic type, but can't seem to avoid getting type safety warnings from the compiler. (I'm using Eclipse 3.1.1) Here is a trivial example: suppose I want to create an instance of a list of strings using reflection.
    My first guess was to write the following:
    Class cls = Class.forName("java.util.ArrayList<String>");
    List<String> myList = cls.newInstance();The call to Class.forName throws a ClassNotFoundException. OK, fine, so I tried this:
    Class cls = Class.forName("java.util.ArrayList");
    List<String> myList = cls.newInstance();Now the second line generates the warning "Type safety: The expression of type List needs unchecked conversion to conform to List<String>".
    If I change the second line to
    List<String> myList = (List<String>)cls.newInstance();then I get the compiler warning "Type safety: The cast from Object to List<String> is actually checking against the erased type List".
    This is a trivial example that illustrates my problem. What I am trying to do is to persist type-safe lists to an XML file, and then read them back in from XML into type-safe lists. When reading them back in, I don't know the type of the elements in the list until run time, so I need to use reflection to create an instance of a type-safe list.
    Is this erasure business prohibiting me from doing this? Or does the reflection API provide a way for me to specify at run time the type of the elements in the list? If so, I don't see it. Is my only recourse to simply ignore the type safety warnings?

    Harald,
    I appreciate all your help on this topic. I think we are close to putting this thing to rest, but I'd like to run one more thing by you.
    I tried something similar to your suggestion:public static <T> List<T> loadFromStorage(Class<T> clazz) {
        List<T> list = new ArrayList<T>();
        for ( ...whatever ...) {
           T obj = clazz.newInstance();
           // code to load from storage ...
           list.add(obj);
        return list;
    }And everything is fine except for one small gotcha. The argument to this method is a Class<T>, and what I read from my XML storage is the fully qualified name of my class(es). As you pointed out earlier, the Class.forName("Foo") method will return a Class<?> rather than a Class<Foo>. Therefore, I am still getting a compiler warning when attempting to produce the argument to pass to the loadFromStorage method.
    I was able to get around this problem and eliminate the compiler warning, but I'm not sure I like the way I did it. All of my persistent classes extend a common base class. So, I added a static Map to my base class:class Base
       private static Map<String, Class<? extends Base>> classMap = null;
       static
          Map<String, Class<? extends Base>> map = new TreeMap<String, Class<? extends Base>>();
          classMap = Collections.synchronizedMap(map);
       public static Class<? extends Base> getClass(String name)
          return classMap.get(name);
       protected static void putClass(Class<? extends Base> cls)
          classMap.put(cls.getName(), cls);
    }And added a static initializer to each of my persistent classes:class Foo extends Base
       static
          Base.putClass(Foo.class);
    }So now my persistence code can replace Class.forName("my.package.Foo") with Base.getClass("my.package.Foo"). Since Foo.class is of type Class<Foo>, this will give me the Class<Foo> I want instead of a Class<?>.
    Basically, it works and I have no compiler warnings, but it is unfortunate that I had to come up with my own mechanism to obtain a Class<Foo> object when my starting point was the string "my.package.Foo". I think that the JDK, in order to fully support reflection with generic types, should provide a standard API for doing this. I should not have to invent my own.
    Maybe it is there and I'm just not seeing it. Do you know of another way, using reflection, to get from a string "my.package.Foo" to a Class<Foo> object?
    Thanks again for your help,
    Gary

  • How can I use iWeb to create website that contains a lot of downloadable audio files?

    Hi
    How to use iWeb to create a website that contains a downloadable audio files.  I'm uloading about 15 GB of audio files.  I need to creat folders "albums" and then put the files in these folders.   Any advise?
    Thank you very much for your time to this
    W B

    The important thing is not to put the audio files directly into iWeb: if you do that then every time iWeb decides it needs to upload the entire site you will find yourself uploading all 15GB of audio files, which won't make you happy. Start by uploading the files to the server - in folders as suits you - and then link to them in iWeb.
    If you want them to download rather than play, you may be able to set up an .'htaccess' file in the folder which will force a download - it depends on whether your hosting service will allow this. The method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/missing/download.html
    Here is an example of a simple link which produces a download (without the process described the audio file would play in the browser in a blank page):
    http://rfwilmut.net/stars/dawson2.mp3
    Then all you need to do is to provide a link, designed however suits you, in your iWeb page. If your server won't allow the .htaccess file then you will have to ask visitors to control-click (Mac) or right-click (Windows) on the link and choose 'Download linked file' or equivalent - not so convenient; or otherwise zip the files first, which won't much reduce their size but will force a download (and of course the recipients will have to unzip them).
    If you want the files to play in a player in the page, you can use an html snippet to provide a player as described in this page (you will also need to upload a script to the webspace - this is provided in the page):
    http://www.wilmut.webspace.virginmedia.com/notes/qtembed.html

  • Using Extracts in Reports

    How to use extracts in report Programming?

    Writes all fields of the field group fg (see FIELD-GROUPS) as one record to a sequential dataset (paging). If a field group HEADER has been defined, its fields prefix each record to form a sort key. You can then sort this dataset using SORT and process it with LOOP ... ENDLOOP. After this, EXTRACT cannot be executed again.
    As soon as the first dataset for a field group has been extracted with EXTRACT, the field group cannot be expanded using INSERT. The field group HEADER, in particular, cannot be expanded after the first EXTRACT (regardless of field group).
    Large extract datasets are not kept in main memory; instead, they are written to an external help file. You can specify the directory in which this file is to be stored using the SAP profile parameter DIR_EXTRACT. By default, the system uses the SAP file directory SAP profile parameter DIR_DATA).
    Filling an Extract with Data
    Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:
    EXTRACT <fg>.
    When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset.
    Each extract record contains exactly those fields that are contained in the field group <fg>, plus the fields of the field group HEADER (if one exists). The fields from HEADER occur as a sort key at the beginning of the record. If you do not explicitly specify a field group <fg>, the
    EXTRACT
    statement is a shortened form of the statement
    EXTRACT HEADER.
    When you extract the data, the record is filled with the current values of the corresponding fields.
    As soon as the system has processed the first EXTRACT statement for a field group <fg>, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups <fg> and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.
    By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.
    Assume the following program is linked to the logical database F1S.
    REPORT demo_extract_extract.
    NODES: spfli, sflight.
    FIELD-GROUPS: header, flight_info, flight_date.
    INSERT: spfli-carrid spfli-connid sflight-fldate
            INTO header,
            spfli-cityfrom spfli-cityto
            INTO flight_info.
    START-OF-SELECTION.
    GET spfli.
      EXTRACT flight_info.
    GET sflight.
      EXTRACT flight_date.
    There are three field groups. The INSERT statement assigns fields to two of the field groups. During the GET events, the system fills the extract dataset with two different record types. The records of the field group FLIGHT_INFO consist of five fields: SPFLI-CARRID, SPFLI-CONNID, SFLIGHT-FLDATE, SPFLI-CITYFROM, and SPFLI-CITYTO. The first three fields belong to the prefixed field group HEADER. The records of the field group FLIGHT_DATE consist only of the three fields of field group HEADER. The following figure shows the structure of the extract dataset:

  • I have iWork '06 on my Mac (running OS 10.6.8). Will I be able to use the Keynote files it produces with the Keynote iPad app?

    Hi,
    I have iWork '06 on my Mac (running OS 10.6.8). Will I be able to use the Keynote files it produces with the Keynote iPad app?
    Thanks,
    Mark

    You probably can open the Keynote '06 files with Keynote for iOS but not the other way around. Files created by the iOS iWork apps can only be opened by iWork '09 apps on the Mac.

  • How to extract keyframe from AVI and MPG

    Hi guy,
    I'm Marco and I'm using JMF; I need for an help because I don't know how to extract keyframes from AVI and MPG files.
    I'm using the code posted in this forum for extracting all frame in a video with the adding of an if expression that in the accessFrame method that I report below:
    void accessFrame(Buffer frame) {
    BufferToImage stopBuffer = new BufferToImage((VideoFormat) frame.getFormat());
    Image stopImage = stopBuffer.createImage(frame);
    try {
    BufferedImage outImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_RGB);
    Graphics og = outImage.getGraphics();
    og.drawImage(stopImage, 0, 0, size.width, size.height, null);
    Iterator writers = ImageIO.getImageWritersByFormatName("jpg");
    ImageWriter writer = (ImageWriter) writers.next();
    File f = new File(frame.getSequenceNumber() + ".jpg");
    {color:#ff0000}
    if ((frame.getFlags() & Buffer.FLAG_KEY_FRAME) != 0){{color}
    {color:#ff9900}
    ImageOutputStream ios = ImageIO.createImageOutputStream(f);
    writer.setOutput(ios);
    {color}
    {color:#ff9900}
    writer.write(outImage);
    ios.close();}
    } catch (IOException e) {{color}
    System.out.println("Error :" + e);
    So, I'm able to extract some keyframe, but i'm not sure it is the correct way and my dubt grows out of the fact that without the if expression highlighted in red, it seems that I have more keyframes (those ones with flag ==1040). Another problem is that it works only with AVI because MPG instead of 1040, they have alternate sequence of 32 and 1056.
    Cheers and thank u
    Marco

    my email-id is [email protected].. anyone plz send me the codings for extracting all the frames from a video..

  • Using captured analogue video (avi) files

    I have captured analogue video from an old camcorder via  pp6 .and  use cs4 to edit and produce dvd.
    However , no matter what the settings  set  in the capture project the frame size remains at 320 x 240 with the  cs4 sequence  set at 720 x 576
    Tried lots of changes in the  original capture and to the cs4 settings but cannot find solution.
    I have previously successfully done this operation but cannot repeat it.
    Maybe a very simple answer .
    Can anyone help.

    What conversion hardware are you using, and what are the camera settings when you play the video to go to the capture device?
    I used to use a Pinnacle DV500 card and the settings for DV AVI were for 720x480

  • How can I use sdk to create a dll?

    I would like to extract text with it's coordinates using Acrobat SDK (I think I can use PDEdit API).
    Can I use my plug-in like a dll?
    I want to use it from the external application.
    Thank you.
    Tanya

    How can I use java to create a shortcut on a surfers
    desktop?
    A surfer clicks on a link and it creates a shortcut
    back to a certain website and/or a shortcut is created
    on load
    thanks
    You have to sign your applet to create files... and thank god too. I hate it when web pages add shiite to my desktop.

Maybe you are looking for

  • Using standard datatypes in NIDAQmx functions

    I use NIDAQmx 8.6 with LabWindows 7.1. Can I use in NIDAQmx- functions the standard datatypes instead of the NIDAQmx datatypes? For example 'unsigned char' instead of 'uInt8', 'long' instead of 'TaskHandle'. I have seen in 'NIDAQmx.h' that NIDAQmx da

  • Does WDA support HTML Image Maps?

    How to implement HTML image maps in Web Dynpro for ABAP? Is the usemap (and related area shapes) available? What I mean is explained by the following example: <body> <img src="trees.gif" usemap="#green" border="0"> <map name="green"> <area shape="pol

  • Combining Pages Files

    Suppose I have two Pages documents: 1) multipage.pages, a multipage document 2) onepage.pages, a 1-page document. Each of them consists of both text and images. How can I add onepage.pages to multipage.pages so that it becomes another page of multipa

  • Screen saver troubles

    I cannot get my screen saver to stay set on my iPhoto library. Keeps going back to generic National Geographic stuff.  Upgraded to Yosemite last week.

  • Sales Plan in SD Module.

    Hai SD Gurus,                        Where Sales plan arrived in SD Module ? How it is transferred to PP Module. Regards, Mohanraju