Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rbnrtg opened this issue Jan 19, 2024 · 1 comment
Open

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

rbnrtg opened this issue Jan 19, 2024 · 1 comment

Comments

@rbnrtg
Copy link

rbnrtg commented Jan 19, 2024

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants