Composite several frames into one

Nicolas Dufresne nicolas at ndufresne.ca
Wed Dec 20 14:49:06 UTC 2017


Le 20 déc. 2017 9:00 AM, "cicero" <ciceromarcus at yandex.ru> a écrit :

Greetings.

I'm looking for a reliable way to composite a bunch of video frames
into a single one on my server (arch linux amd64). As far as I know
``videomixer'' is sort of deprecated and everybody suggest ``compositor''.
Unfortunately compositor's performance is horrible in my case for some
reason (on quite powerful
6th gen mobile Xeon, maybe I'm doing something wrong, but it fails to merge
10
frames into one 720p at 25 fps). On


It still need improvement, like more optimization and thread support. Its
no different then videomixer in this regard. One trick is to set the
background to black, that helps. You can also do multiple composition in
order to use multiple threads.

the

other hand glvideomixer works as a charm,
however it fails to initialize egl context without Xorg server instance
running  (which is undesirable on a server). It fails with:

0:00:29.691145203 742 0x7f5b400e7190 WARN glbasefilter
gstglbasefilter.c:393:gst_gl_base_filter_decide_allocation: error:
Failed to initialize egl: EGL_NOT_INITIALIZED

0:00:38.723218316 549 0x7fe5bc0e69e0 INFO GST_ERROR_SYSTEM
gstelement.c:1938:gst_element_message_full_with_detils:<glcolorconvertelement2>

posting message: Failed to initialize egl: EGL_NOT_INITIALIZED

0:00:38.723237521 549 0x7fe5bc0e69e0 WARN basetransform
gstbasetransform.c:974:gst_base_transform_do_buffer
pool:<glcolorconvertelement2> Subclass failed to decide allocation

even with EGL_PLATFORM=drm

Is there a way to make opengl elements work on a server without X server? Or
is there any way to improve compositor performance?


We only support GLX and Wayland on Linux (set GST_GL_WINDOW=x11/wayland).
DRM support is being worked on.


https://bugzilla.gnome.org/show_bug.cgi?id=782923


Here is my pipeline:

https://imgur.com/a/eAisO



_______________________________________________
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/20171220/6875d25c/attachment.html>


More information about the gstreamer-devel mailing list