【发布时间】:2021-01-25 11:55:39
【问题描述】:
在 openCV cv2.VideoCapture() 中,我想从 webRTC 服务器接收视频流
只有 node.js 的 Janus webRTC 可用。
如何实现?
【问题讨论】:
在 openCV cv2.VideoCapture() 中,我想从 webRTC 服务器接收视频流
只有 node.js 的 Janus webRTC 可用。
如何实现?
【问题讨论】:
您应该能够为此使用 GStreamer。
cv2.VideoCapture() 接受 GStreamer 管道,因此您可以结合使用 webrtcbin 和 appsink 插件从任何 WebRTC 客户端(包括 Janus)接收流。
查看这些链接以获取有关如何操作的指导:
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
【讨论】: