View on GitHub

Devendra's Log

Video streaming using jpeg encoding

Here’s an example of a GStreamer pipeline that produces a less CPU intensive and low latency video stream using jpeg encoding. Audio in vorbis is muxed, along with the video, into a matroska stream.

gst-launch-1.0 autovideosrc ! jpegenc ! queue ! m. autoaudiosrc ! audioconvert ! vorbisenc ! queue ! m. matroskamux name=m streamable=true ! tcpclientsink host=localhost port=9002

A server can stream it with a content type of video/x-matroska. Most browsers will not play it directly, but external plugins can be used.