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 679060 - avfvideosrc: can't get video from camera for new Apple's devices
avfvideosrc: can't get video from camera for new Apple's devices
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.x
Other Mac OS
: Normal normal
: 0.10.25
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-28 13:31 UTC by Stanislav
Modified: 2013-01-23 18:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
file to replace (19.17 KB, application/octet-stream)
2012-06-28 13:31 UTC, Stanislav
Details

Description Stanislav 2012-06-28 13:31:42 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"
Comment 1 Olivier Crête 2012-10-30 13:11:58 UTC
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.
Comment 2 Olivier Crête 2013-01-23 17:46:13 UTC
I fixed this a while ago.
Comment 3 Tim-Philipp Müller 2013-01-23 18:19:39 UTC
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.