GStreamer 1.5.2 successfully work on OSX but fail on Android?

Sebastian Dröge sebastian at centricular.com
Wed Apr 27 06:31:17 UTC 2016


On Di, 2016-04-26 at 19:40 +0800, A PU wrote:
> Thanks for the reply.
> 
> The relevant code you asked for is quite big and complex, I need some
> time to organize it and make it easy to read.

In general, a simple testcase that reproduces your problem would be
useful to have. Also really make sure to first test with the latest
GStreamer version to see if your problem was solved already. The latest
stable version at this point is 1.8.1.

> Apart from that, I have some questions that need to be clarified,
> maybe I can figure out the root cause somehow.
> 
> 1. If the datasource contains video data and audio data, but my
> pipeline only processes the video data and I don't design any
> pipeline for audio data, what will happen to it? Should there be any
> error or warning?

The video data will be dropped and cause a not-linked, which should
however not cause your pipeline to stop or see any error messages. It
will however show up in the debug logs.

> 2. To stream a video or a camera, do I need to design(or adjust)
> different pipelines for different platforms? Maybe the same pipeline
> that works on OSX doesn't work on Android or iOS?

What exactly does your pipeline look like? You said you stream an RTSP
camera, so you just use playbin with an rtsp:// URI? Or rtspsrc and …?

In general there should be no difference in the pipelines required,
except for possibly platform specific elements... which you shouldn't
have to use explicitly in your case.

> 3. Is there any method to check or monitor whether the datasource
> "really" goes through the pipeline? I mean, I did build a
> pipeline(road), but how could I sure the data(car) really processed
> by each element(drive over)? Maybe the data is stuck in the middle of
> the pipeline?

You could add pad probes to each pad to intercept buffers and/or events
and get a callback for each of them. Or take a look at the debug logs
to see what exactly happens.

> 4. I followed your suggest and set the GST_LEVEL_DEBUG to 5, but
> still no message showing up in adb logcat(though many messages did
> show up on OSX)

How did you do it, how do you initialize GStreamer in your application?
With the Java GStreamer.init() or yourself somehow?

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- 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: <https://lists.freedesktop.org/archives/gstreamer-android/attachments/20160427/23de28c4/attachment.sig>


More information about the gstreamer-android mailing list