RTSP Url with starttime does not give correct video stream
Describe your issue
I am trying to stream videos from a HIKVISION DVR. The RTSP url has a starttime and endtime to stream a video from that time range. Example URL: rtsp://admin:admin@10.96.251.207/Streaming/tracks/401/?starttime=20211010T141904Z&endtime=20211010T144059Z
Expected Behavior
The RTSP should stream video from time mentioned in Starttime
Observed Behavior
When using GStreamer pipeline the video streamed was from earlier time than starttime. When streaming using FFMPEG the video streamed was correct as per starttime.
Setup
- Operating System: Rehl 7
- Device: Linux Vms
- GStreamer Version: 1.18.4
- Command line: gst-launch-1.0 rtspsrc location='rtsp://admin:admin@10.96.251.207/Streaming/tracks/401/?starttime=20211010T141904Z&endtime=20211010T144059Z' name=rtsp ! rtph264depay ! h264parse ! splitmuxsink name=sink mux=mp4mux max-size-time=450000000000 location=video%02d.mp4