Camerabin : Failed to link camera source's vfsrc pad to viewfinder queue
tim at centricular.com
Tue Jun 17 04:01:19 PDT 2014
On Tue, 2014-06-17 at 11:07 +0200, Lee Matthews wrote:
> I'm trying to use camerabin to record video from an Android device.
> Here is a code snippet :
> pipeline = gst_pipeline_new (NULL);
camerabin is already a pipeline (see gst-inspect-1.0 camerabin), no need
to create another pipeline and add it to that. You can just cast
camerabin to a GstPipeline.
> camera = gst_element_factory_make ("camerabin", "camerabin");
> source = gst_element_factory_make ("v4l2src", "webcam");
> g_object_set (camera,"camera-source",source,NULL);
> I/GStreamer+GST_ELEMENT_PADS(18924): 0:00:05.303407811 0x759fb6c0 gstelement.c:891:gst_element_get_static_pad no such pad 'imgsrc' in element "webcam"
> I/GStreamer+GST_ELEMENT_PADS(18924): 0:00:05.303498696 0x759fb6c0 gstutils.c:1543:gst_element_link_pads_full trying to link element webcam:vfsrc to element viewfinderbin-queue:sink
> I/GStreamer+GST_ELEMENT_PADS(18924): 0:00:05.303548071 0x759fb6c0 gstelement.c:891:gst_element_get_static_pad no such pad 'vfsrc' in element "webcam"
> E/GStreamer+camerabin(18924): 0:00:05.303600519 0x759fb6c0 gstcamerabin2.c:1765:gst_camera_bin_create_elements:<camerabin> Failed to link camera source's vfsrc pad to viewfinder queue
> What exactly is vfsrc ? I cannot find any reference to it. If it means view finder source, I don't understand why the v4l2src element would have these pads...
I suspect camerabin wants a 'wrappercamerasrc' here. So try creating a
'wrappercamerasrc' element, set v4l2src on that as source via the
"video-source" property,and then add the wrappercamerasrc as source on
camerabin via the "camera-source" property.
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel