<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 "gst-launch-0.10 -v gstrtpbin name=rtpbin \<br>
filesrc location="/data/file.mp3" ! mad ! audioconvert ! rtpL16pay !
rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink port=5000 "<br>in C or in ruby.<br><br><br>I wrote this code in ruby<br><br>def create_pipeline_hard<br> # Create a pipeline to hold the elements<br> pipeline = Gst::Pipeline.new("my_<div dir="ltr">
pipeline")<br> <br> filesrc=Gst::ElementFactory.make("filesrc","filesrc")<br>
filesrc.location=FILE_ONE<br><br><br> mad=Gst::ElementFactory.make("mad")<br> audioconvert=Gst::ElementFactory.make("audioconvert")<br> pay=Gst::ElementFactory.make("rtpL16pay")<br><br>
@rtpbin=Gst::ElementFactory.make('gstrtpbin','rtpbin')<br>
puts @rtpbin.public_methods.inspect <br><br> udpsink=Gst::ElementFactory.make('udpsink')<br> pipeline.add( filesrc, mad, audioconvert, pay, @rtpbin, udpsink)<br><br> @rtpbin.signal_connect("pad-added") do | source, pad |<br>
puts "in pad-added #{<a href="http://pad.name/" target="_blank">pad.name</a>}"<br> if pad.name.include?('send_rtp_src')<br> pad.link(udpsink.get_pad('sink'))<br> end<br> end<br><br> filesrc >> mad >> audioconvert >> pay #Link the pads<br>
<br># send_rtp_sink=@rtpbin.get_request_pad('send_rtp_sink_%d')<br> send_rtp_sink=@rtpbin.get_request_pad('send_rtp_sink_0')<br> pay.get_pad('src').link(send_rtp_sink)<br> <br> return pipeline<br>
end<br><br>the pipeline work but it don't send music<br><br><br>Thanks a lot<br>Guillaume</div></div>