Audio streaming from Android device microphone

Sebastian Dröge sebastian at centricular.com
Sat Feb 8 11:02:32 PST 2014


On Sa, 2014-02-08 at 12:59 +0100, JPM wrote:
> Hi,
> 
> I am trying to stream audio from android device (gstreamer 0.10) with this
> pipeline :
> 
> data->pipeline = gst_parse_launch("audiotestsrc ! audioconvert !
> audio/x-raw-int,channels=1,depth=16,width=16,rate=48000 ! rtpL16pay !
> udpsink host=192.168.1.150 port=5003", &error);
> 
> It works with audiotestsrc but when I try to stream audio from microphone :
> 
> data->pipeline = gst_parse_launch("autoaudiosrc ! audioconvert !
> audio/x-raw-int,channels=1,depth=16,width=16,rate=48000 ! rtpL16pay !
> udpsink host=192.168.1.150 port=5003", &error);
> 
> the following error appears : "Error received from element audioconvert0:
> not negotiated"
> 
> Any help ?

First try if the problem still happens with GStreamer 1.2.x.

But in general try to get a more complete debug log of the problem by
e.g. calling gst_debug_set_default_threshold(GST_LEVEL_DEBUG) before
starting your pipeline. Your "adb logcat" will be flooded with useful
information then.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140208/05c81ec4/attachment.pgp>


More information about the gstreamer-android mailing list