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

Multiple ROS sinks from a gstreamer pipeline with tee (ROS 2) #95

Open
adeguet1 opened this issue Dec 27, 2023 · 0 comments
Open

Multiple ROS sinks from a gstreamer pipeline with tee (ROS 2) #95

adeguet1 opened this issue Dec 27, 2023 · 0 comments

Comments

@adeguet1
Copy link

I need to capture a stereo video using a Decklink card. The two channels are combined for a side-by-stereo for the viewer but I also need the unmodified videos for data collection. My gst-launch line looks like:

gst-launch-1.0 \
  decklinkvideosrc device-number=1 connection=sdi mode=1080i5994 ! deinterlace method=greedyh ! tee name=t1 \
  decklinkvideosrc device-number=0 connection=sdi mode=1080i5994 ! deinterlace method=greedyh ! tee name=t0 \
t1. ! queue ! c. \
t0. ! queue ! c. \
compositor name=c \
    sink_0::xpos=0  sink_0::ypos=0 sink_0::width=960 sink_0::height=1080\
    sink_1::xpos=960 sink_1::ypos=0  sink_1::width=960 sink_1::height=1080 ! \
    video/x-raw,width=1920,height=1080 ! \
    autovideosink \
t1. ! queue ! autovideosink \
t0. ! queue ! fpsdisplaysink video-sink=autovideosink text-overlay=true

I have two tees and one compositor so 3 outputs. Is there any way to code this in a launch file? If not, I assume I will have to code this in C++.

@adeguet1 adeguet1 changed the title Multiple ROS sinks from a gstreamer pipeline with tee Multiple ROS sinks from a gstreamer pipeline with tee (ROS 2) Dec 27, 2023
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