Controlling the duration of streaming

Chuck Crisler ccrisler at mutualink.net
Tue Oct 13 06:12:06 PDT 2015


Check the docs. A valve is just another element. It accepts anything and
transmits anything. Set the drop property to true or false. It is also
possible that you could do something with pads, they have some pretty
interesting features. Again, read about them in the docs.

On Tue, Oct 13, 2015 at 4:14 AM, symeon.mattes <symeon.mattes at gmail.com>
wrote:

> Actually I'm not using gst-launch, but I gave it as a fast alternative.
> What
> I have is the following in c:
>
>
> GstElement *input,*converter, *sampler, *encoder,  *rtp, *output,*pipeline;
>
> pipeline=gst_pipeline_new("MyNewPipeline");
> input=gst_element_factory_make("audiotestsrc",NULL);
> g_object_set(G_OBJECT(input),"freq",(gint) 500,NULL);
> converter=gst_element_factory_make("audioconvert",NULL);
> sampler=gst_element_factory_make("audioresample",NULL);
> encoder=gst_element_factory_make("alawenc",NULL);
> rtp=gst_element_factory_make("rtppcmapay",NULL);
> output=gst_element_factory_make("udpsink",NULL);
> g_object_set(G_OBJECT(output),"port",(gint)
> 5000,"host","192.168.1.2",NULL);
> gst_bin_add_many(GST_BIN(pipeline),input,converter, sampler,
> encoder,rtp,output,NULL);
> gst_element_link_many(input,converter, sampler, encoder,rtp,output,NULL);
>
>
> How do I put a valve? Could you give me some references?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Controlling-the-duration-of-streaming-tp4674038p4674049.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151013/0d6c85b5/attachment.html>


More information about the gstreamer-devel mailing list