<div dir="ltr">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.<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 4:14 AM, symeon.mattes <span dir="ltr"><<a href="mailto:symeon.mattes@gmail.com" target="_blank">symeon.mattes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Actually I'm not using gst-launch, but I gave it as a fast alternative. What<br>
I have is the following in c:<br>
<br>
<br>
GstElement *input,*converter, *sampler, *encoder,  *rtp, *output,*pipeline;<br>
<br>
pipeline=gst_pipeline_new("MyNewPipeline");<br>
input=gst_element_factory_make("audiotestsrc",NULL);<br>
g_object_set(G_OBJECT(input),"freq",(gint) 500,NULL);<br>
converter=gst_element_factory_make("audioconvert",NULL);<br>
sampler=gst_element_factory_make("audioresample",NULL);<br>
encoder=gst_element_factory_make("alawenc",NULL);<br>
rtp=gst_element_factory_make("rtppcmapay",NULL);<br>
output=gst_element_factory_make("udpsink",NULL);<br>
g_object_set(G_OBJECT(output),"port",(gint) 5000,"host","192.168.1.2",NULL);<br>
gst_bin_add_many(GST_BIN(pipeline),input,converter, sampler,<br>
encoder,rtp,output,NULL);<br>
gst_element_link_many(input,converter, sampler, encoder,rtp,output,NULL);<br>
<br>
<br>
How do I put a valve? Could you give me some references?<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Controlling-the-duration-of-streaming-tp4674038p4674049.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Controlling-the-duration-of-streaming-tp4674038p4674049.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"></div></div>