[Live-devel] Stream WAV audio over RTP

Ross Finlayson finlayson at live555.com
Thu Feb 6 18:52:38 PST 2014


> I am writing an application which I would like to stream 8 and 16 bit pcm audio from wav files over rtp to a receiver elsewhere on my network.  The control mechanism for this however will eventually be snmp (with SAP messages for the reciever configuration) rather than rtcp so I would like the stream to simply be rtp.
> 
> I have seen the example program 'testWAVAudioStreamer' which is clearly very close to my needs however using rtsp.
> 
> I was wondering whether there is an example available to use the libraries to send out rtp without the control protocol?

Kevin,

Sorry for the delay in responding.

Because the "test*Streamer" applications (including "testWAVAudioStreamer") transmit using IP multicast rather than IP unicast, receiving applications *do not* need to use RTSP.  RTSP just happens to be a convenient way for a receiving application to get the stream's SDP description.  (This is especially true for "testWAVAudioStreamer", because the SDP description depends upon the properties of the particular WAV audio file that it's streaming.

But there's no reason why the multicast streaming application (e.g., "testWAVAudioStreamer") can't make the SDP description available some other way - e.g., via SAP.  To do this, add the following code at line 214 of "testProgs/testWAVAudioStreamer.cpp":

	char* ourSDPDescription = sms->generateSDPDescription();

This will give you a SDP description string that you can announce using SAP.  (We don't provide code for SAP announcing; you'd have to write that yourself.)


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/20140206/9c389aa7/attachment.html>


More information about the live-devel mailing list