how to bypass the "gstglcolorconvertelement" during playback?

Nicolas Dufresne nicolas at ndufresne.ca
Mon Sep 3 14:07:37 UTC 2018


Le lun. 3 sept. 2018 07:57, tugouxp <13824125580 at 163.com> a écrit :

> hi folks:
>
> i am testing the gst playback function with following commands:
>       gst-launch-1.0 playbin uri=file:///mnt/UDISK/xingji.mp4
> video-sink="glimagesink x=0 y=0 width=400 height=400"
> my display hardware support hardware overlay function(support isolated
> graphic layers of rgb and yuv),  so i expect the video would be displayed
> on a independent yuv layer, not share with the GUI layer.
> but beyond my expection, i found from the display registers that only ONE
> RGB layer was used during the playback ,which means the video and RGB are
> mixed together to the some  GUI layer.
>

This is what GL rendering means. The GPU renders everything into one frame
buffer. To use overlays (or underlays as found on modern hw) like you
describe you would need a capable compositor (none of Weston, gnome-shell
or Kwin supports this) and use waylandsink.


> and the GST pipeline flow shows that. too, you can see that there are
> extra "gstglcolorconvertelement"  elements doing the covert operation
> frome  YUV12 format to RGB .
> that was not what i wanted.
> so how to bypass the "glimagesink" elements so tath the yuv data can
> directly show on the yuv layer without convertion?
>
> thanks for your kindly help.
>
> the attachment and the following picture are same, you can refer anyone.
>
>
>
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180903/38b29656/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 41748 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180903/38b29656/attachment-0001.png>


More information about the gstreamer-devel mailing list