2014-05-22 69 views
5

以下是.MPD文件的快照:MPEG-DASH.MPD文件中的時間/持續時間格式?

<MPD type="static" xmlns="urn:mpeg:DASH:schema:MPD:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="PT1.5S" mediaPresentationDuration="PT0H1M59.89S"> 
<ProgramInformation moreInformationURL="http://gpac.sourceforge.net"> 
    <Title>Media Presentation Description for file hdworld_0696kbps_ffmpeg_track1.mp4 generated with GPAC </Title> 
</ProgramInformation> 
<Period start="PT0S" duration="PT0H1M59.89S"> 

對於時間範圍類型的屬性,如最少緩衝時間mediaPresentationDuration開始時間,他們似乎分享相同的格式。有誰知道它是什麼格式,我可以在哪裏得到一個規格?

回答

4

不知道應該是一個規範,也沒有在標準中找到它,但是從我迄今收集的格式很簡單:

你總是有「PT」作爲前綴,那麼你給出了以秒(S),分鐘(M),小時(H)和天數(D)爲單位的時間範圍。幾秒鐘,分數值是可能的。

回到清單捕捉您發佈

mediaPresentationDuration="PT0H1M59.89S"指的是0小時,1分59.89秒一個mediaPresentationDuration。

minBufferTime="PT1.5S"引用minBufferTime 1.5秒。

start="PT0S"表示開始時間爲「at」0秒。

+0

感謝您的信息,但我仍然在尋找這個規範;) – Drake