Using Python to stream media using GStreamer for WebRTC and RTSP applications
summary
Python plus GStreamer actually constructs pipelines that pull RTSP camera RTP, demux and decode to raw buffers via appsink/appsrc, let Python run ML (example: bounding box face detection turned into numpy arrays) and reencode and RTP or WebRTC (VP8 demo) for browsers. Code shows elementFactory construction versus convenience gst_parse_launch vs ElementFactory for setting properties, uses callbacks on samples and needs STUN/TURN (Twilio) for reliable NAT traversal; more work than OpenCV/FFmpeg but gives buffer/meta and GPU access.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 0:37Welcome
- 1:16Agenda
- 1:43When
- 2:44Why
- 3:44Live demonstration
- 6:52Alternative approaches
- 8:18Installing GStreamer
- 9:15RTSP
- 11:06Conceptual view
- 12:26Code walkthrough
- 15:36What is WebRTC
- 18:09How WebRTC works
- 20:49Setting up WebRTC
- 22:11Running the code
- 23:53Pipeline creation
- 24:56Local hacker spaces
related talks
27mA/V Streaming Workflow in Python
17mThe future of communication on the web
58mRealtime Communication with WebRTC
22mWebRTC: Connecting Embedded, Mobile and Desktop with the Lowest Latencies
37mWebRTC: From The Ground Up
26m#javascript Audio/Video Streaming: #WebRTC APIs 101 explained
21mWebRTC A Quick Introduction
27mWebRTC: Real-Time Communications
