basler / gst-plugin-pylon

The official GStreamer plug-in for Basler cameras
BSD 3-Clause "New" or "Revised" License
40 stars 9 forks source link

Could I use the features of the GStreamer plugin in C? #83

Open rbnrtg opened 6 months ago

rbnrtg commented 6 months ago

Hi,

I got this pipeline by modifying the BslBrightness feature in GStreamer: gst-launch-1.0 pylonsrc cam::BslBrightness=1 ! videoconvert ! autovideosink

And I want to define that same pipeline in C: pipeline = gst_pipeline_new ("pipeline"); src = gst_element_factory_make ("pylonsrc", "my-pylonsrc"); g_object_set(src, "BslBrightness", 1, NULL); conv = gst_element_factory_make ("videoconvert", NULL); sink = gst_element_factory_make ("autovideosink", NULL);

but I receive the following error: g_object_set_is_valid_property: object class 'GstPylonSrc' has no property named 'BslBrightness'

Is there any way to modify the Basler camera features from C?

thiesmoeller commented 6 months ago

see this example for the access in C. Same folder also has examples for python access https://github.com/basler/gst-plugin-pylon/blob/main/tests/examples/pylon/pylonsrc.c

The camera and streamgrabber features are so called child-properties. You first have to access the "cam" or "stream" property and under these props are the real features.