Camerabin - how to specify size of image for capture
Ian Davidson
id012c3076 at blueyonder.co.uk
Thu Feb 20 06:21:34 PST 2014
Well, I've now been able to test my program using the software built
from the git which I cloned a couple of days ago.
It crashed when I tried to establish an image size of 800x600. I ran
with --gst-debug=4 and here is part of the log that was output
0:00:04.102032293 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;37;41m GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full:#[00m trying to link element camerasrc-real-src:(any) to element src-videoconvert:(any)
0:00:04.102070544 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstutils.c:936:gst_pad_check_link:#[00m trying to link camerasrc-real-src:src and src-videoconvert:sink
0:00:04.102180558 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00m v4l2 gstv4l2object.c:1320:gst_v4l2_object_fill_format_list:<camerasrc-real-src-actual-src-v4l>#[00m got 1 format(s):
0:00:04.102858601 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00m v4l2 gstv4l2object.c:1326:gst_v4l2_object_fill_format_list:<camerasrc-real-src-actual-src-v4l>#[00m GRBG
0:00:04.103004362 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00m v4l2 gstv4l2object.c:3246:gst_v4l2_object_get_caps:<camerasrc-real-src-actual-src-v4l>#[00m probed caps: EMPTY
0:00:04.103110905 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstpad.c:3686:gst_pad_peer_query:<src-videoconvert:src>#[00m pad has no peer
0:00:04.105567040 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00m v4l2 gstv4l2object.c:3246:gst_v4l2_object_get_caps:<camerasrc-real-src-actual-src-v4l>#[00m probed caps: EMPTY
0:00:04.105707875 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;37;41m GST_ELEMENT_PADS gstutils.c:1123:gst_element_get_compatible_pad:<src-videoconvert>#[00m Could not find a compatible pad to link to camerasrc-real-src:src
0:00:04.105748826 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstutils.c:936:gst_pad_check_link:#[00m trying to link camerasrc-real-src:src and src-videoconvert:sink
0:00:04.105788689 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstpad.c:3686:gst_pad_peer_query:<src-videoconvert:src>#[00m pad has no peer
0:00:04.108033708 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00m v4l2 gstv4l2object.c:3246:gst_v4l2_object_get_caps:<camerasrc-real-src-actual-src-v4l>#[00m probed caps: EMPTY
0:00:04.108096497 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstpad.c:3686:gst_pad_peer_query:<src-videoconvert:src>#[00m pad has no peer
0:00:04.110343735 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;37;41m GST_ELEMENT_PADS gstelement.c:897:gst_element_get_static_pad:#[00m found pad camerasrc-real-src:src
0:00:04.110398847 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting:#[00m camerasrc-real-src and src-videoconvert in same bin, no need for ghost pads
0:00:04.110448623 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstpad.c:2123:gst_pad_link_prepare:#[00m trying to link camerasrc-real-src:src and src-videoconvert:sink
0:00:04.110493177 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00m v4l2 gstv4l2object.c:3246:gst_v4l2_object_get_caps:<camerasrc-real-src-actual-src-v4l>#[00m probed caps: EMPTY
0:00:04.110532018 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstpad.c:3686:gst_pad_peer_query:<src-videoconvert:src>#[00m pad has no peer
0:00:04.112785883 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;41m GST_PADS gstpad.c:2179:gst_pad_link_prepare:#[00m caps are incompatible
0:00:04.112849344 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;37;41m GST_PARENTAGE gstbin.c:1556:gst_bin_remove_func:<camerasrc>#[00m removed child "src-videoconvert"
0:00:04.112903333 #[333m 3236#[00m 0x908c4e0 #[33;01mWARN #[00m #[00;04m default camerabingeneral.c:86:gst_camerabin_add_element_full:<camerasrc>#[00m error: linking src-videoconvert failed
0:00:04.113004824 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<camerasrc>#[00m posting message: GStreamer error: negotiation problem.
0:00:04.113053028 #[333m 3236#[00m 0x908c4e0 #[36mINFO #[00m #[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<camerasrc>#[00m posted error message: GStreamer error: negotiation problem.
After that time, it began disposing of elements it had created.
If I do not specify an image size, camerabin will choose a size. On my
development PC (an old 32 bit system with a USB webcam) I get an image
640x480 (if I remember correctly). On my live PC (a fairly new 64 bit
machine with a camera connected via a composite connection to a video
capture card) I get an image of 320x200.
I want to be able to capture images larger than 320x200.
IF 800x600 is not technically feasible, how can I find what size(s)
would be possible?
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140220/16219b83/attachment.html>
More information about the gstreamer-devel
mailing list