<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" 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><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?<br>
<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%" tabindex="-1">
<div id="divRplyFwdMsg" 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> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> Raw audio MPEG TS streaming</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" 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,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="LPlnk541537" previewremoved="true"><span style="color: rgb(0, 0, 0);">https://gstreamer.freedesktop.org/documentation/plugin-development/advanced/media-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>
</body>
</html>