summaryrefslogtreecommitdiffstats
path: root/DOCS/tech/mpcf.txt
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-06 02:05:34 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-06 02:05:34 +0000
commitfa0991051c8ff3431468a72a9869d4fa9121751c (patch)
tree8fc9833dcc57dcef9ab128479d5435af0fc4c7d8 /DOCS/tech/mpcf.txt
parent415c557e23928b99106a8ffe71da9e9c230cb92a (diff)
downloadmpv-fa0991051c8ff3431468a72a9869d4fa9121751c.tar.bz2
mpv-fa0991051c8ff3431468a72a9869d4fa9121751c.tar.xz
1) change date and goals slightly
2) fix 's' in info packets 3) rename sync_point to syncpoint, and frame_startcode to syncpoint_startcode git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17327 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/tech/mpcf.txt')
-rw-r--r--DOCS/tech/mpcf.txt22
1 files changed, 12 insertions, 10 deletions
diff --git a/DOCS/tech/mpcf.txt b/DOCS/tech/mpcf.txt
index c74b30be2f..4ca5bde466 100644
--- a/DOCS/tech/mpcf.txt
+++ b/DOCS/tech/mpcf.txt
@@ -1,5 +1,5 @@
========================================
-NUT Open Container Format DRAFT 20051118
+NUT Open Container Format DRAFT 20060105
========================================
@@ -23,7 +23,7 @@ Compact
~0.2% overhead, for normal bitrates
index is <10kb per hour (1 keyframe every 3sec)
a usual header for a file is about 100 bytes (audio + video headers together)
- a packet header is about ~1-8 bytes
+ a packet header is about ~1-5 bytes
Error resistant
seeking / playback without an index
@@ -243,6 +243,8 @@ info_frame: (optional)
name vb
if(type=="v")
value v
+ else if(type=="s")
+ value s
else
value vb
}
@@ -254,8 +256,8 @@ info_packet: (optional)
packet header
info_frame
-sync_point:
- frame_startcode f(64)
+syncpoint:
+ syncpoint_startcode f(64)
global_timestamp v
back_ptr v
@@ -277,8 +279,8 @@ file:
info_packet
}
while(next_code != main_startcode){
- if(next_code == frame_startcode)
- sync_point
+ if(next_code == syncpoint_startcode)
+ syncpoint
frame
}
}
@@ -316,10 +318,10 @@ main_startcode
stream_starcode
0x11405BF2F9DBULL + (((uint64_t)('N'<<8) + 'S')<<48)
-frame_startcode
+syncpoint_startcode
0xE4ADEECA4569ULL + (((uint64_t)('N'<<8) + 'K')<<48)
- frame_startcodes SHOULD be placed immediately before a keyframe if the
+ syncpoint_startcodes SHOULD be placed immediately before a keyframe if the
previous frame of the same stream was a non-keyframe, unless such
non-keyframe - keyframe transitions are very frequent
@@ -333,8 +335,8 @@ version
NUT version. The current value is 2.
max_distance
- max distance of frame_startcodes, the distance may only be larger if
- there is only a single frame between the two frame_startcodes this can
+ max distance of syncpoints, the distance may only be larger if
+ there is no more than a single frame between the two syncpoints. This can
be used by the demuxer to detect damaged frame headers if the damage
results in too long of a chain