How to change camera recorder settings in iOS ?
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?
[edit: fixed coding tags SGaist]
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.