1

Hi I want to stream a WebRTC (MediaStream) video to a WebSocket (Twisted+Autobahn) and process the stream for OpenCV object detection and send it back to the client via FFServer (FFMPeg)?

I have try using only WebRTC, WebSocket and OpenCV, but the streaming is not real-time.

  • What do you think of [this](https://github.com/Computician/WebSocketWebRTCRecorders)? It does not send the stream directly, but sends images and audio packets in real time over a websocket that you provide. Disclaimer, I wrote it. – Benjamin Trent May 13 '14 at 17:23
  • Thats nice, thanks. But my requirements is python. – Greatxam Darthart May 20 '14 at 03:04

1 Answers1

1

It is not possible.

WebRTC has its own way of sending media, and it uses DTLS-SRTP as transport in a channel established with ICE.

WebSockets are based on a TCP connection from client to server in order to send raw data in both directions.

You can check this similar answer for more info.

Community
  • 1
  • 1
nakib
  • 4,304
  • 2
  • 28
  • 39