<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 2 juil. 2017 8:00 AM, "Charles Chen - Contractor" <<a href="mailto:chchen@actiontec.com">chchen@actiontec.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">

<div id="m_-2770193446331866206divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi Nicolas,</p>
<p><br>
</p>
<p>Thanks for the prompt reply. I am afraid we don't have option to use RTP plugin directly because we are RTSP server application based on
<span>GStreamer's RTSP server library (gst-rtsp-server). Our ultimate goal is to feed raw PCM or LPCM audio into mpegtxmux and rtpmp2tpay. Currently there is no existing plugin to connect raw PCM audio to mpegtxmux.</span></p>
<p><span></span></p></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Gst-rtsp-server gives you complete control over the rtp payload format. Of course, you might have other reason to use MPEG ts over RTP.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_-2770193446331866206divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr"><p><span><br>
</span></p>
<p><span>When you say PCM encoder what kind of plugin is the best to implement? Is there a template that we could use, or can we use appsrc appsink method to achieve this?</span></p></div></div></blockquote></div></div></div><div dir="auto">I meant writing an element/plugin that derives from GstAudioEncoder base class. If I remember, lpcm have special ordering and some headers that need to be inserted. This could also be implement directly in mpegtsmux, considering its kind of specific.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_-2770193446331866206divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr"><p><span>
<br>
Thanks again,</span></p>
<p><span>Charles<br>
</span></p>
<p><span><br>
</span></p>
<p><span></span><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-2770193446331866206divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Charles Chen - Contractor<br>
<b>Sent:</b> Friday, June 30, 2017 2:30:17 PM<br>
<b>To:</b> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<b>Subject:</b> Raw audio MPEG TS streaming</font>
<div> </div>
</div><div class="elided-text">
<div>
<div id="m_-2770193446331866206divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<span style="color:rgb(0,0,0)">Hello,</span></p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<span style="color:rgb(0,0,0)">How to generate mpeg TS stream (RTP payload type 33) with raw audio without using any audio encoder such as AAC? I need to feed raw PCM audio into mpegtsmux and RTP </span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px">rtpmp2tpay</span><span style="color:rgb(0,0,0)">.
 I am getting pipeline link error if I:</span></p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<span style="color:rgb(0,0,0)"><br>
</span></p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
gst-launch-1.0 autoaudiosrc ! audioconvert ! capsfilter caps = "audio/x-lpcm,width=16,<wbr>channels=2,rate=48000" ! filesink location = "audiofile.raw"</p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<span style="color:rgb(0,0,0)">Looks like </span><span style="color:rgb(0,0,0)">audio/x-lpcm is not included in the supported media type list:</span></p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(228,175,10)">
<a href="https://gstreamer.freedesktop.org/documentation/plugin-development/advanced/media-types.html" id="m_-2770193446331866206LPlnk541537" target="_blank"><span style="color:rgb(0,0,0)">https://gstreamer.freedesktop.<wbr>org/documentation/plugin-<wbr>development/advanced/media-<wbr>types.html</span></a></p>
<br>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<span style="color:rgb(0,0,0)">Do I have to create a new audio/x-lpcm media type? considering possible issues to link with existing elements.</span></p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<span style="color:rgb(0,0,0)">Is it feasible to create my own plugin to convert audio/x-raw to audio/x-lpcm and then link to mpegtsmux?</span></p>
<p style="margin-right:0px;margin-left:0px;font-size:12px;line-height:normal;font-family:'Helvetica Neue';color:rgb(69,69,69)">
<br>
</p>
<p style="margin-right:0px;margin-left:0px;line-height:normal"><span style="color:rgb(69,69,69);font-family:'Helvetica Neue';font-size:12px"><span style="color:rgb(0,0,0)">Or should I use appsrc or </span></span><font color="#454545" face="Helvetica Neue"><span style="font-size:12px"><span style="color:rgb(0,0,0)">appsink
 method to do that?</span></span></font></p>
<p style="margin-right:0px;margin-left:0px;line-height:normal"><font color="#454545" face="Helvetica Neue"><span style="font-size:12px"><br>
</span></font></p>
<p style="margin-right:0px;margin-left:0px;line-height:normal"><font color="#454545" face="Helvetica Neue"><span style="font-size:12px"><span style="color:rgb(0,0,0)">Thanks and appreciate any feedback.</span></span></font></p>
<p style="margin-right:0px;margin-left:0px;line-height:normal"><font color="#454545" face="Helvetica Neue"><span style="font-size:12px"><br>
</span></font></p>
<p style="margin-right:0px;margin-left:0px;line-height:normal"><font color="#454545" face="Helvetica Neue"><span style="font-size:12px"><span style="color:rgb(0,0,0)">Charles</span></span></font></p>
<p style="margin-right:0px;margin-left:0px;line-height:normal"><br>
</p>
<p style="margin-right:0px;margin-left:0px;line-height:normal"></p>
</div>
</div>
</div></div>

<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div></div></div>