RidgeRun / gstd-1.x

GStreamer Daemon is a GStreamer framework for controlling audio and video streaming using TCP messages. This version is based on GStreamer 1.x
https://developer.ridgerun.com/wiki/index.php?title=Gstd-1.0
GNU Lesser General Public License v2.1
172 stars 55 forks source link

add original create command to internal pipeline data #314

Open clogwog opened 2 years ago

clogwog commented 2 years ago

would it be possible to store the original pipeline create command that is used inside gstd, and then return that string either in list_pipelines or list_elements ?

I'm asking because when i start a pipeline with for example:

create_pipeline abcd fakesrc ! filesink location=/video/abcd.raw

and my application crashes and comes back, i want to be able to check if it is still running exactly as i need it. so if in the meantime something has changed where i need to write it to a different file (for example)

i could then retrieve the original 'create string' compare it with

abcd fakesrc ! filesink location=/video/newfile.raw

and see that it is different, so i can stop the pipeline and create a new one.. whereas if it is the same , i can just leave it be..