[Live-devel] Add audio "Mediasession" SDP in to current video Server

Ross Finlayson finlayson at live555.com
Fri Apr 10 13:43:07 PDT 2015


> what kind od ServerMediaSubsession objects I should use?

As with the video stream, you must write your own subclass of “OnDemandServerMediaSubsession”, and implement the “createNewStreamSource()” and “createNewRTPSink()” virtual functions.

Like the existing “ADTSAudioFileServerMediaSubsession” class, your subclass will implement the “createNewRTPSink()” virtual function by calling “MPEG4GenericRTPSink::createNew()” (see “liveMedia/include/MPEG4GenericRTPSink.hh”), with the following parameters (based on the SDP description that you gave):
	rtpTimestampFrequency:	48000
	sdpMediaTypeString:		“audio”
	mpeg4Mode:				"AAC-hbr”
	configString:				“1190”
	numChannels:				2

You must also implement the “createNewStreamSource()” virtual function to deliver one AAC frame at a time from your input source.  It’s important that you set “fPresentationTime” properly, if you want the audio to be properly synchronized with the video, once you later combine them in a single “ServerMediaSession”.


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/20150410/00b1ebac/attachment.html>


More information about the live-devel mailing list