<div dir="ltr"><div><font><span style="font-family:arial,helvetica,sans-serif">Hi all,<br><br></span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif">I am new to gstreamer and i'm trying to create a pipeline to streaming by RTP a mp4 file with audio and video to an specific IP address after that I want to receive it and play it with VLC.<br>
<br></span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif">I was able to send only a video using this:<br></span></font><span style="font-family:courier new,monospace">gst-launch videotestsrc ! ffenc_mpeg4 ! rtpmp4vpay send-config=true ! udpsink host=127.0.0.1 port=5000</span><br>
<br><br>test.sdp file:<br><br><span style="font-family:courier new,monospace">   v=0<br>   m=video 5000 RTP/AVP 96<br>   c=IN IP4 127.0.0.1<br>   a=rtpmap:96 MP4V-ES/90000</span><br><br>and then it can be played with VLC:<br>
<span style="font-family:courier new,monospace">vlc test.sdp<br><br></span></div><div><font><span style="font-family:arial,helvetica,sans-serif">But I don't know how to configure a .sdp file to receive audio. For example for this pipeline:<br>
</span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif">gst-launch audiotestsrc ! ffenc_ac3 ! rtpac3pay ! udpsink host=192.168.0.221 port=5000<br></span></font></div><font><span style="font-family:arial,helvetica,sans-serif"><br clear="all">
</span></font><div><div><font><span style="font-family:arial,helvetica,sans-serif"></span></font><div><font><span style="font-family:arial,helvetica,sans-serif"></span></font></div><font><span style="font-family:arial,helvetica,sans-serif"><br>
</span></font><font><span style="font-family:arial,helvetica,sans-serif"><font><font>I would <font>like to know <font>w</font></font></font></font>hich is the best way to streaming a video with its audio by RTP? <br><br>I think that there are 2 possible ways of doing that with gstreamer but I not sure.<br>
<br></span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif">1) One of them is sending the video as I've mention before to an IP and port (for example <a href="http://127.0.0.1:5000">127.0.0.1:5000</a>) and the audio to the same IP but to a different port (for example <a href="http://127.0.0.1:5001">127.0.0.1:5001</a>) Both using the same pipeline.<br>
<br></span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif">2) The other way I've been trying is with the "rtpmux" element, my idea here is to mix audio rtp stream and video rtp stream into a single rtp stream. <br>
<br></span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif">In both case I don't where to find information of how I must configure de SDP files. I don't even know if i can do it with a single file (second case)  or if I need 2 files one for audio and another for the video<font> (first case).</font><br>
</span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif"><br></span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif"><font>So, if someone <font>could t<font>ell where <font>I</font> can fou<font>nd</font></font> a goo<font>d tutorial ab<font>out sdp files it would be gr<font>eat.</font></font></font></font></font><br>
</span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif"><br></span></font></div><div>Sorry for my english.</div><br><div><font><span style="font-family:arial,helvetica,sans-serif">-- <br>Ariel Argaņaraz<br>
<br><br></span></font>
</div></div></div>