custom variables in gst_launch

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

custom variables in gst_launch

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

Thanks,
Krishnan.
Reply | Threaded
Open this post in threaded view
|

Re: custom variables in gst_launch

Stefan Sauer
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
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: custom variables in gst_launch

Krishnan
Thanks Stefan. Is there any sample code lying around that you can point me for creating such pipeline parsing?
Reply | Threaded
Open this post in threaded view
|

Re: custom variables in gst_launch

Stefan Sauer
On 07/25/11 22:31, Krishnan wrote:
> Thanks Stefan. Is there any sample code lying around that you can point me
> for creating such pipeline parsing?

Yes the api docs you could probably found yourself on the webpage. check
gst_parse_launch().

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

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

Re: custom variables in gst_launch

Krishnan
Thanks Stefan.. I will look into the docs. I have been trying to understand the rtsp-server implementation. I couldn't follow how the factory is getting attached to the rtsp url. I could see that 'gst_rtsp_media_mapping_add_factory' function attaches the factory to the mount point in mapping. But, I couldn't find how the url is being associated with the mapping. What is the relationship between them? Does the 'url(const GstRTSPUrl *)' implementation been made in gst-plugins base? If so, how can I access its value from the application level?