<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><p style="font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style="color: #0326cc">Hi chmario,</span></p><p style="font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style="color: #0326cc"><br></span></p><span style="color: rgb(3, 38, 204); font-family: Monaco; font-size: 11px; ">   Below is the pipeline I used which works.  I think maybe you need to add   " </span><font color="#0326cc" face="Monaco"><span style="font-size: 11px;">audioconvert ".  </span></font><BR><p style="font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style="color: #0326cc"><br></span></p><p style="font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style="color: #0326cc">mAudioSendPipeline</span><span style="color: #000000"> = GstAppSrcUdpSinkPipeline.createInstance(</span>"appsrc block=true is-live=true name=app_src  ! audioconvert ! audioresample ! mulawenc ! rtppcmupay ! udpsink name=udp_sink clients=192.168.1.106:50000"<span style="color: #000000">,</span>"audio/x-raw-int,rate=48000,width=16,channels=1,endianness=1234,depth=16,signed=(boolean)true"<span style="color: #000000">, 1920, </span>"127.0.0.1"<span style="color: #000000">, 5000);</span></p>
<p style="font-size: 11px; font-family: Monaco; ">    <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #0326cc">mAudioSendPipeline</span>.startPipeline();</p><br><div>> Date: Tue, 15 Jul 2014 18:05:14 -0700<br>> From: chmario@hotmail.com<br>> To: gstreamer-devel@lists.freedesktop.org<br>> Subject: appsrc audio pipe line.<br>> <br>> I am trying to write an application using appsrc plugin. With the simplest<br>> pipeline the data flows ok, (appsrc -> autoaudiosink), I am able to get the<br>> "need-data" signal and push the data buffer, but if  I add elements  between<br>> appsrc and autoaudiosink for example  (appsrc -> queue -> autoaudiosink) I<br>> got a bus error form appsrc "Internal data flow error".<br>> The properties I am setting in appsrc are:<br>>      GstCaps *caps = gst_caps_new_full(gst_structure_new ("audio/x-raw-int",<br>>                                                         "channels", G_TYPE_INT, 1,<br>>                                                      "rate", G_TYPE_INT, 44100,    <br>>                                                  "width", G_TYPE_INT, 16,      <br>>                                                  "depth", G_TYPE_INT, 16,<br>>                                                        "signed", G_TYPE_BOOLEAN, 1,                                                                                                                   <br>>                                                         "endianness", G_TYPE_INT, 1234,                                                                <br>>                                                         NULL),<br>>                                                    NULL);<br>>    g_object_set (G_OBJECT (streamSrc),  "stream-type",<br>> GST_APP_STREAM_TYPE_STREAM,<br>>                                                  "format", GST_FORMAT_TIME,<br>> NULL);<br>>  g_object_set (G_OBJECT (streamSrc), "is-live", true, NULL);<br>> <br>> I would apreciate if some one can help me to figure  out why I am unable to<br>> add more elements between appsrc and autoaudiosink.<br>> Eventually I need to change autoaudiosink for some audio streaming element. <br>> <br>> Regards<br>> Mario<br>> <br>> <br>> <br>> -----<br>> MChC<br>> --<br>> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/appsrc-audio-pipe-line-tp4667945.html<br>> Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>> _______________________________________________<br>> gstreamer-devel mailing list<br>> gstreamer-devel@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br></div>                                    </div></body>
</html>