dshowvideosrc: Needs filtercaps with Apple FaceTime HD camera
Submitted by Joshua M. Doe
With the Apple FaceTime HD camera (in a MacBook Pro Retina Mid-2012), this simple pipeline results in an error:
gst-launch-1.0 dshowvideosrc device-name="FaceTime HD Camera (Built-in)" ! videoconvert ! autovideosink
gstdshowvideosrc.cpp:665:gst_dshowvideosrc_set_caps: Can't connect
capture filter with fakesink filter (error=0x80070491)
If I specify one of the supported resolutions using filter caps it works fine:
gst-launch-1.0 dshowvideosrc device-name="FaceTime HD Camera (Built-in)" ! video/x-raw,width=640 ! videoconvert ! autovideosink
I tried every supported resolution specifying it in this manner and it worked fine. I looked around in the caps code for a bit, but didn't find anything obvious.
With another webcam (Creative Live! VF0400) it works fine, no filter caps are needed.