Compositor pipeline ending unexpectedly (gst_v4l2_buffer_pool_poll())

janoglezcampos janoglezcampos at gmail.com
Thu Jan 21 12:32:56 UTC 2021


Hello everyone,

I'm trying to do something I think is simple, but is driving me crazy.
The thing is that i want to composite 2 v4l2src into one single stream, but
after a while playing, it stops. The strange part, is that this only happens
when i add both sources, if i test them one by one, the problem disappears,
so that make me think that the problem should be with synchronizations or
timestamps.

*Pipeline:*
> gst-launch-1.0 -v compositor name=comp \
sink_0::xpos=0 sink_0::ypos=0 \
sink_1::xpos=512 sink_1::ypos=0 ! \
"video/x-raw, width=1280, height=720" ! queue ! glimagesink \
v4l2src device=/dev/video2 ! queue leaky=downstream !
image/jpeg,width=1280,height=720,framerate=30/1 ! jpegdec ! queue !
videoconvert ! videorate ! videoscale !
video/x-raw,width=512,height=354,framerate=30/1 ! comp.sink_0 \
v4l2src device=/dev/video0 ! queue leaky=downstream !
image/jpeg,width=1280,height=720,framerate=30/1 ! jpegdec ! queue !
videoconvert ! videorate ! videoscale !
video/x-raw,width=512,height=354,framerate=30/1 ! comp.sink_1

*Result:*
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not
read from resource.
Additional debug info:
gstv4l2bufferpool.c(1126): gst_v4l2_buffer_pool_poll ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
poll error 1: Invalid argument (22)
Execution ended after 0:03:35.703160250
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Xlib:  extension "NV-GLX" missing on display ":1".

Does someone knows what Im missing?? I cant make it work, I tried setting
do-timestamps and sync=false, but nothing seems to work... 
Thank you for your time.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list