custom variables in gst_launch

Stefan Kost ensonic at hora-obscura.de
Mon Jul 25 13:04:19 PDT 2011


hi,

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).

Stefan
> Thanks,
> Krishnan. 
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/custom-variables-in-gst-launch-tp3693701p3693701.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list