制作远程视频处理应用程序的指南或资源
我正在开发一个应用程序,该应用程序从用户的相机获取图像流,将其发送到服务器,进行一些处理,然后将处理后的流发送回用户,同时服务器跟踪与用户的“会话” ,希望是实时的。目前,我刚刚从 此处 获取代码并修改它以接收和发送图像,这是有效的,但我知道必须有比这更好的方法,至少在图像压缩和连接下降时丢帧以及我可能遗漏的其他任何内容方面。我已经阅读过有关 WebRTC 的内容,但它适用于浏览器,我正在构建一个桌面应用程序。因为我确信这不是第一次有人尝试构建这样的东西,所以是否有针对这种架构的指南、通用库(最好是 Python)或通用资源?
I am working on an application that takes a stream of images from the user's camera, sends it to a server, does some processing and then sends the processed stream back to the user, while the server keeps track of the "session" with the user, hopefully in real time. Currently I just grabbed the code from here and modified it to receive and send images, which kind of works, but I know there has to be better approaches than that, at least regarding image compression and dropping frames when the connection degrades and anything else I may be missing. I have read about WebRTC but it's for browsers, and I'm building a desktop application. Since I'm sure this is not the first time someone tries to build something like this, are there any guidelines, common libraries (preferably in Python) or general resources for this kind of architecture?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WebRTC 是一个适用于浏览器的 API。它提供的功能是实时传输音频和视频的媒体堆栈,这似乎正是您所寻找的。
https://github.com/aiortc/aiortc
提供WebRTC及其底层协议的Python实现。
WebRTC is an API that is intended for browsers. The capability it provides is a media stack that transmits audio and video in realtime which seems to be what you are looking for.
https://github.com/aiortc/aiortc
provides a python implementation of WebRTC and its underlying protocols.