<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [vlc-devel] commit: Remove non-sensical NPT
computatio</title></head><body>
<blockquote type="cite" cite>vlc | branch: master | Rémi
Denis-Courmont <rdenis@simphalempin.com> | Wed Jul  9
22:52:21 2008 +0300| [64417a25b912edb125c8a06c1f028115ba504eef]<br>
<br>
Remove non-sensical NPT computation code from c9569b35.<br>
<br>
If you want RTSP time, please come up with an algorithm that makes
some<br>
kind of sense. In the mean, it's better not to claim to support<br>
somethign we don't support.</blockquote>
<div><br></div>
<div>I remind people of the following, which I originally posted back
in January:</div>
<div><br></div>
<blockquote type="cite" cite>Date: Fri, 18 Jan 2008 17:30:11 -0700<br>
To: vlc-devel@videolan.org<br>
From: Ross Finlayson <finlayson@live555.com><br>
Subject: New support in the LIVE555 library for computing "Normal
Play Time"<br>
Cc:<br>
Bcc:<br>
X-Attachments:<br>
</blockquote>
<blockquote type="cite" cite>FYI, the latest release (2008.01.19) of
the "LIVE555 Streaming Media" code adds support for
calculating a stream's "Normal Play Time" (NPT) (as defined
in RFC 2326, section 3.6.) from a given presentation time.<br>
<br>
Note, in particular, the definition of<br>
<x-tab>       
</x-tab>MediaSubsession::getNormalPlayTime()<br>
in "liveMedia/include/MediaSession.hh".<br>
<br>
This function correctly computes the stream's current NPT either
directly from the presentation time (if it has been synchronized using
RTCP), otherwise using the information parsed from the stream's
"RTP-Info:" header, along with the current RTP timestamp. 
It also takes account of any 'seeking' that was done on the stream,
and any 'trick play' scale factor that is in effect.  (For
example, if the stream is playing with 'scale' 2.0, then NPT will
advance at 2x the rate of wall-clock time, while presentation time
remains at the rate of wall-clock time.)<br>
</blockquote>
<blockquote type="cite" cite>LIVE555 RTSP clients - such as VLC - will
likely find this function useful when updating their GUI to show the
current status of the stream.</blockquote>
<blockquote type="cite" cite><br>
Ross Finlayson<br>
Live Networks, Inc.</blockquote>
<blockquote type="cite" cite>http://www.live555.com/</blockquote>
<div><br></div>
</body>
</html>