[Live-devel] regardint every rtp packet's timestamp is same

Ross Finlayson finlayson at live555.com
Thu Sep 13 02:33:59 PDT 2012


> I used live555 to stream g711, My code is like this:
> RTPSink* AudioOnDemandMediaSubsession::createNewRTPSink(Groupsock* rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource* inputSource)
> {
>    char const* mimeType=”PCMU”;
>          unsigned char payloadFormatCode=0;
> int sampleFrequency = 8000;
> unsigned int numChannels = 1;
> return SimpleRTPSink::Create(envir(),rtpGroupsock,payloadFormatCode,sampleFrequency,”audio”,mimeType,numChannels);
> }

This looks OK.  But what about your "createNewStreamSource()" implementation??


> In another side, I use VLC to access, but I found that every rtp packet’s timestamp is same.

That's probably because you are not setting "fPresentationTime" correctly in your input source class - i.e., the class that encapsulates your G.711 audio source.  You haven't said anything about this...

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120913/98fca84c/attachment.html>


More information about the live-devel mailing list