Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to change camera recorder settings in iOS ?

How to change camera recorder settings in iOS ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
iosqcameraqmediarecorderqtmultimedia
2 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fabien.Bourgeais
    wrote on 28 Oct 2015, 09:31 last edited by SGaist
    #1

    Hello,

    I want to record a video in slow motion at 120fps on an iPad Air 2. I am facing difficulties trying to configure my qMediaRecorder. I created a Camera which works fine. I created a recorder and, by default, it gives me a 1080p video at ~30fps. But when I want to change these settings, It does nothing.

    Here is the settings part :

    QVideoEncoderSettings settings = QVideoEncoderSettings();
        settings.setCodec("video/h264");
        settings.setQuality(QMultimedia::LowQuality);
        settings.setFrameRate(120.0);
        settings.setResolution(640, 480);
        recorder->setVideoSettings(settings);
    

    I realize these settings were not applied, so I dig in the QtMultimedia sources for iOS and I find that the settings are hardcoded by default for the moment.

    What could be the best possible solution for changing recorder settings on iOS ?

    I thought about mixing Objective-C with C++ but it seems very complicated. Maybe sub-classing avfmediaassetwriter.mm for changing only the settings, if possible.

    Have you another idea please?
    Thanks, Fabien.

    [edit: fixed coding tags SGaist]

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Oct 2015, 23:48 last edited by
      #2

      Hi and welcome to devnet,

      The nicest thing to do would be as stated in the TODO: get the information from the video encore settings control and rebuilt the plugin.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      2/2

      28 Oct 2015, 23:48

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved