<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'><div>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).</div><div><br></div><div>So here is my configuration of GStreamer : GStreamer 1.2.3 (gst-launch-1.0)</div><div>And i code on Qt Creator.</div><div>Of course I have included the both required GST Lib :</div><div><br></div><div>#include <gst/gst.h></div><div>#include <gst/rtsp-server/rtsp-server.h></div><div><br></div><div>Here is a part of my server code to send MP4 video file to local network (for the moment) :</div><div><br></div><div>GstRTSPServer *server;</div><div>GstRTSPMountPoints *mounts;</div><div>GstRTSPMediaFactory *factory;</div><div>gchar *str;</div><div><br></div><div>server = gst_rtsp_server_new ();</div><div>mounts = gst_rtsp_server_get_mount_points (server);</div><div>str = g_strdup_printf ("( "</div><div> "filesrc location=%s ! qtdemux name=d "</div><div> "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 "</div><div> "d. ! queue ! rtpmp4apay pt=97 name=pay1 " ")", argv[1]);</div><div><br></div><div>factory = gst_rtsp_media_factory_new ();</div><div>gst_rtsp_media_factory_set_launch (factory, str);</div><div>g_free (str);</div><div>gst_rtsp_media_factory_set_shared (factory, TRUE);</div><div>gst_rtsp_mount_points_add_factory (mounts, "/bunny", factory);</div><div>g_object_unref (mounts);</div><div>gst_rtsp_server_attach (server, NULL);</div><div>And here is a part of my client code :</div><div><br></div><div>GstElement *pipeline;</div><div>GstBus *bus;</div><div>guint watch_id;</div><div><br></div><div>pipeline = gst_parse_launch ("playbin uri=rtsp://127.0.0.1:8554/bunny", &error);</div><div><br></div><div>bus = gst_pipeline_get_bus(GST_PIPELINE (pipeline));</div><div>watch_id = gst_bus_add_watch(bus, bus_call, loop);</div><div>gst_object_unref(bus);</div><div><br></div><div><br></div><div>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 : <a href="https://dl.dropboxusercontent.com/u/36240911/pipeline.svg" target="_blank" style="font-size: 12pt;">https://dl.dropboxusercontent.com/u/36240911/pipeline.svg</a></div><div><br></div><div>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).</div><div><br></div><div>Thanks a lot for your help !</div><div>If you need any further information, don't hesitate to ask me.</div>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"></div>
</div></body>
</html>