Results 1 to 4 of 4

Thread: How to set double format framerate ?

  1. #1
    Join Date
    Jan 2005
    Posts
    11

    How to set double format framerate ?

    Hi, Stefan
    Grabber.h file provided a function "getAvailableFPS( const VideoFormatItem& op ) const;" that can return the floating type framerates available for the current videoformat. However, there is only one function, "setFrameRate(long)", to set the framerate. It only takes integer values. Can you tell me how can I set a framerate in floating format?
    Btw, I'm using IC2.0 library

    Thank you very much

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Hello Pixel,

    The setFrameRate function searches for the nearest match of the passed long frame rate to the internal double framerate. Thus, a passed 33 would match to 33.333333.

    I suggest to use the function getAvailableFrameRates(), that returns a vector of longs, that contains the available frame rates.
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Jan 2005
    Posts
    11
    So here is an question. I recorded video in 640x240 format. The framerate passed to 'setFrameRate(long)' is 30. But the aviinfo I got from the avi file shows that the actual framerate is 33.3. If change the video format to 640x480 without changing the input of setframerate function, the framerate of recorded video is about 30. But I need to ensure the video is recorded at 30 Hz whatever the video format is.
    Do you have any suggestion?
    Thank you very much

    Pixel

  4. #4
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898
    Hello Pixel,

    Sorry, but for this issue i have no sulotion. The frame rate is created by the video capture device, thus the influence on it is limited.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. Uaable to set video format.
    By gbravoescobar in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: September 28, 2006, 07:55:07
  2. How to set the framerate of a DFK 21F04?
    By WHolzke in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: March 11, 2004, 10:23:02
  3. Set Video Format
    By Unregistered in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: October 14, 2003, 09:16:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •