Stream webcam to Google Colab for AI processing
Uses VDO.Ninja's signaling infrastructure to connect browsers directly to MediaMTX running on Colab. VDO.Ninja handles NAT traversal, MediaMTX does the SFU work.
┌─────────────┐ VDO.Ninja ┌─────────────────────────┐
│ Browser │◄────signaling────────►│ Google Colab │
│ (publish) │ │ │
└──────┬──────┘ │ ┌─────────────────┐ │
│ │ │ Signaling Bridge│ │
│ WebRTC media │ │ (Node.js SDK) │ │
└──────────────────────────────┼──► │ │ │
│ │ ▼ │ │
┌─────────────┐ │ │ ┌─────────┐ │ │
│ Browser │◄──────────────────────┼──┼──│MediaMTX │ │ │
│ (view) │ WebRTC media │ │ │ (SFU) │───┼────┼──► AI Processing
└─────────────┘ │ │ └─────────┘ │ │ (OpenCV, YOLO)
│ └─────────────────┘ │
└─────────────────────────┘
Start MediaMTX and the signaling bridge. Copy the Room ID.
Open the publish page, enter Room ID, select camera, start streaming.
MediaMTX receives the stream. Colab processes frames with Python/AI.