custom variables in gst_launch

Stefan Kost ensonic at
Mon Jul 25 13:04:19 PDT 2011


On 07/25/11 21:20, Krishnan wrote:
> Hi,
> Is it possible to set custom variables in gst_launch pipeline? For eg, can I
> specify a timer variable in gst_launch pipeline (to run the pipeline for
> certain minutes). Example: gst-launch (timer=3! videotestsrc=1 ! x264enc !
> rtph264pay name=pay0 pt=96), by which I can use the 'timer' variable in my
> program? I presume, gst-launch makes use of gst_parse_launch() to parse the
> pipelines. 

there is no such things are variables for gst-launch. You could set
num-buffers on videotestsrc to e.g. 500 to make it eos after 500 frames.
But for anything more sophisticated you need to write an application
(that can be a simple python script).

> Thanks,
> Krishnan. 
> --
> View this message in context:
> Sent from the GStreamer-devel mailing list archive at
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list