RidgeRun / gst-interpipe

GStreamer plug-in for interpipeline communication
Other
143 stars 64 forks source link

libcamerasrc with interpipesrc/sink hangs #155

Open smatton opened 6 months ago

smatton commented 6 months ago

Hello,

I am attempting to emulate https://developer.ridgerun.com/wiki/index.php/GstInterpipe_-_Example_1:_CCTV , but slightly differently. I have one v4l2src camera and one csi camera using libcamerasrc.I was originally using gstd and the client to set this up similar to the tutorial, but I can only get the v4l2src to work over interpipes. I have simplified it to just a gst launch command.

This one works. GST_DEBUG=4 gst-launch-1.0 -vvv v4l2src device=/dev/video0 ! video/x-raw,format=UYVY ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! interpipesink name=thermal sync=false async=false interpipesrc name=interpipesrc1 listen-to=thermal is-live=true allow-renegotiation=true stream-sync=compensate-ts ! queue ! autovideosink qos=false

This one hangs after a single frame is displayed and throws format errors with any other format.

GST_DEBUG=4 gst-launch-1.0 -vvv libcamerasrc ! capsfilter caps=video/x-raw,width=1920,height=1080,format=NV21,framerate=30/1 ! queue ! interpipesink name=rgb sync=false async=false interpipesrc name=interpipesrc1 listen-to=rgb is-live=true allow-renegotiation=true stream-sync=compensate-ts format=time ! autovideosink

What should I be looking into to get the libcamerasrc working over interpipes?

Thanks

smatton commented 6 months ago

running with GST_DEBUG=4, I see

0:00:01.861823303 5234 0x55a1601ea0 INFO interpipesrc gstinterpipesrc.c:447:gst_inter_pipe_src_event: Incoming upstream event qos 0:00:01.878531570 5234 0x55a1601ea0 INFO interpipesrc gstinterpipesrc.c:447:gst_inter_pipe_src_event: Incoming upstream event qos 0:00:01.895210060 5234 0x55a1601ea0 INFO interpipesrc gstinterpipesrc.c:447:gst_inter_pipe_src_event: Incoming upstream event qos 0:00:01.911853235 5234 0x55a1601ea0 INFO interpipesrc gstinterpipesrc.c:447:gst_inter_pipe_src_event: Incoming upstream event qos 0:00:00.6 / 99:99:99.

and it sticks here