Change the format of a capture datasorce

Im trying to change the format(really the resolution) to display the video from my webcam in a small panel(160x120).
RGBFormat format2 = new RGBFormat(new Dimension(160,120),76032,Format.byteArray,30,24,3,2,1,3,528,1,0);  //this is an example of format supported
for ( int i = 0; i < formatControls.length; i++ ) {
  if ( formatControls[i] == null )
    continue;
  formats = formatControls.getSupportedFormats();
System.err.println("Trying format " + format);
if (matches(format, formats)) {  // this is a static method made by me that probes the matching of all array
format = formatControls[i].setFormat(format);
System.err.println("Matching format = " + format);
Well, this never works, the format displayed is the defalut RGB format(320x160).
What am i doing bad? Do i need a processor for doing this? My problem is that i want to encode the datasource later to a h263 format to transmit it and also display it in the screen but in a small window.
Help please!

its already solutionated!
If there is anybody interested....
The key is to run the setFormat(Format f) method with a Format f exactly obtained from the getSupportedFormats of the FormatControl.

Similar Messages

  • How can i change the format of output captured footage using DSR-11 in Premiere Pro CS5.5?

    Hi.
    I am using Premiere Pro CS5.5, capturing footage off a mini-DV casette (NOT HD) using a Sony DSR-11. All is well with that, except for that the output is an .avi rather than MP4 (H264). I am under the impression that H264 with the extension of .MP4, is better than avi.
    Does anyone know if it is possible to change the format of that outputted footage?
    thanks:)

    thanks Ann, Jim. I was afraid u'd say avi is the only option w/capturing, but am happy to hear it is the best option. Thanks again, and to the others who replied (and i will look at the "best export format/codec" page:)

  • How do I change the default iPhone screen capture format to .jpg? I have an iPhone 5.

    How do I change the default iPhone screen capture format to .jpg?
    I have an iPhone 5 (but I'm sure users with other models would like to do this as well).
    My online searches have not found an answer -- I did find a discussion thread that was essentially, "Why would you want to do that?" Those posts are not welcome! Not looking for a work-around, an intermediate step, or the need to change the file format on a computer, etc. Just want to hit the two buttons and have the resulting capture be a JPEG file.
    Not interested in jailbreaking or using apps that require jailbreak -- Want to do this with a new phone.
    Thank you in advance for any help!!
    --tim

    You can't.

  • Changing the format  after camcorder import

    I've capturing a couple of hours worth of video, I'm now at the stage of starting to edit, but the format is saying that it's DV PAL, when I shot all the video in DV PAL widescreen. I expected it to detect this.
    Is there any way to change the format after capture to widescreen or HDV 720p or HDV 1080i ?
    Thanks
    MacBook Black / iMac   Mac OS X (10.4.8)  

    In the Library module, Grid view, select all the images that have the wrong metadata preset, then in the Metadata pane (right-hand panel) click in the Preset box (see highlighted box in the screenshot) and you'll get a drop-down list of available metadata presets. Simply select the correct one and you'll get a confirmation box pop-up....click on the appropriate option (All Selected) and you are done.

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • How to change the format of a cell in a web report

    Hello experts,
    Is it possible to implement this in a Web Report/BEx query?
    We have a list of products grouped into Company A and Company B. One key figure is for example Net Cost Price.
    We need to highlight the lowest net cost price in every company but with a different colour depending on the company assuming prices are sorted in ascending order.
    We have been recommended to use Web Design Api for Tables but we understand that in order to format a cell content we need to know the axis position of the cell but we don't know how many rows the query will display for every company. Is this kind of requirements only possible with "static" reports where we know exactly the number of rows and columns that are going to be displayed?
    This is an example.
    COMPANY      PRODUCTS    NET COST PRICE
    Company A    Product 1    <b>5€</b>
                 Product 2    10€
    Company B    Product 1    <b>10€</b>
                 Product 2    20€
    Any help would be very much appreciated.
    Thanks in advance,
    Inma

    Hi Inma,
      If you have already not solved your problem , you can try the following solution with table interface class.
    Table interface class generates HTML table row by row so it first process the charecterstics and then KFs .
    You define a  attribute(type public) in class and set that attribute to X (In CHARECTERSTIC menthod)when ever the company code changes.
    Then make use of that flag in DATA method to change the format of cell (Assuming you sorted by Ascending).
    hope this helps.
    Regards
    Madhukar

  • How to change the format in sap script

    Hi,
    I am working on a report which calls a sap script and i have to modify the script i.e. the values which are displaying in it. i had never worked on SAP SCRIPTS ,plzz provide me guidlines how to change the format of the data displayed in it.

    hi,
    this will give you the whole idea about the scripts in SAP the t-code is SE71.
    refer this link::
    [SAP SCRIPTS|http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm]
    [WIKI|https://wiki.sdn.sap.com/wiki/display/ABAP/FormPrinting-SAPscript%2CSmartforms]
    regards
    sarves
    Edited by: Sarves Sombhatla on Feb 20, 2009 1:38 PM

  • How can i change the Format of my DATE column?

    I need to change the date format for a whole column. At present i can do MM-DD-YYYY. I need to change this this to DD-MMM-YYYY.
    I know about the to_date function, i tried to apply it to change the format of my whole column by doing the following.....
    CREATE TABLE "IT220_DATEHOLIDAY"
    "DEPARTID" VarChar(2)NOT NULL ENABLE,
    "HOLCODE" VARCHAR2(2)NOT NULL ENABLE,
    "DEPARDATE" DATE,
    to_date('DATE','DD-MMM-YYYY'), <<<change DATE column to DD-MMM-YYYY
    CONSTRAINT "DATEHOLIDAY_PK" PRIMARY KEY ("DEPARTID") ENABLE
    ORA-00902: invalid datatype <<<<This was the error message i received.
    I am aware that the to_date function is supposed to be used to change strings into a certain format. I guess this means you cant do it with columns? Is there anyway i can format the whole column or do i have to do each string of data entered one by one?
    Thanks in advance!

    Hello Jay,
    I'm not sure you hit the right forum, as this doesn't seem to be a problem with APEX.
    Anyway:
    You can't use that function on a table like that, and as you already suggested, the to_date-function expects a string value.
    It seems you also have a misunderstanding of the basic datatypes in the database. DATE is such a datatype and is stored an internal format you don't need to care about. Each time your request the value, the database will give you a string representation according to either your locale or you give a certain formatting mask.
    The same applies to insert or update operations: you hand in either a variable of type DATE or use a function like to_date to create an "object" of type date.
    You may be interested in reading the documentation of the [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm]Oracle Database Concepts. The section concerning datatype DATE can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/tablecls.htm#CBBGJHJC
    An overview of formatting options can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#SQLRF00212
    So to answer your question: You would format it as part of your insert operation, taking a string and convert it using to_date.
    -Udo

  • I changed the format to an external drive and lost everything that was on it.

    I changed the format on an external hard drive and lost everything that was on it. Is there a way to recover what was on it?

    1) Partition your hard drive or add an external drive and install Snow Leopard (with the Optional Rosetta) into it and then you can dual-boot (System Preferences:Startup Disk) into Snow Leopard and run FCE 3.5 there.
    2)  Use one of the following methods to install FCE 3.5 into Mavericks:
    a)  Pacifist:  http://www.charlessoft.com/
    b)  Jeremy Johnstone's Terminal method:  http://www.jeremyjohnstone.com/blog/2012-03-11-installing-final-cut-pro-studio-2 -0-on-mac-os-x-10-7-lion.html
    Reports on this forum seem to confirm that Final Cut Studio 2 will continue to operate in Mavericks once it is functionally installed, albeit some plug-ins may fail to function.  FCE 3.5 is the same generation as FCS2, and presumably will continue to operate in Mavericks, as well.

  • How can I use single hard drive for both Mac OS and Windows without changing the formats and reformatting?

    I have a windows PC and a Macbook Air and a 1TB external hard drive. They said in order to transfer large files into the hard drive you have to change the format of your hard drive (which would be from MS-DOS to Mac Os extended) so how can I use my external hard drive on my windows PC without reformatting its files? Please heeeelp 

    Natively Windows can read and write to NTFS, FAT32, and exFAT while the Mac can read and write to FAT32, exFAT, and MacOS Extended.
    Option 1: You can purchase driver software for Windows to allow it to read and write Mac's MacOS Extended or you can purchase a driver to allow the Mac to read and write to NTFS.
    Option 2: you can format the hard drive for exFAT and use it with both Windows and the Mac without purchasing any special drivers. (Obviously the 4GB file size limit is why you don't want to use FAT32)

  • How do i change the format of a single page in pages 09?

    How do i change the format of a single page in pages 09?
    I want a page to be landscape within a portrait-format doc.

    Question asked and answered many times !
    Yvan KOENIG (VALLAURIS, France) jeudi 19 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • Do I have to change the format of my canon video footage in order to import

    the format of some video footage that I recorded is currently .MOD and some are .MOI (I have no clue what that means, but that's what it says.. and I'm assuming it needs to be converted into another file-type)
    my macbook pro can't recognize this format, so is there anyway I can change the format of these videos so I can edit it in imovie?
    [I have a MacBook Pro and the footage is from a Canon FS100]
    Thank you!

    The MOD files are MPEG-2 video formats recorded on tapeless media. Use MPEG Streamclip to convert them to Apple Intermediate Codec for editing in iMovie. The MOI files do not contain video; they are basically information files associated with the video files. MPEG Streamclip is free however you will also need to get the Apple MPEG2 Playback Component ($20 from the apple store) if you don't already have it on your MBP.

  • How do you change the format of glossary terms?

    I have entered a number of terms in my glossary, along with the definitions. When I preview the book on my iPad, the definitions come up when i touch them, but the box has white text on a white background. How do I change the formatting of the definitions?

    Format/Advanced/Define Default Glossary Style.
    See http://www.dummies.com/how-to/content/how-to-set-default-styles-for-objects-in-i books-au.html

  • How to change the format of the video on my Palm Centro

    I have used the video feature on the phone & have played back the videos fine on my phone.  However, when I sync them to the computer, they are in a Real Player format.  When I try to open them through the back up folders (I wanted to delete them off my phone & palm software so I could take more videos & sync easily.  So I'm trying to move the videos to a separate folder on the computer.  They are actually put in a back up folder automatically when I sync, but they are all in Real Player Format.)
    Anyway - they won't play in Real Player.  How can I change the format so that I can play them back in a program other than Palm????
    THANKS!!
    Post relates to: Centro (Verizon)

    Quicktime is available free from apple.com.
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How to Change the Format of Object.................

    Hi,
    The client is asking us to change the format of the out of th object into another format.
    With The existing format the result is DisplayFare: 4,673.23
    and the formula used is :
    WhilePrintingRecords;
    global currencyvar DisplayFare;
    global currencyvar array PaxFare;
    global numbervar num;
    if {fld.Fld1}= 'IPAX' then
        DisplayFare := PaxFare[num];
    DisplayFare;
    But client want the same in different format DisplayFare:4 673,22.
    For what changes i needs to do...................please do the needful.
    Regards,
    Maheedhar

    Hi Maheedhar,
    The only difference I see if that the required format does not have a thousands separator (Or does it have space as the separator?) and it uses a comma as the decimal separator.
    You can right-click the field > Format Field > Customize > In here you should be able to change the Decimal separator, Thousands separator etc.
    -Abhilash

Maybe you are looking for

  • ITunes Library cannot be read after downgrading to an older version

    I had iTunes 7.8 and everything worked perfect. I kept getting informed of an updated iTunes 8.2 so i upgraded. then whenever i would plug my iPod in it wouldnt recognize it and asked to erase all the songs off my iPod. Everytime, i clicked No. but o

  • Apple TV, mirroring, wireless cam...

    I have a newer iMac and recently purchased AppleTV.  I would essentially like to video conference from my living room via mirroring AppleTV and my iMac (which is in an adjacent room) but cant really understand how I could use an external cam from the

  • Cisco ise on vm Failed to start database

    vmware 4.1 (or maybe 4.0.1) configured with 2 core minimum freq 3.6Ghz 200Gb HD on single physical drive (minimum requirement), no thin provisioning datastore vmfs 3, 2Mb block size, ethernet : flexible network adapter ram 4Gb Scsi controller setup..

  • Using both, LabVIEW 32-bit and 64-bit

    Hi Guys, I have a requirement where I have to interface with a camera using LabVIEW 64-bit (because the dll provided is for 64-bit system). At the same time, I have to communicate with several variables via OPC Server using LabVIEW DSC, which is only

  • Jinitiator

    I have a problem executing my forms. When I run the form and the browser tries to open the applet, it says that i have to install Jinitiator. I install it succesfully but when i try to run the form again, it ask me to install it again and again. I do