Android Internal data flow error + logcat debug

Sebastian Dröge sebastian at centricular.com
Mon May 19 06:41:41 PDT 2014


On Mo, 2014-05-19 at 15:33 +0200, Lee Matthews wrote:
> Ok, I think I found out where I had a debug issue, but I don't
> understand why.
> 
> I have a java app that loads a couple of shared libraries that I
> compiled with gstreamer. One shared library acts as an audio sink, the
> other as an audio source.
> I'm currently having problems with the audio-sink.
> gst_debug_set_default_threshold() was not being set again in the audio
> sink code.
> 
> However, the audio-source was setting
> gst_debug_set_default_threshold(2) before gst_init(). Both of the
> native libraries were compiled using gstreamer_android.c - is there
> the possibility of them interfering with each other?

Well, if they're running in the same process then they will modify the
default debug threshold of all things in that process.

> Anyway, is this log more helpful ? Sorry it is rather long...

Yes, the problem is that your pipeline sends a BYTE segment to opusdec,
but opusdec requires a TIME segment. You need to add some payloading
format before sending Opus over the network, also not just because of
GStreamer reasons.

Try adding oggmux before your tcpserversink and oggdemux after your
tcpcliensrc. Alternatively you could also use RTP, but to do that over
TCP (and not just UDP) you need to use the rtpstreampay/depay elements
from 1.3.

-- 
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: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140519/65bdd50d/attachment.sig>


More information about the gstreamer-devel mailing list