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

Two RTSP streams from one camera #68

Open
2 tasks done
jkaniuka opened this issue Jan 13, 2025 · 2 comments
Open
2 tasks done

Two RTSP streams from one camera #68

jkaniuka opened this issue Jan 13, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@jkaniuka
Copy link

jkaniuka commented Jan 13, 2025

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

I would like to have two RTSP streams from one camera - left image on port 8554 and right image on port 8555.

Steps to Reproduce

  1. gst-zed-rtsp-launch zedsrc -a 172.16.16.6 -p 8554 camera-sn=44073968 camera-fps=60 camera-resolution=1 stream-type=0 ! autovideoconvert ! nvvidconv ! nvv4l2h264enc ! rtph264pay pt=96 name=pay0
  2. gst-zed-rtsp-launch zedsrc -a 172.16.16.6 -p 8555 camera-sn=44073968 camera-fps=60 camera-resolution=1 stream-type=1 ! autovideoconvert ! nvvidconv ! nvv4l2h264enc ! rtph264pay pt=96 name=pay0
  3. gst-launch-1.0 playbin uri=rtsp://172.16.16.6:8554/zed-stream uridecodebin0::source::latency=0
  4. gst-launch-1.0 playbin uri=rtsp://172.16.16.6:8555/zed-stream uridecodebin0::source::latency=0

Expected Result

I expect two separate RTSP streams from left and right eye on separate ports.

Actual Result

I can only connect to one of above streams. When I try to connect to the second one I get the following error:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://172.16.16.6:8555/zed-stream
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Unhandled error
Additional debug info:
../gst/rtsp/gstrtspsrc.c(7062): gst_rtspsrc_send (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Service Unavailable (503)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

ZED Camera model

ZED

Environment

ZED Box Orin NX 16 GB with GMSL2
ZED SDK for JetPack 6.0 GA (L4T 36.3) 4.2 (Jetson Orin, CUDA 12.2)

Anything else?

No response

@jkaniuka jkaniuka added the bug Something isn't working label Jan 13, 2025
@Myzhar
Copy link
Member

Myzhar commented Jan 13, 2025

Hi @jkaniuka
you cannot open the same camera in two different processes.
If you want a separated channel for each camera "eye" you must create two different payload from the same main stream after splitting the left/right source into two single streams.

@jkaniuka
Copy link
Author

Thank you @Myzhar for your quick response. Can you send me modified commands to achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants