gstreamer RTSP client

Sebastian Dröge sebastian at centricular.com
Mon Dec 14 00:47:48 PST 2015


On So, 2015-12-13 at 22:36 +0000, John wrote:
> I want to display two rtsp streams (or more) on screen using
> videomixer.

First of all, use compositor (or glvideomixer) as provided by GStreamer
1.6 and newer. The old videomixer is not going to work well with live
streams like RTSP.

> Currently I have two (and would like to add more) RTSP security
> cameras and I would like to display and record them at the same time
> using videomixer and tee. Examples C programs for single streams seem
> to be easy to come by but have been unable to find a multi-stream
> capable client example.

It would work exactly the same as an application with a single stream
to a videomixer. You would wait for the pad-added signal on rtspsrc,
from there get the pads with the RTP streams and link in a decodebin or
anything else that would decode your video. Then on the pad-added
signal of the decodebin you would request a sink pad from the
compositor element for each of the streams.

And the compositor itself would be linked further downstream to
whatever sink you want to use.


For details check the application developer's manual about the pad-
added signal and request pads. Section 8 of that document.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151214/1b952a63/attachment.sig>


More information about the gstreamer-devel mailing list