In OpenCV how to write frame/images/Mat to RTMP/RTSP stream, to display the result from the server to client (HTML/Webpage)
I want to know if it is possible to write the frames/images/Mat
to an RTMP/RTSP
(from my server which is processing the video stream, sends the frame to the browser/other pc for displaying the result)? I used VideoWriterclass
, but I don't know if it is doing the same thing. If it is possible, then how I can do this by using OpenCV/FFMPEG
.
And also if the above one was not possible with OpenCV, then how we can use GStreamer
with OpenCV to achieve the problem?
you did not research this well.
even if you get successful with gstreamer & videowriter, you'd still need a seperate webserver for the html, and a seperate player software to show it -- all of it off-topic here.
also, please close your issue here , you're not reporting a bug, and you're only wasting anyone's time there.
Hmm maybe it is a wasting time for you, but it a big problem for me, it for two weeks that I am searching, I there must be an end side server, but the problem is I cannot successfully open the output stream pipeline. I have tried this , but I also not able to correctly open the stream, my question is very clear (If it is possible then say 'yes', if not, then say 'no' and show how it can be possible?
Becuase opencv supports GStreamer, but there is no any documentation to show how to use, so IT IS A BIG and BIG and BIG ..... BUG BUG BUG.
well, if you tried anything - why don't you show that in your question ?
and maybe looking at something like this might give you an idea of the complexity you're facing
there's also
#gstreamer
on irc (they're usually quite helpful)(also, when working with sockets, tools like wireshark might be helpful, to see, if any packets come out at all)
last, you could "reverse" your problem, and make your opencv code run inside gstreamer as a plugin
I have tried lot of ways, in my google search all the links about opencv and video stream, and opencv with gstreamer are in purple color, because I have already clicked them many and many times. One way that I think will work, is this:
https://gstreamer.freedesktop.org/doc...
btw,
gst-launch-1.0
is a cmdline tool, and-v
an argument for that, none of that should go into your pipeline