After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747403 - avfvideosrc: Inconsistent and poor video capture frame rates on OS X and iOS
avfvideosrc: Inconsistent and poor video capture frame rates on OS X and iOS
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Mac OS
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-06 12:13 UTC by Cecill Etheredge (ijsf)
Modified: 2015-07-05 15:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for maximum capture rate (1.21 KB, patch)
2015-04-06 12:13 UTC, Cecill Etheredge (ijsf)
committed Details | Review

Description Cecill Etheredge (ijsf) 2015-04-06 12:13:39 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).