<div dir="ltr"><div><div><div><div>You could try setting the correct payload type for 2 channels 44100Hz L16. I might work<br></div>See RFC3551. Or see IANAs list of allocated payload types <a href="https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-1">https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-1</a><br><br></div>I could suggest payload type 10. Set for rtpL16pay (and for the sdp file)<br><br></div>Regards<br></div>Peter<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 12, 2017 at 7:50 PM, Josh Dickson <span dir="ltr"><<a href="mailto:joshdickson40@gmail.com" target="_blank">joshdickson40@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></div>
<div>
Hi Jan,</div><div><br></div><div>Thank you, that is definitely what I need. I have gotten that pipeline working successfully, but now when I play it (via ffplay), it sounds comically slow/distorted.</div><div><br></div><div>I am now using the pipeline:</div><div><br></div><div>gst-launch-1.0 -m filesrc location=myfile.wav ! wavparse ! audioconvert ! rtpL16pay ! udpsink host=127.0.0.1 port=12008</div><div><br></div><div>I used the -v option to produce what I thought was a correct SDP file:</div><div><br></div><div><div>v=0</div><div>o=root IN IP4 127.0.0.1</div><div>c=IN IP4 127.0.0.1</div><div>s=My Name</div><div>m=audio 12008 RTP/AVP 96</div><div>a=rtpmap:96 L16/44100</div><div>a=fmtp:96 media=audio; clock-rate=44100; encoding-name=L16; channels=2;</div><div><br></div><div>I am playing the sound with:</div><div><br></div><div>ffplay -i stream.sdp -protocol_whitelist file,udp,rtp<br></div><div><br></div><div>Ffplay does open, and the sound resembles the original song, but it is very slowed down/distorted. </div><div><br></div><div>Ffplay sees:</div><div><br></div><div><div>bitrate: 705 kb/s</div><div> Stream #0:0: Audio: pcm_s16be, 44100 Hz, 1 channels, s16, 705 kb/s</div></div><div><br></div><div>(not sure if that will help)</div><div><br></div><div>I have been trying to research what is wrong here but I am not sure what part of this I’ve messed up. Any help would be much appreciated. Thank you!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Josh</div><br>
</font></span></div><div class="HOEnZb"><div class="h5">
<div id="m_8198220321439529109psignature">
<div><br></div>
<div style="font-size:10px;color:#7e8f9f"></div>
</div>
<div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">On Fri, May 12, 2017 at 01:39 Jan Schmidt <u></u> <<a href="mailto:Jan+Schmidt+%3Cthaytan@noraisin.net%3E" target="_blank">Jan Schmidt <u></u></a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<p>Hi,<br>
</p>
<br>
<div class="m_8198220321439529109moz-cite-prefix"></div>
</div>On 12/05/17 14:43, Josh Dickson wrote:<br>
</blockquote></div>
<blockquote type="cite">
<div>
Hi,</div>
<div><br>
</div>
<div>I am sorry in advance if this is not the correct place to ask
a question…</div>
<div><br>
</div>
<div>I am trying to convert a high-quality WAV file to RTP stream.
I am successfully streaming with:</div>
<div><br>
</div>
<div>gst-launch-1.0 -m filesrc location=myfile.wav ! wavparse !
audioconvert ! audioresample ! alawenc ! rtppcmapay ! udpsink
host=127.0.0.1 port=12000</div>
</blockquote>
<br>
alaw is 8-bit @ 8khz and will generally sound awful for anything
except speech. Try rtpL16pay for 16-bit CD quality audio.<br>
<br>
Cheers,<br>
Jan.<br>
<br>
<blockquote type="cite">
<div><br>
</div>
<div>I can then check the RTP stream from ffmpeg, which shows that
is is 64 kb/s, pct_alaw, 8000 Hz, 1 channel, s16.</div>
<div><br>
</div>
<div>My WAV file is much higher quality than this (it is a sample
of music at CD quality). I thought that the problem was with
audioresample, but I have tried a number of changes and I cannot
get any of them to stream correctly. Ideally the stream should
be as high-quality as the WAV it’s generated from.</div>
<div><br>
</div>
<div>I would greatly appreciate a pointer on how I might be able
to do this. Thank you!</div>
<div><br>
</div>
<div>Josh</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<br>
</div>
<div id="m_8198220321439529109psignature">
<div><br>
</div>
</div>
<br>
<fieldset class="m_8198220321439529109mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_8198220321439529109moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a class="m_8198220321439529109moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a>
</pre>
</blockquote>
<br>
</div>
<br></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>