[英]Python openCV get VideoCapture from webRTC janus
In openCV cv2.VideoCapture()
, I want receive video stream from webRTC server Only Janus webRTC of node.js is available.
如何實施?
您應該可以為此使用 GStreamer。
cv2.VideoCapture()
接受 GStreamer 管道,因此您可以結合使用webrtcbin
和appsink
插件從任何 WebRTC 客戶端(包括 Janus)接收 stream。
查看這些鏈接以獲取有關如何執行此操作的指導:
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.