Skip to content

Two RTSP streams from one camera #68

@jkaniuka

Description

@jkaniuka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions