Hi,
Is it possible to use seek function with range clock information. For ex. how i can seek to 20200706T120000Z date. Is it possible? When i try simple seek, it says not seekable. Thank u. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le jeudi 16 juillet 2020 à 03:47 -0500, emreoner a écrit :
> Hi, > > Is it possible to use seek function with range clock information. For ex. > how i can seek to 20200706T120000Z date. Is it possible? > > When i try simple seek, it says not seekable. Seeks are in stream-time, which is the time position in the stream, the start of the stream is time 0. If you know the start time in wall clock time of your file, it is a simple substraction to calculate the stream time. If your file has TimeCode, you can always pre-roll first (pause) read the initial timecode and then do the math. > > Thank u. > > > > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thank u for your reply.
I want to explain the issue in detail. I hava a playback rtsp stream url of a camera from Video Management System and i need to playback specific time For ex. 20200706T120000Z. I tried in sharprtsp (https://github.com/ngraziano/SharpRTSP) demo application while adding range header in rtsp play request. It is doing playback properly. Without rtsp range header it is not working In gstreamer how can i do playback or seek the specific time? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
in GStreamer you can connect the "before-send" signal and inside your callback you can add the range header something like this: gst_rtsp_message_add_header(message,GST_RTSP_HDR_RANGE,"header here"); if this is an ONVIF G recording you need to be sure to add this header for GST_RTSP_PLAY method, please referer to the docs here https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-rtspsrc.html#GstRTSPSrc-before-send regards Nicola Il 17/07/20 11:24, emreoner ha scritto: > Thank u for your reply. > I want to explain the issue in detail. > I hava a playback rtsp stream url of a camera from Video Management System > and i need to playback specific time For ex. 20200706T120000Z. > I tried in sharprtsp (https://github.com/ngraziano/SharpRTSP) demo > application while adding range header in rtsp play request. It is doing > playback properly. Without rtsp range header it is not working > > In gstreamer how can i do playback or seek the specific time? > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
Thank u for your reply, We are using kurento for rtsp2webrtc feature. Actually i am trying in the gstrtspsrc.c class which is from gst-plugins-good project. You can see my code below. I put static value for just trying range header but it is not affecting the result. add_header function is not being called. What can be the issue? gboolean add_header (GstRTSPSrc *gstrtspsrc, GstRTSPMessage *arg1, gpointer user_data){ GstRTSPMessage request = { 0 }; gst_rtsp_message_add_header (&request, GST_RTSP_HDR_RANGE, "clock=20200719T070100Z-"); return TRUE; } static GstRTSPResult gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async) { ...... ..... .... /* do play */ res = gst_rtspsrc_init_request (src, &request, GST_RTSP_PLAY, setup_url); g_signal_connect (src, "before-send", (GCallback) add_header,"clock=20200719T070100Z-"); -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |