After applying patch from
QTBUG-43752, it became possible to record the video. However usualy it will fail, because of several problems in video recording initialization code
A quick look at
shows several problems:
- supportedFrameRates has a memory issue: usually OS will report less (or more?) than 20 supported framerates, so last values in result list will be random
- API documentation doesn't guarantee that returned framerates are sorted, so it is incorrect to just take last element in line 578. In our case the code will take invalid random value returned by supportedFrameRates.
- The code just ignores "calculated" frameRate value not passing it to camera_set_video_property.
Sometimes this code works, sometimes not.