<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> 
<dfn><code>RTP-Info:</code></dfn>
は、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RTSPヘッダー</anchor>の1つです。</p><section><h1>構文</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> <anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;10</anchor-internal> の例を見ると <anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;7</anchor-internal> は
<code class="ABNF">&quot;RTP-Info&quot; &quot;:&quot; 1#(stream-url 1*parameter)</code>
としたかったんじゃないか?</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="15" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[15]</anchor-end> 
そうしないと <code>#<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"># (ABNF)</title></code> の用法として不適切です。</p></section><section><h1>文脈</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="14" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[14]</anchor-end> 
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RTSPメッセージ</anchor>に含めることが出来ます。</p></section><section><h1>歴史</h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="13" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[13]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2326</anchor> 12.33 RTP-Info</figcaption><blockquote><p>This field is used to set RTP-specific parameters in the PLAY response.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> この欄は RTP 規定パラメーターを PLAY 応答中で設定するのに使います。</p><blockquote><p>url:</p><p>Indicates the stream URL which for which the following RTP
parameters correspond.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> 続く RTP パラメーターが対応する stream URL を示します。</p><blockquote><p>seq:</p><p>Indicates the sequence number of the first packet of the
stream. This allows clients to gracefully deal with packets
when seeking. The client uses this value to differentiate
packets that originated before the seek from packets that
originated after the seek.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> Stream の最初の小包の連番を示します。
これによってクライアントは<rubyb xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">探索<rt xmlns="http://www.w3.org/1999/xhtml">seek</rt></rubyb>時に小包を素直に処理出来ます。
クライアントはこの値を探索の前に発生した小包を探索の後に発生した小包と区別するのに使います。</p><blockquote><p>rtptime:</p><p>Indicates the RTP timestamp corresponding to the time value in
the Range response header. (Note: For aggregate control, a
particular stream may not actually generate a packet for the
Range time value returned or implied. Thus, there is no
guarantee that the packet with the sequence number indicated
by seq actually has the timestamp indicated by rtptime.) The
client uses this value to calculate the mapping of RTP time to NPT.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> Range 応答頭の時刻値に対応する RTP 時刻印を示します。
(注意: <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">集合制御</anchor>のために、特定の stream
は実際に返された又は暗示される Range
時刻値の小包を返さないかもしれません。従って <code>seq</code>
に示される連番の小包が実際に <code>rtptime</code> 
で示された時刻印を持っている保証はありません。)
クライアントはこの値を RTP 時刻から NPT への計算に使います。</p><blockquote><p>A mapping from RTP timestamps to NTP timestamps (wall clock) is
available via RTCP. However, this information is not sufficient to
generate a mapping from RTP timestamps to NPT. Furthermore, in
order to ensure that this information is available at the necessary
time (immediately at startup or after a seek), and that it is
delivered reliably, this mapping is placed in the RTSP control
channel.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> RTP 時刻印から NTP 時刻印 (壁時計) への写像は RTCP
を通して可能です。しかし、この情報は RTP 時刻印から NPT
への写像を生成するのには十分ではありません。更に、この情報が必要な時
(開始又は探索後すぐ) 
確実に利用可能とするために、又確実に伝送するために、この写像は
RTSP 制御経路に置かれます。</p><blockquote><p>In order to compensate for drift for long, uninterrupted
presentations, RTSP clients should additionally map NPT to NTP,
using initial RTCP sender reports to do the mapping, and later
reports to check drift against the mapping.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> 長く連続表現の流れを保証するために、 RTSP
クライアントは更に、最初の RTCP
送信者報告を写像するために, 後の報告を写像の流れを確認するために使って、
NPT から NTP に写像するのが良いです。</p><blockquote><p>Syntax:</p></blockquote><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end>   RTP-Info        = &quot;RTP-Info&quot; &quot;:&quot; 1#stream-url 1*parameter</li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end>   stream-url      = &quot;url&quot; &quot;=&quot; url</li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end>   parameter       = &quot;;&quot; &quot;seq&quot; &quot;=&quot; 1*DIGIT | &quot;;&quot; &quot;rtptime&quot; &quot;=&quot; 1*DIGIT</li></ul><blockquote><p>Example:</p></blockquote><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> RTP-Info: url=rtsp://foo.com/bar.avi/streamid=0;seq=45102, url=rtsp://foo.com/bar.avi/streamid=1;seq=30211</li></ul></figure></section><section><h1>メモ</h1></section></body></html>