On Wed, Sep 9, 2009 at 5:50 PM, Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I believe this because VLC is incorrectly reporting the # of bits per sample as 16, and that's the only inheritance hierarchy I can see that clearly communicates such a value. Is that correct?<br>
</blockquote>
<br></div>
What RTP payload format are you delivering to the client? u-law ("PCMU")? "L8"? Or "L16"? Only the last is 16-bits-per-sample. Once again, look closely at the "WAVAudioFileServerMediaSubsession" code for a model.<div>
<div></div><div class="h5"><br></div></div></blockquote><div><br>Here's how I implemented the subsession methods:<br><br> RTPSink * LiveG711MediaSubsession::createNewRTPSink(Groupsock *rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource *inputSource)<br>
{<br> char const* mimeType = "PCMU";<br> unsigned char payloadFormatCode = 0;<br> int sampleFrequency = 8000;<br> unsigned int numChannels = 1;<br><br> return SimpleRTPSink::createNew(envir(), rtpGroupsock,<br>
payloadFormatCode, sampleFrequency,<br> "audio", mimeType, numChannels);<br> }<br><br> FramedSource * LiveG711MediaSubsession::createNewStreamSource(unsigned int clientSessionId, unsigned int &estBitrate)<br>
{<br> // For G711, our bitrate is always going to be 64kbps<br> estBitrate = 64;<br> return LiveG711AudioStreamFramer::createNew(envir(), NULL, m_mediaSource );<br> }<br><br><br>The "LiveG711AudioStreamFramer is also something I wrote, and "m_mediaSource" is the thing that supplies my audio. For the values I supply to SimpleRTPSink, I basically copied what WAVAudioFileServerMediaSubsession was delivering for PCMU audio (8000 hz, 1 channel, etc.). <br>
<br>Still not sure what problem I'm having--I see VLC is receiving the audio stream, but it's dropping all of the data claiming the "PTS is out of range." Going to check and see what the SDP exchange looks like with openRTSP. Thanks again for all your help.<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"></blockquote></div></div>