我想用 python/twisted 制作一个流服务器,它接收 WebRTC 视频流,然后对其应用一些 OpenCV 算法。
但是我找不到 WebRTC 的 python 模块。如何使用 python/twisted 发送和接收 WebRTC 视频流?
Thanks!
我已经开始整理创建 Python WebRTC 端点所需的基本块。
一种是基于 asyncio 的交互式连接建立模块:
https://github.com/jlaine/aioice https://github.com/jlaine/aioice
另一种是 libsrtp 的 Python 绑定:
https://github.com/jlaine/pylibsrtp https://github.com/jlaine/pylibsrtp
我们还需要 OpenSSL 绑定中的 SRTP 密钥支持:
https://github.com/pyca/cryptography/pull/4099 https://github.com/pyca/cryptography/pull/4099
在此之上,我们可以构建一个基于 asyncio 的 WebRTC 实现:
https://github.com/jlaine/aiortc https://github.com/jlaine/aiortc
我已经能够让 Chrome 和 Firefox 建立到基于 Python 的服务器的音频和视频流。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)