简体   繁体   中英

GStreamer with WebRTC, OpenCV-Server-Client

I don't know if I can say “I'm sorry for ask” but I spent more than a week looking for a solution without success. I have a Jetson Nano and with OpenCV I get and process an image at 4fps, I need to send this video to a web server to allow the client connected to the server get the video. Everything need to be written in C++. Because a need a low latency I did test with GStreamer and WebRTC without success. I don't have any web server ready, so I can use any implementation.

Anyone know where I can find some example implementation with this schema?

You can use mediasoup to send data to the server to then send the stream with rtp to another endpoint like gstreamer or ffmpeg.

Here is a recording project where data is sent from the browser -> server -> gstreamer -> file.

Mediasoup is written in c++ and has a wrapper for js.

I had similar problem and used such example from GStreamer WebRTC official repo. It's written in Python for Janus Gateway video rooms but I think it can be easily rewritten in C++ as you need.

In the code for OpenCV, I used V4L2Loopback as a virtual output device to be used as input for GStreamer WebRTC example.

I hope such approach may help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM