I’ve read through a few of the RTSP forum posts and followed the steps to install gst-rtsp-server. I’m running the test-launch script now to create a server from which I want to sample 2 streams (of different sizes). For the high resolution stream I want to display it directly using a videosink, while for the low resolution stream, I want to sample frames using a OpenCV VideoCapture object, run some processing, and overlay some info on the larger stream using the gstreamer videoverlay.
I’m stuck on the first step, of streaming my v4l2src on an RTSP and reading it via an rtspsrc. This is what I’ve tried:
Server Side:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Unhandled error
Additional debug info:
gstrtspsrc.c(6161): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Service Unavailable (503)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Hi,
Do you run both server and client commands on same device? If you run server command on one device and client command on the other, you would need to connect to the IP of the server instead of 127.0.0.1.
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.1.1.0:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
but nothing opens. I think my nvoverlaysink plugin doesn’t work, how would I try it on a different sink like xvimagesink?
Thanks this works! I tried changing the stream to 60 FPS however and the quality dropped significantly. The camera can handle 60 FPS at 2560x720 in other pipelines without any drop in quality. Is there any adjustments that can be made to achieve the same quality and framerate via RTSP?