Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcamerasrc with interpipesrc/sink hangs #155

Open
smatton opened this issue Mar 13, 2024 · 1 comment
Open

libcamerasrc with interpipesrc/sink hangs #155

smatton opened this issue Mar 13, 2024 · 1 comment

Comments

@smatton
Copy link

smatton commented Mar 13, 2024

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
Copy link
Author

smatton commented Mar 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant