Closed JuanDYB closed 2 months ago
Your mediamtx configuration assumes that you're running an RTSP server on GStreamer, but that's not the case since you're using rtspclientsink instead of building on top of gst-rtsp-server.
Remove the line "source: rtsp://mystream" from your mediamtx configuration file, and GStreamer will then publish the stream to that path assuming the rest of your code works properly. If unsure, test the setup on command line with something like:
gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink protocols=tcp location=rtsp://localhost:8554/mystream
You are using MediaMTX to pull a stream from a RTSP server, while an OpenCV script is a RTSP client. The process is different. The configuration that you need is just the default one, or alternatively, if you want to write it explicitly:
paths:
mystream:
source: publisher
Hi, I'm new to Gstreamer. I wanted to stream as RTSP live streaming from camera frames and for that I'm using Gstreamer and OpenCv, the problem is that Gstreamer only publish an RTP stream which it's not possible to see from multiple clients. That the reason to use RTSP server. So using this configuration Gstreamer will pusblish over MediaMtx server the RTSP stream? What will be the best configuration for server to reduce as less as possible the latency? I want to reduce it because I'm publishing live streaming. With regards,
Which version are you using?
v1.7.0
Which operating system are you using?
Describe the issue
I'm trying to create a live streaming using OpenCv to process images from camera. For that I'm using Gstreamer backend of OpenCv. I have tried to push frames using
rtspclientsink
in gstreamer pipeline and it fails pushing frames. I have readed this issue and also tried withprotocols=tcp
.Describe how to replicate the issue
yml
Server configuration yml I'm using provided configuration in release download. I have only modified paths section.
OpenCv Build Information
Python example
Did you attach the server logs?
yes
OpenCv Python output
Media Server output
Did you attach a network dump?
no