Urgent help please! Image transfer does not occur.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Urgent help please! Image transfer does not occur.

ZAFER M. ŞEN
Hi friend.

I have a question.

I used the "gstreamer-sdk-android-arm-release-2013.61" library before and I compiled in NDK 9. I was transferring video to android on raspberry pi. I gave up using this version because of google play store libpng problem. Despite the running of the program. I can not see the image. The version I'm using is "gstreamer-1.0-android-arm-1.8.0". And the NDK version I compiled is NDK 10. Where am I making the mistake of you? There's just no video display on screen.

Android studio logcat posts below:
http://paste.ubuntu.com/23616117/

I modified main / jni / tutorial-3.c and added the following code

/* Build pipeline */
data->pipeline = gst_parse_launch("udpsrc port=8554 caps="application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, sprop-parameter-sets=\"J2QAFKwrQLj/LwDxImo\\=\\,KO4fLA\\=\\=\"", payload=96" ! rtph264depay ! ffdec_h264 ! autovideosink sync=false", &error);

tutorial-3.c :
http://paste.ubuntu.com/23616131/

and Android.mk file :

http://paste.ubuntu.com/23616134/

build.gradle file:

http://paste.ubuntu.com/23616170/

thankyou
I do not know English very well. I hope. I have used a descriptive language.
Reply | Threaded
Open this post in threaded view
|

Re: Urgent help please! Image transfer does not occur.

Sebastian Dröge-3
On Sun, 2016-12-11 at 14:33 -0800, ZAFER M. ŞEN wrote:

> Hi friend.
>
> I have a question.
>
> I used the "gstreamer-sdk-android-arm-release-2013.61" library before and I
> compiled in NDK 9. I was transferring video to android on raspberry pi. I
> gave up using this version because of google play store libpng problem.
> Despite the running of the program. I can not see the image. The version I'm
> using is "gstreamer-1.0-android-arm-1.8.0". And the NDK version I compiled
> is NDK 10. Where am I making the mistake of you? There's just no video
> display on screen.
First of all, try to use the latest stable version. That is, 1.10.2 at
this point:
https://gstreamer.freedesktop.org/data/pkg/android/1.10.2/

> Android studio logcat posts below:
> http://paste.ubuntu.com/23616117/
>
> I modified main / jni / tutorial-3.c and added the following code
>
> /* Build pipeline */
> data->pipeline = gst_parse_launch("udpsrc port=8554 caps="application/x-rtp,
> media=video, clock-rate=90000, encoding-name=H264,
> sprop-parameter-sets=\"J2QAFKwrQLj/LwDxImo\\=\\,KO4fLA\\=\\=\"", payload=96"
> ! rtph264depay ! ffdec_h264 ! autovideosink sync=false", &error);
There is no ffdec_h264 in GStreamer 1.x, it is called avdec_h264
now. Please do proper error checking in your application, the above
should've put something into the GError, like you can also see in
logcat.

And after that, setting the pipeline state to PLAYING or PAUSED
should've failed, and you probably also received an ERROR message.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Urgent help please! Image transfer does not occur.

ZAFER M. ŞEN
Thank you sir. I solved the problem. First, I used the stable version. https://gstreamer.freedesktop.org/data/pkg/android/1.10.2/

In NDK version NDK 11c was used

Then I edited gst_parse_launch in tutorial-3.c as follows.

 data->pipeline = gst_parse_launch("udpsrc port=8554 caps=\"application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\\\"Z0KAHukBQHpCAAAH0AAB1MAI\\\\=\\\\=\\\\,aM48gA\\\\=\\\"\" ! rtph264depay ! avdec_h264 ! decodebin ! autovideosink", &error);



And then it worked :)