libcamerasrc / gstreamer plugin expose sensor-mode configuration

Jeffrey Katz jeffrey.katz at autonomeflugsysteme.de
Thu Feb 27 16:36:41 CET 2025


Hi Jacopo,

On 2/27/25 12:18 PM, Jacopo Mondi wrote:
> I see in the issue a link to this patch series
 > ... *snip* ...
> So we allow users of the libcamera API to set a desired sensor
> configuration but it has to be correct otherwise the camera
> configuration fails.

Honestly I think that's reasonable and okay. I don't understand why it 
would be desirable for a gstreamer pipeline (which are, as far as I 
understand, typically statically defined) to be able to enumerate sensor 
modes--maybe for some of the nice auto-negotiation between stages--but 
in most any setup I can think of, it's about telling libcamera what is 
desired instead of defaulting to the automagic selection.

> I presume the gstreamer patches need to be ported to this new
> mechanism and resubmitted. Is this something you would be interested in
> looking at ? cc Nicolas as well.

I'm always happy when we can upstream something instead of having to 
maintain an (ugly) patch. I'll have a look if there's a small, clean way 
to augment libcamerasrc to take advantage of the sensor selection API.

-jk


More information about the libcamera-devel mailing list