Controlling the duration of streaming

symeon.mattes symeon.mattes at gmail.com
Tue Oct 13 01:14:24 PDT 2015


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.


More information about the gstreamer-devel mailing list