Camerabin - how to specify size of image for capture

Thiago Santos thiago.sousa.santos at
Tue Feb 25 08:18:27 PST 2014

On 02/24/2014 12:05 PM, Ian Davidson wrote:
> Hi Thaigo,
> I was assuming that camerabin would attempt to scale whatever the 
> camera could provide up or down to the requested image size.

Unfortunately it doesn't. It tries to respect whatever the camera source 
can produce to avoid stretching the picture.

In case you really want to do that it should still be possible by 
setting and encoding profile with the resolution restriction in the caps.

> What is the easiest way to determine supported resolutions for my camera?

You can check the *-supported-caps properties of camerabin or you can do 
a small launch line with:

GST_DEBUG=*CAPS*:6 gst-launch-1.0 v4l2src ! fakesink

And check the caps returned by your source element. Remember to replace  
v4l2src with your source element in case you are using something else.

> Ian
> On 24/02/2014 14:18, Thiago Santos wrote:
>>  It seems that you are seeing
>> a gstreamer error. Are you sure you are using a supported resolution 
>> for your video input?
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list