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:
./test-launch "v4l2src device="/dev/video2" ! video/x-raw, width=2560, height=720, bitrate=1000000 ! omxh264enc ! video/x-h264, profile=baseline ! rtph264pay name=pay0 pt=96"
gst-launch-1.0 rtspsrc location="rtsp://127.0.0.1:8554/test" latency=0 ! rtph264depay ! h264parse ! omxh264dec ! xvimagesink
I get the following output:
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 ...