<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 1 juil. 2017 6:59 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_1134397050110335262divtagdefaultwrapper" 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_1134397050110335262LPlnk541537" 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></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Creating an "encoder" for that would be nice, it's currently missing. It does not seem too complex either. Note that RTP can support raw pcm directly, if that's an option for you.</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_1134397050110335262divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<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><font color="#888888">
<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>
</font></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>