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

rosimagesink #62

Open
kylenietfeld opened this issue Feb 9, 2024 · 1 comment
Open

rosimagesink #62

kylenietfeld opened this issue Feb 9, 2024 · 1 comment

Comments

@kylenietfeld
Copy link

kylenietfeld commented Feb 9, 2024

I am struggling to find a gstreamer pipeline that works with this plugin. This pipeline has worked for me with the standard installation of gstreamer is:

gst-launch-1.0 -v udpsrc port=5600 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink

So I thought to change out autovideosink with rosimagesink and add ros-topic="image". I don't get an error when I run the below command with this plugin, but it never successfully starts running. Any ideas?

gst-launch-1.0 -v udpsrc port=5600 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! rosimagesink' ros-topic="image"

Thank you and any help is appreciated!

@BrettRD
Copy link
Owner

BrettRD commented Mar 17, 2024

Gstreamer pipelines run everything in the same thread unless you split them with a queue element.

In this pipeline:

  • udpsrc will be waiting (blocking) for packets
  • rosimagesink will be waiting (blocking) for its first message

If you add a queue anywhere in this pipeline, it should relieve the deadlock

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

2 participants