<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/17 sabin <span dir="ltr"><<a href="mailto:sabin.sathian@gmail.com" target="_blank">sabin.sathian@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

I am trying play video using gstreamer plugins on imx6 with Android 4.2.2.<br>
<br>
So I started with following pipeline: gst-launch-1.0 -v --gst-debug-level=4<br>
filesrc location=/mnt/sdcard/linkin.mp4 ! qtdemux ! h264parse !<br>
amcviddec-omxgoogleh264decoder ! eglglessink<br>
and got the error:<br>
"ERROR eglglessink-platform<br>
video_platform_wrapper.c:152:platform_create_native_window: Can't create<br>
native window "<br>
I see that eglglessink cant create a window in Android (it needs X11):<br>
create-window :<br>
"If set to true, the sink will attempt to create it's own window to render<br>
to if none is provided. This is currently only supported when the sink is<br>
used under X11 flags: readable, writable Boolean. Default: true"<br>
<br>
So the next thing I tried was to disable eglglessink from creating own<br>
window (coz from the source code I could see that if no X11 window is<br>
allowed, eglglessink will try to create using Xoverlay):<br>
gst-launch-1.0 -v --gst-debug-level=4 filesrc<br>
location=/mnt/sdcard/linkin.mp4 ! qtdemux ! h264parse ! avdec_h264 !<br>
eglglessink create-window=false<br>
<br>
"40 ERROR eglglessink gsteglglessink.c:649:gst_eglglessink_start: Window<br>
handle unavailable and we were instructed not to create an internal one.<br>
Bailing out. 0:00:00.635454334 3981 0x695040 ERROR eglglessink<br>
gsteglglessink.c:676:gst_eglglessink_start: Couldn't start"<br>
<br>
Did anyone succeded in using eglglessink on Android?<br></blockquote><div><br></div><div>In android you need to provide a valid surface to the sink using the GstVideoOverlay interface.<br></div><div>I would recommend you to read the Android tutorials to understand how it works.<br>

<a href="http://docs.gstreamer.com/display/GstSDK/Android+tutorial+3%3A+Video">http://docs.gstreamer.com/display/GstSDK/Android+tutorial+3%3A+Video</a> <br><br></div><div>Cheers,<br></div><div>Andoni<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/egglessink-with-Android-tp4662661.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/egglessink-with-Android-tp4662661.html</a><br>


Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Andoni Morales Alastruey<br><br>LongoMatch:The Digital Coach<br><a href="http://www.longomatch.ylatuya.es">http://www.longomatch.ylatuya.es</a>
</div></div>