Question about gst-launch capabilities

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about gst-launch capabilities

HernanMassone
Hi folks,
I am runing gst-launch and i trying change the element parameters "on the
fly".
In others words, while pipeline runs I want change the elements parameters.
¿I can do this?

Regards.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about gst-launch capabilities

Tim Müller
On Wed, 2018-01-31 at 13:24 -0700, HernanMassone wrote:

Hi,

> I am runing gst-launch and i trying change the element parameters "on
> the fly".
> In others words, while pipeline runs I want change the elements
> parameters.
> ¿I can do this?

That's not possible if you use the gst-launch-1.0 command line tool.
This tool is primarily for debugging purposes.

I would recommend you write a little C application or python script and
use the gst_parse_launch() API to create a pipeline from a pipeline
string if you like. You can then modify things on the fly in your own
code.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about gst-launch capabilities

Todd Fischer
On Wed, 2018-01-31 at 13:24 -0700, HernanMassone wrote:

Hi,

> I am runing gst-launch and i trying change the element parameters "on
> the fly".
> In others words, while pipeline runs I want change the elements
> parameters.
> ¿I can do this?

GStreamer Daemon was developed to create pipelines in a manner similar to
gst-launch, but then let you control the pipelines after they are created.
You can pause, play, get bus messages, and set element parameters, among
other features.  There are several videos and lots of documentation
available.  You can start at
https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon

Basically you put GStreamer Daemon in the background, then use gst-client to
create and control your pipelines.

Todd Fischer
RidgeRun



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about gst-launch capabilities

Todd Fischer
In reply to this post by HernanMassone
On Wed, 2018-01-31 at 13:24 -0700, HernanMassone wrote: 

Hi, 

> I am runing gst-launch and i trying change the element parameters "on 
> the fly". 
> In others words, while pipeline runs I want change the elements 
> parameters. 
> ¿I can do this? 

GStreamer Daemon was developed to create pipelines in a manner similar to gst-launch, but then let you control the pipelines after they are created.  You can pause, play, get bus messages, and set element parameters, among other features.  There are several videos and lots of documentation available.  You can start at https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon

Basically you put GStreamer Daemon in the background, then use gstd-client to create and control your pipelines. 

Here is a quick example:

gstd &
gstd-client pipeline_create testpipe videotestsrc name=vts ! autovideosink
gstd-client pipeline_play testpipe
gstd-client element_set testpipe vts pattern ball
gstd-client pipeline_stop testpipe
gstd-client pipeline_delete testpipe

Notice the syntax for gstd-client pipeline_create is the same syntax as supported by gst-launch.

Todd Fischer 
RidgeRun


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel