Assistance Needed for Cross-Browser Video Streaming from Webcam

Hi team,

I recently attempted to stream video from my webcam to a web browser. I successfully achieved video streaming in Mozilla Firefox, but unfortunately, I encountered issues while trying to stream the video in Chrome and other web browsers. I have included the pipeline below for your reference.


gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,width=1280,height=720 ! clockoverlay shaded-background=true font-desc=“Sans 38” ! theoraenc ! oggmux ! tcpserversink host= port=8080

Mozilla Firefox - working fine


Could you please review it and provide a solution to ensure compatibility with various web browsers?


It’s quite uncommon for browsers to support raw TCP streaming, and in OGG. For low latency, I’d suggest using webrtcsink, if latency is less important, hlssink or dashsink seems more scalable.

Or alternatively, streaming WebM via plain HTTP would also work but has higher latency than webrtcsink and is less scalable than HLS/DASH. But simpler.

1 Like