GNOME Bugzilla – Bug 747403
avfvideosrc: Inconsistent and poor video capture frame rates on OS X and iOS
Last modified: 2015-07-05 15:05:14 UTC
Created attachment 301007 [details] [review] Fix for maximum capture rate As copied from the OpenWebRTC issue tracker at https://github.com/EricssonResearch/openwebrtc/issues/243 -- I have been testing the local video capturing in the iOS build of OpenWebRTC on an iPad Mini Gen 1 (armv7) using demo.openwebrtc.io:38080 and noticed that the frame rate of the local video frame is very inconsistent. At times it is reasonably fast (15 to 30 Hz), but most of the time it is way too low (1 Hz). The video capturing is handled by the sys/applemedia code in gst-plugins-bad. I've been checking the code and I think that the activeVideoMaxFrameDuration is not set properly: it is set to the maximum frame duration, while I believe it should be set to the minimum frame duration as to "fix" the frame rate to the highest possible value. -- This minimal patch fixes the maximum frame rate to the minimum possible values, as recommended by Apple for use with high performance video capture use cases, at https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVCaptureDevice_Class/index.html Patch has been tested and verified to be working (OpenWebRTC).
I think this was already merged by Alessandro here: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/sys/applemedia/avfvideosrc.m?id=f62dda74cc7f1396ce2b49679d8a35a2fe182c93
Comment on attachment 301007 [details] [review] Fix for maximum capture rate In effect, committed in: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/sys/applemedia/avfvideosrc.m?id=f62dda74cc7f1396ce2b49679d8a35a2fe182c93