In openCV cv2.VideoCapture(), I want receive video stream from webRTC server Only Janus webRTC of node.js is available.
cv2.VideoCapture()
How can it be implemented?
You should be able to use GStreamer for that.
cv2.VideoCapture() accepts a GStreamer pipeline, so you can use the webrtcbin and appsink plugins combined to receive a stream from any WebRTC client (including Janus).
webrtcbin
appsink
Check out these links for guidance on how to do so:
https://answers.opencv.org/question/202017/how-to-use-gstreamer-pipeline-in-opencv/ https://gstreamer.freedesktop.org/documentation/webrtc/index.html?gi-language=python https://gstreamer.freedesktop.org/documentation/application-development/basics/init.html?gi-language=python
1.4m articles
1.4m replys
5 comments
57.0k users