[Libav-user] Passing Range header in RTSP PLAY

Demers, Sebastien sdemers at rheinmetall.ca
Fri May 29 01:18:08 EEST 2020


Hi All,

I'm using ffmpeg to stream from our video server live stream (Genetec Security Center 5.9.1). It is recording as well the video feed.

To playback such recorded video, following the RTSP (https://www.ietf.org/rfc/rfc2326.txt),  I need to add a "Range" header to the PLAY request.
Example:
     Range: clock=19960213T143205Z-;time=19970123T143720Z

Anyone know how to pass this argument even from the ffmpeg command line?  I try the "-headers" argument, but that seem to be for the http request header.

I'm able to pass it some time with java/JavaCpp code like:
    int ret = av_seek_frame(_fmtCtx, -1, timestamp, AVSEEK_FLAG_BACKWARD);

Without range, the stream start 5 minutes ago, so with the timestamp I can move forward within the 5 minutes to now range.

For my scenario, that seek is not what is required.  I want to open the stream at a specific date/time, of lets say noon yesterday.

Thanks in advance,

Sébastien



More information about the Libav-user mailing list