<div dir="ltr">Hello <br><br>I try to create a little rtp server with gstreamer in C or in ruby.<br><br>Where can I find a translation of this line &quot;gst-launch-0.10 -v gstrtpbin name=rtpbin \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
filesrc location=&quot;/data/file.mp3&quot; ! mad ! audioconvert !&nbsp; rtpL16pay !
rtpbin.send_rtp_sink_0&nbsp; rtpbin.send_rtp_src_0 ! udpsink port=5000&nbsp; &quot;<br>in C or in ruby.<br><br><br>I wrote this code in ruby<br><br>def create_pipeline_hard<br>&nbsp; # Create a pipeline to hold the elements<br>&nbsp; pipeline = Gst::Pipeline.new(&quot;my_<div dir="ltr">
pipeline&quot;)<br>&nbsp; <br>&nbsp; filesrc=Gst::ElementFactory.make(&quot;filesrc&quot;,&quot;filesrc&quot;)<br>
&nbsp; filesrc.location=FILE_ONE<br><br><br>&nbsp; mad=Gst::ElementFactory.make(&quot;mad&quot;)<br>&nbsp; audioconvert=Gst::ElementFactory.make(&quot;audioconvert&quot;)<br>&nbsp; pay=Gst::ElementFactory.make(&quot;rtpL16pay&quot;)<br><br>
&nbsp; @rtpbin=Gst::ElementFactory.make(&#39;gstrtpbin&#39;,&#39;rtpbin&#39;)<br>
puts @rtpbin.public_methods.inspect&nbsp; <br><br>&nbsp; udpsink=Gst::ElementFactory.make(&#39;udpsink&#39;)<br>&nbsp; pipeline.add( filesrc, mad, audioconvert, pay, @rtpbin, udpsink)<br><br>&nbsp; @rtpbin.signal_connect(&quot;pad-added&quot;) do | source, pad |<br>

puts &quot;in pad-added #{<a href="http://pad.name/" target="_blank">pad.name</a>}&quot;<br>&nbsp;&nbsp;&nbsp; if pad.name.include?(&#39;send_rtp_src&#39;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pad.link(udpsink.get_pad(&#39;sink&#39;))<br>&nbsp;&nbsp;&nbsp; end<br>&nbsp; end<br><br>&nbsp; filesrc &gt;&gt; mad &gt;&gt; audioconvert &gt;&gt; pay #Link the pads<br>

<br>#&nbsp; send_rtp_sink=@rtpbin.get_request_pad(&#39;send_rtp_sink_%d&#39;)<br>&nbsp; send_rtp_sink=@rtpbin.get_request_pad(&#39;send_rtp_sink_0&#39;)<br>&nbsp; pay.get_pad(&#39;src&#39;).link(send_rtp_sink)<br>&nbsp; <br>&nbsp; return pipeline<br>

end<br><br>the pipeline work but it don&#39;t send music<br><br><br>Thanks a lot<br>Guillaume</div></div>