[Live-devel] Problem in transferring wav files over RTP.

Ross Finlayson finlayson at live.com
Mon Mar 22 09:39:52 PST 2004


>            I want to transfer wav files over RTP for that I used latest 
> onDemandRTSPServer. I was able transfer the files but I am unable to play 
> the same.

What media player were you using?  You should be able to play the stream 
using QuickTime Player, or VLC, or (I think) MPlayer.

>  I didn't get why it is tacking as 16-bit linear audio (L16 codec type). 
> If I want the same wave files to be transferred then what are the 
> modifications I need to do.

I'm sorry, but I don't understand what you're saying here.  If the input 
file contains 16-bits-per-sample audio data, then the data will be streamed 
- in RTP - as the "audio/L16" MIME type (i.e., 16-bit data).  Similarly, if 
the input file contains 8-bits-per-sample audio data, then the data will be 
streamed - in RTP - as the "audio/L8" MIME type (i.e., 8-bit data).

If you want 16-bit input data to be converted to 8-bit u-law for streaming, 
then you can do so by setting the variable "convertToULaw" to "True" in 
"testOnDemandRTSPServer.cpp".


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list