【问题标题】:Python openCV get VideoCapture from webRTC janusPython openCV 从 webRTC janus 获取 VideoCapture
【发布时间】:2021-01-25 11:55:39
【问题描述】:

在 openCV cv2.VideoCapture() 中,我想从 webRTC 服务器接收视频流 只有 node.js 的 Janus webRTC 可用。

如何实现?

【问题讨论】:

    标签: python webrtc janus


    【解决方案1】:

    您应该能够为此使用 GStreamer。

    cv2.VideoCapture() 接受 GStreamer 管道,因此您可以结合使用 webrtcbinappsink 插件从任何 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

    【讨论】:

      猜你喜欢
      • 2016-02-05
      • 2020-12-19
      • 1970-01-01
      • 2016-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多