Can only save 32768 colors in quicktime and avi

Hi,
I am using a variation of the JpegImagesToMovie program to store int[] arrays of pixels to quicktime and avi movies. I created a test movie with frames of size 256x256 such that each from contains a gradient of black to white from the top downwards. Since there are 256 shades of grey, I expected a perfectly smooth gradient; however, it only created 32 shades of grey (meaning, it is only using 5-bits of each color channel, hence only 32768 colors total). I set the format as:
      format = new RGBFormat(
          new Dimension(width, height),
          this.length = width*height,
          int[].class,
          frameRate,
          32,
          0x00ff0000,
          0x0000ff00,
          0x000000ff,
          1,
          width,
          Format.FALSE,
          RGBFormat.BIG_ENDIAN);and I am created the colors as:
data[index] = (red << 16) | (green << 8) | blue; where red, green and blue are ints equal to the y-coordinate of the pixel I am setting.
I also tried specifying 24-bit color as opposed to 32-bit. Has any one else seen this effect? Any suggestions? Thanks,
- Mike

Hi again,
Turns out all I needed was to set the compression format as so:
  TrackControl tcs[] = processor.getTrackControls();
    for(int i = 0; i < tcs.length; i++) {
      TrackControl c = tcs;
Format f = c.getFormat();
if (f instanceof VideoFormat) {
Format[] fmt = c.getSupportedFormats();
if ((fmt != null) && (fmt.length > 0)) {
for(int j = 0; j < fmt.length; j++) {
if ("MPG4".equals(fmt[j].getEncoding())) {
c.setFormat(fmt[j]);
Thanks anyway,
- Mike

Similar Messages

  • Trying to save a Form filled out that came in Adobe Reader format, each time I try and save it says it can only save a blank copy

    trying to save a form filled out that came in Adobe reader format, each I try and save it, it says that it can only save a blank format and I lose the data

    Is there anything in the document properties that would make it behave that way?

  • I lost most of my bookmarks and now can only save a few

    Yesterday, most of my bookmarks went away with only about 12 remaining. In addition to this, now I can only save 12 bookmarks.

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • I paid for adobe to convert a PDF to word -- now I can't save PDFs to my computer -- and I'm saving to the cloud -- HELP

    I'm so depressed -- what happened to the old days when you could actually get a person in support and not have to join a forum -?
    I purchased adobe acrobat to convert a PDF to a word document - that's all I wanted --
    Now every damn PDF I receive or try to open can only be saved in the adobe cloud -- which I have no interest in -- and not on my computer --
    How can I resolve this situation --
    I can't seem to find "settings" or "support" --
    Yes, I'm over 50 -- and I struggle with this maddening technology -- nothing is simple or straightforward --
    I scanned a document, emailed it to myself and would like to name it and save it to my computer -- used to be a 3 minute process -- now its 30 minutes (of valuable, but wasted time later) -- and here I am -- seeking help from no one in particular!  The anonymous "forum" --

    No -- I installed adobe acrobat -- and now, whether I'm signed in or not -- the little disc/save icon is whited out and it can no longer be selected -- when I open a PDF I can only save it to the cloud
    I am a physician, and a lot of what I look at is protected health information --- I can't be saving it in the cloud!!!  I have to find a way to disable this feature -- and restore my ability to save to my hard drive ONLY --
    Thanks -- but if you can tell me those things, I'll be grateful
    tried to attach screen shot to show you, but it was too big .......

  • Infopath submit - how to hide - Save as dialog box - You can only save this file to the current site

    HI,
    I have a infopath form. In the submit options, i have used the below:
    submit options -
    sharepoint document library
    Data connection - Sharepoint Library Submit
    Doc library - lib location
    File name: concat("User Info - ", ResourceName, "-", PersonalID)
    Allow overwrite if file exists is checked.
    When I try to save a record, I am getting a popup:
    Save As:
    You can only save this file to the current site
    File Name: textbox
    save location: doc lib.
    save, cancel buttons.
    How to override this save as option(save as option should not be shown to user), and save the file using the file name mentioned?
    Thanks

    Are you clicking "Save" when you're using the form or "Submit"??
    You should be using "Submit" and it will ... submit your form to the document library with the file name you specified.
    To disable the "Save" button, click on "File" then "Form Options". Under the "Filler Features" area you can uncheck the box beside "Save and Save As". Click OK then re-publish your form.

  • Can only save as .cptl

    2Hello!
    I've looked, but I didn't see any other discussions that address the particular issue that I am experiencing. I'm using Captivate 5 on a Mac and when I select "Save as" for my projects, I only have the option to save as a .cptl type file and NOT .cptx.
    I can change the extension manually and everything is ok, but it's just a little annoying to have to do this with nearly every file.
    Most files I work with are created from a standard template we use at my employer. It's likely this file was originally created in an earlier version of Captivate. Might this be the cause of my issue?
    Thanks in advance for any help!
    -Miki

    The good news is it's not a Mac issue.
    On my Windows system, if I double click on a cptl file it opens in Cp5 as a cptl file and I can only save-as a cptl file (using the drop down).  When you're opening the cptl, Captivate thinks you want to edit the template and it only lets you save it as a template (again, using the drop down).  Because, well, that's what you're doing.. you're editing the template.
    If you use the New Project > Project from Template option it will open the cptl file and then give you the save as cptx option.
    Why it's not happening to your coworkers on Windows is another question, since I'm seeing what you're are and I'm on windows.

  • User can only save files to desktop.

    Hello,
    We recently purchased/deployed a MacPro workstation w/Snow Leopard v10.6.8 to a member of our Marketing Dept. The server is bound to our Active Directory domain and the domain user account has local admin rights.
    We copied files over from another Mac. However, this user can only save to his desktop and not directly to other folders on the HDD. He can copy files from the desktop to other folders, but is prompted for admin credentials each time.
    I've located the following article that discusses the "Repair Privileges" utility, but I hesistate to proceeed without being a little more certain.
    Suggestions?
    TIA, Tom W.

    Hey Niel,
    Your suggestion along with this article seems to have been the answer:
    http://support.apple.com/kb/HT2963
    Thanks,
    Tom W.

  • Used to be able to save images from webpages but now with IOS 5, I can only save to reading list?

    Used to be able to save images from webpages but now with IOS 5, I can only save to reading list even when viewing a page whose images I could save as an image when using the previous OS.

    Are you using the YouTube widget in iWeb?  If so it doesn't work any more. Not since MobileMe was discontinued.
    You need to get the full embed code from YouTube and use the standard HTML snippet.
    OT

  • I am trying to authorise my new macbook air and it won't let me. I try to de-authorise all the other computers and it says I can only do this once a year and have to wait until the 7th Feb. It does not give me an option to authorise this computer

    I am trying to authorise my new macbook air for i-tunes and it won't let me. I try to de-authorise all the other computers and it says I can only do this once a year and have to wait until the 7th Feb. It does not give me an option to authorise this computer

    Always remember to 'de-authorize' you computer when selling or sending for service. If sending for repairs you might not get the same mother board or HD back and some how this counts as an authorized computer against your count.
    MJ

  • HT4528 I have a verizon iphone 5c and I took out the SIM card just being curious and put it back in, now I can only use my phone on wifi and I can't use 4G or LTE strictly wifi. How can I fix this?

    I have a verizon iphone 5c and I took out the SIM card just being curious and put it back in, now I can only use my phone on wifi and I can't use 4G or LTE strictly wifi. How can I fix this?

    Have you tried resetting your device by pressing and holding the Home button and power button until the silver apple appears? If that doesn't work, try resetting the network settings. Settings>General>Reset>Reset Network Settings.
    If that fails, you may possibly have damaged the SIM. Verizon will need to give you a new one.
    Best of luck.

  • In Itunes I cannot chose MS Outlook when syncing contacts. I can only chose Google contacts, Windows contacts and  Yahoo! Address book. The reply for email and calender is email and calender program cannot be found. Although I have MS Outlook installed an

    In Itunes I cannot chose MS Outlook when syncing contacts for Iphone 4. I can only chose Google contacts, Windows contacts and  Yahoo! Address book. The reply for email and calender is email and calender program cannot be found. Although I have MS Outlook installed and fully operational. Have anyone a solution to this issue?

    Which operating system is on your computer?
    and is itunes up to date
    can you tell whether it worked before?
    think as first step i would reinstall itunes

  • I have a problem choosing artist from my artist list when I will put music on my iPad from my iMac. I can only see the 25 first artis and it is not possible to scroll down the list

    have a problem choosing artist from my artist list when I will put music on my iPad from my iMac. I can only see the 25 first artis and it is not possible to scroll down the list

    Hi stig68,
    If you are having grouping issues with compilation albums in iTunes, you may find the following article helpful:
    Apple Support: Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Regards,
    - Brenden

  • TS3694 I can only restore my iphone so far and then it stops

    I can only restore my iphone so far and then it stops

    Google "Error 1015" and you will get your solution.

  • Why can't I uninstall or reinstall quicktime and Itunes on my computer

    Why can't I install or reinstall  Quicktime and Itunes on my computer.

    Refer to yhis article:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926

  • Hey, I just installed ML on my OCZ Octane SSD, everything went ok, However, it got stuck while rebooting and now I can only see flashing question mark icon and ML won't boot at all. Only in safe mode...

    Hey, I just installed ML on my OCZ Octane SSD, everything went ok, However, it got stuck while rebooting and now I can only see flashing question mark icon and ML won't boot at all. Only in safe mode...

    It looks like ocz is aware of the issue and trying to address it via firmware:
    http://www.ocztechnologyforum.com/forum/showthread.php?103700-Mountain-Lion-and- OCZ-Octane-Petrol-and-Octane-S2-SSD-s
    It's a shame because apple is clearly the party that changed something.

Maybe you are looking for