<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi,<BR><br><BR>you hear a sound because you are using audiotestsrc, this elements generates a sin wave, and with the property freq you can vary the frequency of the signal.<br><BR>If you want to use the microphone substitute the AELEM with "autoaudiosrc" or "alsasrc" or "pulsesrc"...<BR>I hope it works.<BR><br><BR>cheers<BR>Stefano<BR><br><BR><br><div><hr id="stopSpelling">Date: Fri, 15 Jul 2011 22:06:07 -0700<br>Subject: How to stream audio in network using RTP<br>From: reachtoarpi@gmail.com<br>To: gstreamer-devel@lists.freedesktop.org<br><br><span class="ecxApple-style-span" style="border-collapse:collapse;font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13px">How to stream the audio which will be recorded from microphone and will be encoded in AAC codec format and will be send using RTP packetization? <br>
<br>I have used this code for server: <br>-------------------------------------- <br>#!/bin/sh <br># <br># A simple RTP server <br><br># change this to send the RTP data and RTCP to another host <br>DEST=127.0.0.1 <br><br>
AELEM=audiotestsrc <br><br>#AAC encode from the source <br>ASOURCE="$AELEM ! audioconvert" <br>AENC="faac ! rtpmp4gpay " <br><br><br>gst-launch -v gstrtpbin name=rtpbin \ <br>$ASOURCE ! $AENC ! rtpbin.send_rtp_sink_0 \ <br>
rtpbin.send_rtp_src_0 ! udpsink port=5002 host=$DEST \ <br>rtpbin.send_rtcp_src_0 ! udpsink port=5003 host=$DEST sync=false async=false \ <br>udpsrc port=5007 ! rtpbin.recv_rtcp_sink_0 <br>--------------------- <br><br>
Client code : <br><br>#!/bin/sh <br># <br># A simple RTP receiver <br><br>AUDIO_CAPS="application/x-rtp,media=(string)audio,clock-rate=(int)44100,encoding-name=(string)MPEG4-GENERIC,encoding-params=(string)1,streamtype=(string)5,profile-level-id=(string)2,mode=(string)AAC-hbr,config=(string)1208,sizelength=(string)13,indexlength=(string)3,indexdeltalength=(string)3,ssrc=(uint)853015980,payload=(int)96,clock-base=(uint)2040203639,seqnum-base=(uint)52067" <br>
#AUDIO_CAPS="application/x-rtp, media=(string)audio, clock-rate=(int)44100, encoding-name=(string)MPEG4-GENERIC, encoding-params=(string)1, streamtype=(string)5, profile-level-id=(string)2, mode=(string)AAC-hbr, config=(string)1208, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, ssrc=(uint)853015980, payload=(int)96, clock-base=(uint)2040203639, seqnum-base=(uint)52067" <br>
<br>AUDIO_DEC="rtpmp4gdepay ! faad" <br><br>AUDIO_SINK="alsasink" <br><br># the destination machine to send RTCP to. This is the address of the sender and <br># is used to send back the RTCP reports of this receiver. If the data is sent <br>
# from another machine, change this address. <br>DEST=127.0.0.1 <br> <br>gst-launch -v gstrtpbin name=rtpbin \ <br>udpsrc caps=$AUDIO_CAPS port=5002 ! rtpbin.recv_rtp_sink_0 \ <br>
rtpbin. ! $AUDIO_DEC ! $AUDIO_SINK \ <br>udpsrc port=5003 ! rtpbin.recv_rtcp_sink_0 \ <br>rtpbin.send_rtcp_src_0 ! udpsink port=5007 host=$DEST sync=false async=false <br>
<br>I am not getting any error, but what I am talking in my Microphone is not streaming.I can hear only beep sound. Please reply. <br>Thanks in advance.</span>
<br>_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</div>                                            </div></body>
</html>