Camerabin: image capture width/height

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Camerabin: image capture width/height

cokelid
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
Reply | Threaded
Open this post in threaded view
|

Re: Camerabin: image capture width/height

Sudarshan Bisht
Hi,

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

Image capture

Image capture is selected by switching "mode" to MODE_IMAGE. Taking still images is initiated with the "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" 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" signal is emitted.

Available resolutions can be taken from the "video-source-caps" property. Image capture resolution can be set with "set-image-resolution" action signal.

Some video source elements implement the GstPhotography interface, which contains functions and properties for setting photography parameters. One can usegst_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 <[hidden email]> 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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Camerabin: image capture width/height

cokelid
Thanks very much for the reply!
Sudarshan Bisht wrote
Image capture resolution can be set with "set-image-resolution" action signal.
Actually, I have directly set the properties (which, according to the changelog, were added last year) rather than using an action signal. Hopefully this is the right thing to do?

I've avoided camerabin2 on account of it being described as Experimental and Unstable!

Thanks,
Justin
Reply | Threaded
Open this post in threaded view
|

Re: Camerabin: image capture width/height

Thiago Santos
On Wed, 2011-11-16 at 11:09 -0800, cokelid wrote:
> Thanks very much for the reply!

Hello,

>
> Sudarshan Bisht wrote:
> >
> > Image capture resolution can be set with "set-image-resolution" action
> > signal.
> >
> Actually, I have directly set the properties (which, according to the
> http://cgit.collabora.com/git/user/manauw/gst-plugins-bad.git/tree/ChangeLog?h=baseaudioencoder
> changelog , were added last year) rather than using an action signal.
> Hopefully this is the right thing to do?
>
> I've avoided camerabin2 on account of it being described as
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-camerabin2.html#gst-plugins-bad-plugins-camerabin2.description
> Experimental and Unstable !

Camerabin2 should be much easier to set up than camerabin1, it is still
unstable (though it shouldn't change much at this point), but it is not
experimental anymore. The downside is that it hasn't had a release
without the experimental tagging yet, should be available on the next
-bad release. If you want to use it, you can get it from git.

Back to camerabin1, are you doing what's described in docs? (Like
Sudarshan suggested). Did you try the latest version on git to check if
the problem still happens? If it does, you should file a bug with an
application example to reproduce the bug and I can look at it.

BR,
Thiago

>
> Thanks,
> Justin
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Camerabin-image-capture-width-height-tp4076010p4077518.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel