Camerabin: image capture width/height

Sudarshan Bisht bisht.sudarshan at gmail.com
Wed Nov 16 09:45:46 PST 2011


Hi,

I hope you have already gone through following phrase(specially lines in
red);

Image capture

Image capture is selected by switching
"mode"<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin.html#GstCameraBin--mode>
 to MODE_IMAGE<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin.html#MODE-IMAGE:CAPS>.
Taking still images is initiated with the
"capture-start"<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin.html#GstCameraBin-capture-start>
action
signal. Once the image has been captured, "image-captured" gst message is
posted to the bus and capturing another image is possible. If application
has set "preview-caps"<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin.html#GstCameraBin--preview-caps>
property,
then a "preview-image" gst message is posted to bus containing preview
image formatted according to specified caps. Eventually when image has been
saved "image-done"<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin.html#GstCameraBin-image-done>
signal
is emitted.

Available resolutions can be taken from the
"video-source-caps"<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin.html#GstCameraBin--video-source-caps>
property.
Image capture resolution can be set with
"set-image-resolution"<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin.html#GstCameraBin-set-image-resolution>
action
signal.

Some video source elements implement the
GstPhotography<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/GstPhotography.html>
interface,
which contains functions and properties for setting photography parameters.
One can usegst_bin_iterate_all_by_interface()<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html#gst-bin-iterate-all-by-interface>
to
get a reference to it.


If this does not work for you then use camerabin2 :)




On Wed, Nov 16, 2011 at 1:18 PM, cokelid <justin at knib.net> wrote:

> Hi all,
>
> I'm using camerabin to grab stills from a webcam showing a video stream.
> I've set the image-capture-width and height properties to give a larger
> image than the video stream size, however they're being ignored and the
> jpegs being created (from the capture-start signal) are the same size as
> the
> video.
>
> Am I missing something I need to do to get different sized images? The size
> I'm requesting is supported by the webcam...
>
> Thanks!
> Justin
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Camerabin-image-capture-width-height-tp4076010p4076010.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111116/0cb8e439/attachment.htm>


More information about the gstreamer-devel mailing list