<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Thanks a lot for your help<br>> <br>> Remember that - because you're reading from a single input source - <br>> you must also change "reuseFirstSource" to "True".<br>> <br><br>I have modified that in testOnDemandRTSPServer without<br>any change in the results.<br><br>Is it possible that testOnDemandRTSPServer does some fseek, ftell<br>that may not work for stdin. By adding some diagnostics output<br>I noticed in WAVAudioFileSource.cpp that function:<br>WAVAudioFileSource*<br>WAVAudioFileSource::createNew()<br><br>gets called twice when using testOnDemandRTSPServer and it just hangs<br>after the second call when reading from stdin. Could it be that since this<br>is stdin and the header can only be read once it doesn't get the expected wav stream.<br>Using testWAVAudioStreamer causes only a single call to the the above function.<br><br>> <br>> The problem is probably that the output from your audio input device <br>> - unlike ".wav" files - does not begin with WAV file headers. <br>> Therefore the "WAVAudioFileSource" code can't set the appropriate <br>> parameters (number of channels, samplng frequency, bit rate) for the <br>> audio stream.<br>> <br><br>I think I have taken care of that. I did modify the header output of audiorecord<br>to match with the wav header format that WAVAudioFileSource.cpp expects<br>and I can run testWAVAudioStreamer (multicast) successfully:<br><br>% audiorecord -p mic -T wav | testWAVAudioStreamer<br>and I can run:<br>% audiorecord -p mic -T wav > tmp.wav<br>% cat tmp.wav | testWAVAudioStreamer<br><br>and listen to it using:<br>mplayer rtsp://192.168.1.101:8554/testStream -vo null -af volume=13.1:0<br><br>So I believe it may not be a wav header format issue.<br> I suppose it's not as simple as just changing the IP in<br>destinationAddress.s_addr to make testWAVAudioStreamer unicast ?<br><br>Thanks,<br><br>Karl<br><br><br><br>> -- <br>> <br>> Ross Finlayson<br>> Live Networks, Inc.<br>> http://www.live555.com/<br>> _______________________________________________<br>> live-devel mailing list<br>> live-devel@lists.live555.com<br>> http://lists.live555.com/mailman/listinfo/live-devel<br><br /><hr />Explore the seven wonders of the world <a href='http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>