Results 1 to 3 of 3

Thread: How can I decrease the frame rate of the QCamera?

  1. #1
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Question How can I decrease the frame rate of the QCamera?

    Hello everybody,

    How can I decrease the frame rate of the QCamera?

    I am using Qt SDk 1.1 on Nokia C7
    Thank you

  2. #2
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How can I decrease the frame rate of the QCamera?

    [SOLVED]

    in the QVideoSuface::start(QVideoSurfaceFormat & formt)
    set the frame rate you want using
    format.setFrameRate(qreal)

  3. #3
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: How can I decrease the frame rate of the QCamera?

    Thank you for reporting.

    This interests me too, so tried to figure out, and after your telling one answer I tried to find what connection QVideoSuface has to QCamera -- in the context of the latest QtMobility -- and found none. Instead it seems that you can (in principle, at least...) do it via a QMediaRecorder attached to the QCamera:

    recorder = new QMediaRecorder(camera);
    // QVideoEncoderSettings videosettings;
    videosettings = recorder->videoSettings();
    videosettings.setFrameRate(3.99); // get the supported rates with QMediaRecorder::supportedFrameRates() -- this might report some values only after camera has been started
    QAudioEncoderSettings audiosettings = recorder->audioSettings(); // just to get something to pass to the next function call...
    recorder->setEncodingSettings(audiosettings, videosettings);

Similar Threads

  1. QGraphicsView Frame Rate
    By benlau in forum Qt Programming
    Replies: 11
    Last Post: 13th October 2010, 01:04
  2. OpenGL frame rate
    By martinb0820 in forum Installation and Deployment
    Replies: 3
    Last Post: 2nd October 2009, 19:24
  3. OpenGL frame rate under 64-bit XP
    By martinb0820 in forum Qt Programming
    Replies: 1
    Last Post: 2nd October 2009, 19:23
  4. Frame rate problem
    By MrShahi in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2008, 23:06
  5. Change frame rate
    By superutsav in forum General Programming
    Replies: 1
    Last Post: 3rd August 2006, 21:02

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.