Video capture failure on Macbook Pro

118 views
Skip to first unread message

lh...@cafex.com

unread,
Apr 3, 2017, 10:37:37 AM4/3/17
to discuss-webrtc
I'm running AppRTCMobile on a mid-2012 Macbook Pro (macOS 10.12.3) and finding that video capture is failing. I'm using branch-heads/57. iOS video capture from the same codebase is OK.

From my debugging so far, it seems that the point of failure is in avfoundationmapper.mm. The GetEligibleDeviceFormats() function attempts to find an intersection between the video formats supported by the camera, and those supported by WebRTC. This code only accepts pixel formats kCVPixelFormatType_420YpCbCr8PlanarFullRange (f420) and kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange (420v), whereas the AVCaptureDevice object for my built-in camera offers only kCVPixelFormatType_422YpCbCr8 (2vuy). As a result, no common formats are found and the video capturer fails to initialise.

It appears that this code was changed recently as part of https://bugs.chromium.org/p/webrtc/issues/detail?id=6355

Is there a known limitation in terms of supported cameras? I'll keep investigating, and see if I can get hold of a newer mac to test on.

Leigh


  

Kári Helgason

unread,
Apr 4, 2017, 2:31:46 AM4/4/17
to discuss-webrtc, Daniela Jovanoska Petrenko
+denicija@



--------------------

Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.  Thank you.  CafeX Communications.


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/583b12d4-1940-43ca-bec3-e964426b9a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniela Jovanoska Petrenko

unread,
Apr 5, 2017, 4:02:42 AM4/5/17
to Kári Helgason, discuss-webrtc
Hi Leigh,

Yes, since the CL you've stated, we're filtering out supported capture formats more strictly for performance reasons. We're considering loosening up that constraint and adding support for more pixel support but we need to check performance impact first.
Also note that the rendering pipeline currently supports only 420YpCbCr8Planar pixel formats.


Leigh

unread,
Apr 5, 2017, 5:30:11 AM4/5/17
to discuss-webrtc, kthel...@webrtc.org
Thanks for the response. I haven't been able to find a reference on capture formats per device, so it's difficult to know the impact w.r.t. supported hardware. 
+denicija@



To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

lesli...@gmail.com

unread,
Oct 23, 2017, 1:33:14 AM10/23/17
to discuss-webrtc
I also suffer same issue. Peerconnection-client doesn't support MAC as well. Then can you please suggest which RTC demo or example can be used at MAC? 
+denicija@



To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages