<div dir="ltr">Thanks for the suggestion Nirbheek,<br>I tried using signals "media-constructed" as well as "media-configure", the probe callback seems to be working. However, it is invoked after the rtsp stream is subscribed by a client. Is there any way to make it work in idle state i.e. even if there no client connected?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 26, 2022 at 6:59 PM Nirbheek Chauhan via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Aniket,<br>
<br>
You can connect to the "media-constructed" event of<br>
GstRTSPMediaFactory to get the GstRTSPMedia. Then, you can get the<br>
GstBin associated with it by using element =<br>
gst_rtsp_media_get_element(media). Then, fetch whatever you want from<br>
that bin with gst_bin_get_by_name(GST_BIN (element), "name").<br>
<br>
Cheers,<br>
Nirbheek<br>
<br>
On Thu, May 26, 2022 at 4:30 PM Aniket Hande via gstreamer-devel<br>
<<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br>
><br>
> I have written a gst rtsp server application which works fine. I'm able to stream RTSP on the receiver side. The pipeline is as below<br>
><br>
>> ( udpsrc port=6310 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T,payload=(int)33" ! rtpbin name=recv_rtp ! rtpmp2tdepay ! tsparse set-timestamps=true ! tsdemux ! h264parse ! queue ! rtph264pay name=pay0 pt=96 )<br>
><br>
><br>
> I want to add a probe in between to extract frames and send them somewhere else. I'm trying to use an identity element in between where I will add a probe on its source pad.<br>
><br>
> I was successfully able to extract frames like described above in a normal gstreamer application however I'm unable to come up with how to do it in a gst rtsp server application.<br>
><br>
> Any suggestions?<br>
><br>
><br>
> --<br>
> Regards,<br>
> Aniket Hande<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><i><span style="color:rgb(11,83,148)">Regards,</span></i></div><div><i><span style="color:rgb(11,83,148)">Aniket Hande</span></i></div><div><i><span style="color:rgb(11,83,148)">Futops Technologies India Pvt Ltd.</span></i></div></div></div></div></div>