GNOME Bugzilla – Bug 762575
avfvideosrc: Crashes with uncaught exception - wrong type for AVCaptureDevice.activeVideoMinFrameDuration
Last modified: 2016-02-25 09:38:13 UTC
From the GST_DEBUG log: 0:00:00.520884000 10995 0x10182fa30 WARN avfvideosrc avfvideosrc.m:738:__30-[GstAVFVideoSrcImpl setCaps:]_block_invoke: An unexcepted error occured: The activeVideoMinFrameDuration passed is not supported by the device. Use -activeFormat.videoSupportedFrameRateRanges to discover valid ranges. The following AVCaptureDevice expects type NSValue:CMTime and is currently getting NSValue:double [device setValue:frame_duration_value forKey:@"activeVideoMinFrameDuration"];
See also https://github.com/EricssonResearch/openwebrtc-examples/issues/163#issuecomment-187114007
Created attachment 322249 [details] [review] Change NSNumber/double to CMTime This fixes the crash for me, though full functionality of video capture is not there yet.
The fix looks ok and works on iOS 9. Can you submit a git format-patch patch? Also, what other issues do you have with capture?
Bug #762645 is probably the other issues
commit 2b63a88f26bdaa7bc9ade594f9f80e20f3b6afe2 Author: Joe Gorse <jhgorse@gmail.com> Date: Thu Feb 25 11:34:40 2016 +0200 avfvideosrc: Frame durations as CTime to the API, not double Newer iOS seems to automatically convert, older iOS/OSX just crashes. https://bugzilla.gnome.org/show_bug.cgi?id=762575