webrtc-streamer icon indicating copy to clipboard operation
webrtc-streamer copied to clipboard

How to specify Range Clock on RTSP stream

Open ard-be opened this issue 4 years ago • 5 comments
trafficstars

Hi Michel,

I want to playback a video recorded by my NVR by specify a Range: Clock in absolute time. I use your webrtc-streamer to play the live from RTSP url like rtsp://192.168.1.124:554/camera2 But i search, how can i use your webrtc-streamer to play my video from an absolute date time. I found an older post on live555 about this. https://live-devel.live555.narkive.com/esUSI3qm/how-to-specify-range-in-rtspclient-that-are-not-using-npt

Do you find a solution to push the range clock information to lthe RTSP server ?

Thanks,

ard-be avatar Mar 17 '21 11:03 ard-be

Hi,

This is not implement but should not be really complex to add passing an argument in the options and set the range

Best Regards, Michel.

mpromonet avatar Mar 17 '21 17:03 mpromonet

Hi, I have tested to replace the this->sendPlayCommand(m_session, continueAfterPLAY); By the new one, const char absStartTime = "20210316T130000Z"; const char* absEndTime = "20210316T140000Z"; this->sendPlayCommand(*m_session, continueAfterPLAY, absStartTime, absEndTime);

I don't have any errors but the vidéo play the live and not my playback. Do you have any idea about this ?

Thanks

ard-be avatar Mar 17 '21 17:03 ard-be

Hi,

You may try with openRTSP specifying

-U <initial-absolute-seek-time> | request that the server seek to the specified absolute time (format: "YYYYMMDDTHHMMSSZ" or "YYYYMMDDTHHMMSS.<frac>Z") before streaming
-E <absolute-seek-end-time> | request that the server end streaming at the specified absolute time (format: "YYYYMMDDTHHMMSSZ" or "YYYYMMDDTHHMMSS.<frac>Z") (used only with -U<initial-absolute-seek-time>

Best Regards, Michel.

mpromonet avatar Mar 20 '21 20:03 mpromonet

@ard-be did you find a way to do so ? I'm working on an Onvif project trying to get the edge recording from an NVR and I need to provide the 'range' header with the clock time in UTC format but I'm not able to archive that. Any help ?

MDalprato avatar May 31 '23 12:05 MDalprato

@MDalprato Sorry, we didn't work on that.

ard-be avatar Jun 12 '23 06:06 ard-be