<div dir="auto"><div>1. glimagesinkelement does not include color conversion or uploading capabilities. You want glimagesink.</div><div dir="auto">2. The raw decodebin ! glimagesink pipeline requires proxying the caps and context queries from decodebin to glimagesink.</div><div dir="auto">3. You should use playbin/playbin3 instead which performs all these steps automatically</div><div dir="auto"><br></div><div dir="auto">Cheers</div><div dir="auto">-Matt<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed., 6 Nov. 2019, 07:46 rrazavi, <<a href="mailto:reza@userful.com">reza@userful.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'm testing a simple gstreamer android application to playback H264 file,<br>
the pipeline looks like this :<br>
urisourcebin name=source ! decodebin name=proxy ! glimagesinkelement<br>
name=sink<br>
<br>
and I use autoplug signal to connect decodebin to glimagesinkelement<br><br><br>
My source is a H264 4K 30FPS file and I have tested this on 4 different<br>
modern chip-set, all of them can playback the file smoothly using VLC or<br>
android native media player.<br>
<br>
using gstreamer I keep getting error(depending on chipset changes) : <br>
sys/androidmedia/gstamcvideodec.c:1417:gst_amc_video_dec_loop:<amcvideodec-omxrkvideodecoderavc0><br>
Frame is too late, dropping (deadline -0:00:00.035990779)<br>
<br>
If I connect decodebin to a " fakesink sync=true" I wont get errors from the<br>
decoder, so I assume there are extra processes happening in GPU when we use<br>
glimagesinkelement compared to other players that are not necessary and this<br>
prevent gstreamer from having good performance. if I run this on an nvidia<br>
shield the playback is fine which I assume it's because it has a powerful<br>
GPU.<br>
Does anyone have any suggestion on how to resolve this issue ?<br>
<br>
Ihave tested against amlogic s912, allwiner H6, rockchip rk3318 and rk3328<br>
<br>
Regards<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>