No video when using decodebin on Android

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

No video when using decodebin on Android

darvin
This post was updated on .
Hi,
I thought I'd create a new thread as this problem has little to do with my previous question. I hope that's alright.

I try to decode a h264 stream on Android using gstreamer1.0. With avdec_h264 decoder it works well (but to slow) but when using hardware accelerated decodebin the video does not display and the video surface stays black.

Here's my test pipeline that sends the stream:
gst-launch-1.0 videotestsrc is-live=true ! x264enc key-int-max=60 tune=zerolatency,fastdecode ! video/x-h264,profile=baseline ! rtph264pay ! udpsink port=5000 host=192.168.1.120

Here's the pipeline used in the Android application:
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,clock-rate=90000,payload=96 ! rtpjitterbuffer ! rtph264depay ! decodebin ! xvimagesink

I'm not sure if this has anything to do with the problem but before gstreamer initialization is completed there's the output: "OMXCodex: Failed to set standard component role 'video_decoder.vpx'".

Edit: Are there other hardware accelerated decoders I can use on Android? Or a workaround?

Thanks for your help. Kind regards.
Reply | Threaded
Open this post in threaded view
|

Re: No video when using decodebin on Android

darvin
This post was updated on .
Quick update:
I ran into the black screen problem with a Sony Xperia J device (1Ghz Snapdragon Processor (1 Core), 512 GB RAM) running Android 4.1.2.
Tonight I ran the exact same code on an Asus Nexus 10 tablet (1.7 Ghz. Dual-Core, 2GB RAM) running Android 4.4.4 and the problem did not occur. The stream lagged a bit but the video was displayed.

So is this a performance/hardware issue? Is there a possibility to improve the stream in a way that it is more efficient and runs on low-end devices as well or is hardware acceleration using decodebin all I can do to improve perfomance?
I've based my code on the Tutorial-3 (the gstreamer1.0 port) of the gstreamer android examples. Can this code be further improved?

Thanks for your help. Kind regards.
Matthias


Edit: Grammar + clarification

Reply | Threaded
Open this post in threaded view
|

Re: No video when using decodebin on Android

jackie
hi, darvin ,you can try the androidmedia plugin as decoder, I tryed this and succeed, however I modify it when I test;
z
Reply | Threaded
Open this post in threaded view
|

Re: No video when using decodebin on Android

z
hi,i encounter hardware decoder error,can you help me how to use android
media in gstreamer ,i am white ,thanks.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel