<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi all, I was trying to send and receive audio using alsasrc and alsasink together with updsrc and udpsink as follows:<br><u>for sending:</u><br>gst-launch-0.10 -v alsasrc ! queue ! audio/x-raw-int,rate=8000,channels=1,depth=8 ! audioconvert ! speexenc ! queue ! udpsink port=5002<br><br><u>for receiving:</u><br>gst-launch-0.10 -v udpsrc port=5002 ! queue ! speexdec ! audioconvert ! queue !&nbsp; alsasink sync=false<br><br>The problem is that I have to start the receiving thread first in order to get the audio streaming through the network to work. Otherwise, I would get the following error:<br>ERROR: from element /GstPipeline:pipeline0/GstSpeexDec:speexdec0: Could not decode stream.<br><br>In other word, if I start teh reciving thread first and then start the sending thread it will work. I also tried vorbis encoder/decoder and the result is the same. BTW, I tried the same thing for video, and it works even if i start the source thread first. I mean in the case of video, the order doesn't matter, but for audio it gives me a problem. However, I think for audio also the order shouldn't matter. Does anyone know the reason? And if i have to correct what should I do? Please help me.<br><br>Thank you,<br><br>- Zelalem S. <br><br><br /><hr />check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
 <a href='http://www.microsoft.com/windows/windowslive/' target='_new'>More than messages</a></body>
</html>