Changing framerate does not work

It doesn't seem to matter to the output file I get what kind of framerate I select when constructing the output VideoFormat. Am I doing something wrong ? I want to get a framerate of 30 FPS.
FileTypeDescriptor outputType = new FileTypeDescriptor(
       FileTypeDescriptor.MSVIDEO);
Format outputFormat[] = new Format[1];
Dimension videoDimension = new Dimension(320, 240);
int maxDataLength = 230400;
float fps = 30.0f;
outputFormat[0] = new VideoFormat(VideoFormat.YUV, videoDimension,
       maxDataLength, Format.byteArray, fps);
ProcessorModel processorModel = new ProcessorModel(videoDataSource, outputFormat,
       outputType);

captfoss wrote:
Am I doing something wrong? Probably. I couldn't say because I don't use ProcessorModels (neither does anyone else sucessfully, at least).I see. What's the alternative to using ProcessorModels? And how does the alternative deal with changing the framerate?
>
I want to get a framerate of 30 FPS.That may or may not be possible...regardless, once you get your processor, you need to get the FrameRateControl control on it, and use that to set the frame rate.Hmm. I retrived the controls from the processor, and changed the FrameRateControl one, but it still doesn't seem to change the FPS. If I check out the properties of the video in Windows Explorer or in mplayerc it says it's 4 FPS (trying with 4 FPS since I'm just testing with a webcam ATM and I figured I'd see the difference easier that way), but the video itself runs in 16 FPS (like it always has) and the size of the video file is equvivalant to 16 FPS not 4. Does the capturing device have to support to the framerate you selected?
I suppose this doesn't matter though, if there's an easier way to do this without using ProcessorModels, but I'll include the code anyways.
Control[] controls = processor.getControls();
FrameRateControl frameControl = null;
for(int i = 0; i < controls.length; i++) {
        if(controls[i] instanceof FrameRateControl) {
                frameControl = (FrameRateControl) controls;
frameControl.setFrameRate(fps);
}Edited by: lauritzm on Dec 10, 2008 10:00 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • My problem is simple: my recently changed Password does not work

    my problem is simple: my recently changed Password does not work

    Flash Player doesn't require a password so it's not as simple as you make it out.
    Where exactly are you being asked for a password , and for what?

  • BOM Change Log does not work

    The change log for BOMs has been functional since the implementation of B1 in September of 2007.  Recently, it appears that the change log is not long keeping track of changes.  Has anyone ever seen this before, or have any ideas on how fix this issue?
    Thanks,
    Jordan

    Hi,
    you are still using old version. Maybe the change
    The maintenance even has been stop by SAP support. The PL upgrade is also unavailable. Maybe you could contact partner around your country ask them about the latest PL of B1 2004B.
    if you escalate it to them, I am not sure they will answer.
    You need to upgrade to the new version i.e. 2005B. The maintenance is still available.
    Anyway, try this query :
    SELECT count(T0.[LogInstac]) FROM AITT T0
    Let me know how much it has been
    Rgds,

  • Two tableViews on one page - changing pages does not work

    I have a BSP page with two htmlb:tableViews :
    <htmlb:tableView id              = "tbl1"
                     table           = "<%= controller->r_model->t_table_1 %>"
                     headerVisible   = "TRUE"
                     footerVisible   = "TRUE"
                     headerText      = "bla bla"
                     iterator        = "<%= controller %>"
                     selectionMode   = "SINGLESELECT"
                     visibleRowCount = "<%= lv_visible_rows %>"
                     design          = "STANDARD"
                     keepSelectedRow = "TRUE"
                     keyColumn       = "ONR"
                     sort            = "<%= cl_htmlb_tableview=>c_sort_mode_server %>" />
    <htmlb:tableView id              = "tbl2"
                     table           = "<%= controller->r_model->t_table_2 %>"
                     headerVisible   = "TRUE"
                     footerVisible   = "TRUE"
                     headerText      = "bla bla 2"
                     iterator        = "<%= controller %>"
                     selectionMode   = "SINGLESELECT"
                     visibleRowCount = "<%= lv_visible_rows_2 %>"
                     design          = "STANDARD"
                     keepSelectedRow = "TRUE"
                     keyColumn       = "ONR"
                     sort            = "<%= cl_htmlb_tableview=>c_sort_mode_server %>" />
    Since visibleRowCount is 10 and the number of lines in the table is more than 10, a paginator (Step X of Y...) is shown.
    Now, if I click on the "Next Page" icon, table_1 moves from page 1 to page 2. If I then click on "Next Page" for table_2, table_2 changes to page 2, but table_1 changes back to page 1!
    Is that the standard behaviour? What can I do against it?

    Hi Sebastian,
    this is the code I used
    <htmlb:tableView id              = "t1"
                     table           = "<%= controller->t1 %>"
                     headerVisible   = "TRUE"
                     footerVisible   = "FALSE"
                     headerText      = "header 1"
                     emptyTableText  = "No Scenarios Found"
                     iterator        = "<%= controller %>"
                     selectionMode   = "SINGLESELECT"
                     visibleRowCount = "<%= lv_visible_rows %>"
                     design          = "STANDARD"
                     keepSelectedRow = "TRUE"
                     keyColumn       = "ONR"
                     sort            = "<%= cl_htmlb_tableview=>c_sort_mode_server %>" />
    <htmlb:tableView id              = "t2"
                     table           = "<%= controller->t2 %>"
                     headerVisible   = "TRUE"
                     footerVisible   = "FALSE"
                     headerText      = "header 2"
                     emptyTableText  = "No Scenarios Found"
                     iterator        = "<%= controller %>"
                     selectionMode   = "SINGLESELECT"
                     visibleRowCount = "<%= lv_visible_rows_planned %>"
                     design          = "STANDARD"
                     keepSelectedRow = "TRUE"
                     keyColumn       = "ONR"
                     sort            = "<%= cl_htmlb_tableview=>c_sort_mode_server %>" />
    The page is stateful.

  • Adobe website very slow: Changing region does not work.

    I change my region to South Africa English as the USA server takes forever to respond. I am hoping this will make it
    faster. However, every time I click it defaults back to USA even though I set it to remember my location.
    Image of what I do below:

    Same with me: My settings for "Germany - German" are always lost. Even worse: when I go to the captivate wish form and change the region setting, then I am thrown to the homepage of Adobe in Germany - but I would have expected to get the wish form in German language.

  • Title in combination with videoclip does not work.

    I did pre-order the dutch version Premiere Elements 9. (Del. mid okt.) Until that time I installed the english trialversion PE 9.
    I tried to place a title at the same place as my videoclip.(videotracks 1 and 2). This results in a black screen. Changing tracks does not work.
    When I place a title over a still image(photo-jpeg) then I see both title and image at the same time. Is this a problem with the trialversion?
    or can't this be done in Elements. I know that in Premiere Pro this was possible.
    What am I doing wrong?

    I'm sorry, but I don't know enough about what you've done to tell you what you've done wrong.
    But first, make sure you are in Timeline, not Sceneline mode.
    Your video should be on the Video 1 track.
    Position the CTI playhead on this clip and click on the "T" in the lower right of the Monitor panel to open the Titles workspace. Create your title.
    The title will appear on the Video 2 track, at the position of the CTI, over your background video. You can also move it around and change its placement on the timeline if you'd like.

  • HT4623 my iphone doesn't work here in Albania after i made an update,it says that u have to change ur Sim Card cuz does not work with ur Carrier...what do i do?

    Hpls help me ,my iphone does not work after i updated and restore it..it says that u have to change ur Sim Card..cuz the carrier that u use its not known
    But it has worked perfectly before the update!

    Your iPhone was almost certainly jailbroken to unlock it from the original carrier. Restoring the iPhone has now removed that jailbreak and the iPhone has relocked back to the original carrier. Only that carrier can authorize an official, permanent unlock, so you will need to contact that original carrier and ask if you would qualify for unlocking.
    Regards.

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • I changed my appleID, it worked fine but now I can not restore icloud backup in a new ipad (old appleid does not work and it is grey colored so I'm unable to change it)

    Some months ago I changed my email address and so my appleID. Everything worked fine, but last week my ipad broke and when I tried to restore my icloud backup in my new ipad it does not work: it asks me for the password of the OLD appleID (it doesnt work); and in icloud configuration page the field for appleid is colored grey so I can not change it.
    any clues? thank you in advance

    My suggestion is to change apple id back. I know it is not something you want to hear, but there are suppose to be ways around it and usually they work, but not right now. I suspect that is consequences of Apple getting their servers ready for ios7. Normally in your situation - you should be able to get all your stuff back, but apps, and then you can sync those or download from icloud. But lately (last week) it does not seem to work normal way.

  • HT1694 I'm having a lot of problems with the hotmail account, regularly is indicating an error in the server, that I have to introduce the password again that late that this is wrong. I have changed the password making this shorter but it does not work.

    I'm having a lot of problems with the hotmail account, regularly is indicating an error in the server, that I have to introduce the password again that late that this is wrong. I have changed the password making this shorter but it does not work.

    bump? Is bumping allowed? Lol.
    I just really need some help here.

  • My pinned tabs are not saved. Changed the settings still does not work?

    This changed before upgrading to the new version of FRFX. I cannot save my pinned tabs, nor does Firefox open to the last tabs open. Tried to change Settings...still does not work.
    I have a new iMac 3.4, i7, 16g for video editing. Its running LION 10.7.2

    Well that was odd, decided to check addons and started firefox in safe mode and my pinned tabs were there so restarted it to disable addons one by one but before I could do anything my pinned tabs were back in place. Lets hope it lasts.

  • Change Password on first use does not work properly.

    I have created apex application user in Oracle Apex 3.2 as follows
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99');
    END;
    As in the documentation
    p_change_password_on_first_use  IN      VARCHAR2    DEFAULT 'Y',
    User should be prompted to change password at first use. But it does not work properly. There is no such message. Still accepts user to log in with old passord that was first given to the user. I have tried explicitly to ensure change password at first log in. by
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99',
    p_change_password_on_first_use =>'Y');
    END;
    Still does not work. How can I ensure user to change password on first login.
    Hasan Al Mamun
    Programmer
    Bangladesh Bank
    Dhaka, Bangladesh

    Might be a long way around the problem but I would utilize a boolean flag in a column (FIRST_LOGIN) your custom auth table set to 'Y' when you create their account. Then on the login page have a page process something like:
    ** NOT TESTED **
    declare
    v_first VARCHAR2(10;
    v_session NUMBER;
    begin
    v_session := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
    select FIRST_LOGIN into v_first from AUTH_TABLE where user_name = :P101_USERNAME and :P101_PASSWORD;
    if v_first = 'Y' then
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':2' *** THIS IS YOUR PAGE TO HAVE THEM RESET THEIR PASSWORD ***
    else
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':1' *** MAIN LOGIN PAGE *****
    EXCEPTION WHEN OTHERS THEN
    *** handled **
    end;
    The page 2 in this example would have an few items for them to enter their new password twice, a page process to update their password in the auth table and then redirect them to the intended first page.
    Not sure if it meets your setup.
    Ricker

  • Change password on the first use - does not work

    Change password on the first use - does not work.
    Created a user and specified 'Change password on the first use' - when user logs in - the 'Change password' window does not pop- up.
    Please advise.

    (APEX 4.0.2) I am running into this same issue - if you don't set the password expiration and locking to 'Yes', the user gets into the app without being asked to change the pw.
    When you do set expiration and locking - after the user logs on with their temporary password, it does take them to the change password page (4155:50) but the username is blank. Because the username didn't get to the page the old password will never match and you get the "Invalid password" message.
    What am I missing? Anyone successful doing this?
    Simple application, default authentication, no javascript, HTTP_SERVER, no ssl.
    Thanks,
    Steve

  • In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. Help

    In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
    I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
    I am running a 64 bit version of Photoshop from the CS6 Masters Collection
    I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
    The document size is 2100 by 1500 Pixels at 300 PPI   only two layers

    In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
    I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
    I am running a 64 bit version of Photoshop from the CS6 Masters Collection
    I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
    The document size is 2100 by 1500 Pixels at 300 PPI   only two layers

  • Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million :)

    Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million

    Try troubleshooting the Safari .plist file.
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Relaunch Safari. Try a bookmark.
    If that didn't help, check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari.
    If Extensions aren't the issue, reset Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

Maybe you are looking for

  • APP-ISSUE (Urgent)

    what should i do if i want to see due date invoice in APP? Regards Sap Guru

  • Execution time optimizing labview code

    Hi, I would like to optimize my labview program. Is there a way I can plot the execution time of my program as a function of some parameter I am changing in my program. I was thinking of placing the entire program in a while loop and then changing th

  • Pre requisites in JDBC adaptor

    hi gurus, what are the pre requisites in JDBC Adaptor, Regards, priya

  • Captivate Voices 7 is missing

    During the installation of Capivate 7 for Windows 32 bit, this error message comes up ?the file archive part of Captivate Voices 7 is missing.  You need all parts in the same folder in order to extract Captivate Voices 7.  Please download all parts.?

  • Ipad Email outgoing settings help needed (URGENT!)

    Hi, I wonder if you can help me. I'm currently at my Grandparents and have realised that I am completely unable to send emails from my Talk Talk email accounts. I had previously resigned myself to suffering this fate with this talk talk email as it d