Add a probe in gstreamer rtsp server application
Aniket Hande
ahande at ftilab.com
Thu May 26 18:26:25 UTC 2022
Thanks for the suggestion Nirbheek,
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?
On Thu, May 26, 2022 at 6:59 PM Nirbheek Chauhan via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:
> Hi Aniket,
>
> You can connect to the "media-constructed" event of
> GstRTSPMediaFactory to get the GstRTSPMedia. Then, you can get the
> GstBin associated with it by using element =
> gst_rtsp_media_get_element(media). Then, fetch whatever you want from
> that bin with gst_bin_get_by_name(GST_BIN (element), "name").
>
> Cheers,
> Nirbheek
>
> On Thu, May 26, 2022 at 4:30 PM Aniket Hande via gstreamer-devel
> <gstreamer-devel at lists.freedesktop.org> wrote:
> >
> > 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
> >
> >> ( 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 )
> >
> >
> > 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.
> >
> > 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.
> >
> > Any suggestions?
> >
> >
> > --
> > Regards,
> > Aniket Hande
>
--
*Regards,*
*Aniket Hande*
*Futops Technologies India Pvt Ltd.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220526/b5f648a4/attachment.htm>
More information about the gstreamer-devel
mailing list