Compositor pipeline ending unexpectedly (gst_v4l2_buffer_pool_poll())

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compositor pipeline ending unexpectedly (gst_v4l2_buffer_pool_poll())

janoglezcampos
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compositor pipeline ending unexpectedly (gst_v4l2_buffer_pool_poll())

Nicolas Dufresne-5
Le jeudi 21 janvier 2021 à 06:32 -0600, janoglezcampos a écrit :

> 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)

poll() (or select() in this case) will only return this error if the file
descriptor was closed. As this is not going to happen at runtime in GStreamer, I
would suspect that it's done by the driver behind our back. You might get more
details with "GST_DEBUG=v4l2*:7" (or too much detail).

Meanwhile, I would also inspect your kernel log for possible driver issues.
Notably, UVC driver will reset and invalidate FDs when the UVC firmware crash or
stops responding.

> 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/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel