<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi
Sebastian,<br>
<br>
This is something that is missing in ffmpeg, if i recall
correctly the issue is that the seek_timestamp must be an int
and devisable by AV_TIME_BASE within rtspdec.c.<br>
Anyhow, what is really needed is an external text string option
for the RTSP "Range:..." field, users can then do external
calculations and populate this header themselves as text. <br>
All VMS systems differ in what they expect in the range header
and none in my opinion play by the RFC2326 rules completely, an
external text string gives you options.<br>
<br>
For us, we had to modify rtspdec.c in a few places to
accommodate this functionality, setting the
'AVFormatContext->opaque' field to non null points to our
external range generated sting. <br>
See rtspdec->rtsp_read_play(AVFormatContext *s)<br>
<br>
We then build our modified version of libavformat.dll<br>
<br>
FYI, whilst we were in rtspdec we also allowed multiple PLAY
commands to be sent without the PAUSE/PLAY as an optimization
option.<br>
<br>
Cheers,<br>
Richard.<br>
<br>
<br>
<br>
<br>
</font></font><br>
<div class="moz-cite-prefix">On 28/05/2020 23:18, Demers, Sebastien
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d805f2d2608d40248779bbb31b02c2e0@rheinmetall.ca">
<pre class="moz-quote-pre" wrap="">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 (<a class="moz-txt-link-freetext" href="https://www.ietf.org/rfc/rfc2326.txt">https://www.ietf.org/rfc/rfc2326.txt</a>), 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
_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="https://ffmpeg.org/mailman/listinfo/libav-user">https://ffmpeg.org/mailman/listinfo/libav-user</a>
To unsubscribe, visit link above, or email
<a class="moz-txt-link-abbreviated" href="mailto:libav-user-request@ffmpeg.org">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</pre>
</blockquote>
<br>
<div class="moz-signature"><font size="2" face="calibri"
color="black">
Best Regards,<br>
Richard Lince,<br>
Owner and Founder<br>
<br>
<a href="https://www.bluebox.video">bluebox.video</a> <br>
+44(0)7841665146<br>
Skype: richard.lince77<br>
</font><br>
<img alt="logo" src="cid:part2.17BBB431.A0D60CB2@bluebox.video"></div>
</body>
</html>