GNOME Bugzilla – Bug 679060
avfvideosrc: can't get video from camera for new Apple's devices
Last modified: 2013-01-23 18:19:39 UTC
Created attachment 217521 [details] file to replace I think that the issue appears because the library was tuned to work with earlier devices (before iPhone 3Gs) and most probably new devices (iPhone 3Gs, 4, 4s, iPad 2) are give out the video stream in new format, so for this devices need to change the library module setting. Now Apple supported only new device, so I think no needed supported old device in this plugin. the changes are next in file: gst-plugins-bad/sys/applemedia/avfvideosrc.m original 30 line: #define DEVICE_VIDEO_FORMAT GST_VIDEO_FORMAT_YUY2 31 line: #define DEVICE_YUV_FOURCC "YUY2" modification 30 line: #define DEVICE_VIDEO_FORMAT GST_VIDEO_FORMAT_NV12 31 line: #define DEVICE_YUV_FOURCC "NV12"
This is true, but we should actually read availableVideoCVPixelFormatTypes from AVCaptureVideoDataOutput and use these values for negotiation, so it can work with both old, new and future hardware.
I fixed this a while ago.
commit 47d562088cd733c7df451ff0a31e827fb4df6f5e Author: Olivier Crête <olivier.crete@collabora.com> Date: Tue Oct 30 19:30:38 2012 +0100 avfvideosrc: Negotiate format, also support more resolutions This should enable supprt for old and new iPhones with the same code.