I tried this:
pipewiresrc fd={1} path={2} ! videorate ! glupload ! glcolorconvert ! gldownload
video/x-raw,width=3840,height=2160
but it doesn’t work at all…
I get this error:
0:00:03.212201916 13111 0x76dbd8009f90 ERROR glcontext gstglcontext_egl.c:1287:gst_gl_context_egl_activate:<glcontextegl0> Failed to bind context to the current rendering thread: EGL_SUCCESS
0:00:03.212236906 13111 0x76dc24002320 WARN glbasefilter gstglbasefilter.c:607:gst_gl_base_filter_find_gl_context_unlocked:<gluploadelement0> error: Failed to activate the GL Context
0:00:03.226319353 13111 0x76dbd80066f0 ERROR glcontext gstglcontext_egl.c:1287:gst_gl_context_egl_activate:<glcontextegl1> Failed to bind context to the current rendering thread: EGL_SUCCESS
0:00:03.226353243 13111 0x76dc24002320 WARN glbasefilter gstglbasefilter.c:607:gst_gl_base_filter_find_gl_context_unlocked:<glcolorconvertelement0> error: Failed to activate the GL Context
0:00:03.238975710 13111 0x76dbd8005060 ERROR glcontext gstglcontext_egl.c:1287:gst_gl_context_egl_activate:<glcontextegl2> Failed to bind context to the current rendering thread: EGL_SUCCESS
0:00:03.239003150 13111 0x76dc24002320 WARN glbasefilter gstglbasefilter.c:607:gst_gl_base_filter_find_gl_context_unlocked:<gluploadelement0> error: Failed to activate the GL Context
0:00:03.239048210 13111 0x76dc24002320 WARN basetransform gstbasetransform.c:1600:gst_base_transform_default_query:<gluploadelement0:sink> no caps can be handled by this pad
0:00:03.239056800 13111 0x76dc24002320 WARN pipewiresrc gstpipewiresrc.c:1014:gst_pipewire_src_negotiate:<pipewiresrc0> error: No supported formats found
0:00:03.239059250 13111 0x76dc24002320 WARN pipewiresrc gstpipewiresrc.c:1014:gst_pipewire_src_negotiate:<pipewiresrc0> error: This element does not have formats in common with the peer
*** pw_stream_set_error called from wrong context, check thread and locking: Operation not permitted
0:00:03.239103290 13111 0x76dc24002320 WARN pipewiresrc gstpipewiresrc.c:704:on_state_changed:<pipewiresrc0> error: stream error: No supported formats found
0:00:03.239135300 13111 0x76dc24002320 WARN basesrc gstbasesrc.c:3177:gst_base_src_loop:<pipewiresrc0> error: Internal data stream error.
0:00:03.239139500 13111 0x76dc24002320 WARN basesrc gstbasesrc.c:3177:gst_base_src_loop:<pipewiresrc0> error: streaming stopped, reason not-negotiated (-4)
what am I doing wrong?