GStreamer RTSP Server - How to get RTCP Informations back from the client?

Victor Zwertvaegher victor_zwertvaegher at hotmail.com
Mon May 19 04:04:48 PDT 2014


I'm new on GStreamer, and I want to make a RTSP Server and receive back the informations from the client (RTCP Packet - Packet Loss, Bandwith, etc --> Stats).
So here is my configuration of GStreamer : GStreamer 1.2.3 (gst-launch-1.0)And i code on Qt Creator.Of course I have included the both required GST Lib :
#include <gst/gst.h>#include <gst/rtsp-server/rtsp-server.h>
Here is a part of my server code to send MP4 video file to local network (for the moment) :
GstRTSPServer *server;GstRTSPMountPoints *mounts;GstRTSPMediaFactory *factory;gchar *str;
server = gst_rtsp_server_new ();mounts = gst_rtsp_server_get_mount_points (server);str = g_strdup_printf ("( "                       "filesrc location=%s ! qtdemux name=d "                       "d. ! queue ! video/x-raw, format=I420, width=1920, height=1080, framerate=(fraction)24/1 ! video/x-h264, profile=(string)high, level=(string)4, framerate=24/1 ! rtph264pay name=pay0 pt=96 config-interval=2 "                       "d. ! queue ! rtpmp4apay pt=97 name=pay1 " ")", argv[1]);
factory = gst_rtsp_media_factory_new ();gst_rtsp_media_factory_set_launch (factory, str);g_free (str);gst_rtsp_media_factory_set_shared (factory, TRUE);gst_rtsp_mount_points_add_factory (mounts, "/bunny", factory);g_object_unref (mounts);gst_rtsp_server_attach (server, NULL);And here is a part of my client code :
GstElement *pipeline;GstBus *bus;guint watch_id;
pipeline = gst_parse_launch ("playbin uri=rtsp://127.0.0.1:8554/bunny", &error);
bus = gst_pipeline_get_bus(GST_PIPELINE (pipeline));watch_id = gst_bus_add_watch(bus, bus_call, loop);gst_object_unref(bus);

To help you to help me (ah ah), I have decided to export a SVG file so you can see the detail pipeline created by the playbin too. Here is the link : https://dl.dropboxusercontent.com/u/36240911/pipeline.svg
So, my problem is that I want to put some UDPSrc on the both UDPSink created by the playbin and linked to the send_rtcp_src_0 and send_rtcp_src_1 to retrieve the right information. But I don't know how to know the port number and how really make the UDPSrc (if it's UDPSrc that I have to create to retrieve the right information).
Thanks a lot for your help !If you need any further information, don't hesitate to ask me.



 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140519/a53cb9fe/attachment.html>


More information about the gstreamer-devel mailing list