basler / gst-plugin-pylon

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

Changing PFS file property (pfs-location) at runtime #81

Open GRajuPy opened 10 months ago

GRajuPy commented 10 months ago

Can the PFS file property - pfs-location - be changed at run time? I can make a call:

g_object_set (G_OBJECT (_d->camsrc), "pfs-location", fileName.c_str(), NULL);

It is not returning any error, but the values from the new file are not reflected in the image quality.

Please advise,

thiesmoeller commented 10 months ago

the file currently only gets applied during startup.

What is your use case ?

GRajuPy commented 10 months ago

We want the end user to change the presets by applying different PFS files via UI per the image quality requirements (depending on camera position, light conditions, etc.)

thiesmoeller commented 10 months ago

As the PFS file contains features that can't be changed during runtime ( while the stream is running ) you would have to move the pipeline to pause state anyhow.

Would this be feasible for your application ?

GRajuPy commented 10 months ago

I'm sorry for not getting back to you sooner. Yes - we were thinking the same. We will pause the pipeline, change the pfs file property, and then put the pipeline back in the PLAYING state. We do have control to do that. Please advise,