summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-09 18:40:48 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-09 18:40:48 +0000
commit35fe7137c482c76c9044d430fb3b9d6ef8b56b42 (patch)
treefd5ca57401164ca9af9a09d59f4c13a92be37b50
parent50f0378605e99fa8b0e4435781c3b9e7c8a31c1b (diff)
downloadmpv-35fe7137c482c76c9044d430fb3b9d6ef8b56b42.tar.bz2
mpv-35fe7137c482c76c9044d430fb3b9d6ef8b56b42.tar.xz
remove old example stream
add startcode values remove nonsense redownloading goal git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12163 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--DOCS/tech/mpcf.txt75
1 files changed, 12 insertions, 63 deletions
diff --git a/DOCS/tech/mpcf.txt b/DOCS/tech/mpcf.txt
index 62e6e3e804..ec74cde356 100644
--- a/DOCS/tech/mpcf.txt
+++ b/DOCS/tech/mpcf.txt
@@ -23,7 +23,6 @@ Compact
Error resistant
seeking / playback without an index
headers & index can be repeated
- checksums to allow quick redownloading of damaged parts
damaged files can be played back with minimal data lost and fast
resyncing times
@@ -228,7 +227,18 @@ backward_ptr
*_startcode
- the first bit is allways set
+ all startcodes start with 'N'
+
+main_startcode
+ 0x7A561F5F04ADULL + (((uint64_t)('N'<<8) + 'M')<<48)
+stream_starcode
+ 0x11405BF2F9DBULL + (((uint64_t)('N'<<8) + 'S')<<48)
+frame_type2_startcode
+ 0xE4ADEECA4569ULL + (((uint64_t)('N'<<8) + 'K')<<48)
+index_startcode
+ 0xDD672F23E64EULL + (((uint64_t)('N'<<8) + 'X')<<48)
+info_startcode
+ 0xAB68B596BA78ULL + (((uint64_t)('N'<<8) + 'I')<<48)
version
1 for now
@@ -508,10 +518,6 @@ info packets, SHOULD be placed at the begin of the file at least
for realtime streaming info packets will normally be transmitted when they apply
for example, the current song title & artist of the currently shown music video
- Stuffing packets
-can be used as a filler, for example to leave some empty space at the begin for
-a copy of the index
-
Unknown packets
MUST be ignored by the decoder
@@ -579,63 +585,6 @@ static inline int put_v(BufferContext *bc, uint64_t val){
return 0;
}
-
- Example stream
-
-main header
-video_stream_header (stream 0, video jpjp, timebase 30, lsb_timestamp_length=8)
-video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8)
-video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8)
-audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8)
-audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8)
-index (stream 0)
-keyframe (stream 0, msb_timestamp=0, lsb_timestamp=0)
-keyframe (stream 1, msb_timestamp=0, lsb_timestamp=0)
-keyframe (stream 2, msb_timestamp=0, lsb_timestamp=0)
-keyframe (stream 3, msb_timestamp=0, lsb_timestamp=0)
-keyframe (stream 4, msb_timestamp=0, lsb_timestamp=0)
-frame (stream 0, lsb_timestamp=1)
-frame (stream 0, lsb_timestamp=2)
-...
-frame (stream 0, lsb_timestamp=30)
-keyframe (stream 3, msb_timestamp=0, lsb_timestamp=1)
-keyframe (stream 4, msb_timestamp=0, lsb_timestamp=1)
-frame (stream 0, lsb_timestamp=31)
-frame (stream 0, lsb_timestamp=32)
-...
-frame (stream 0, lsb_timestamp=60)
-frame (stream 1, lsb_timestamp=60)
-frame (stream 2, lsb_timestamp=60)
-keyframe (stream 3, msb_timestamp=0, lsb_timestamp=2)
-keyframe (stream 4, msb_timestamp=0, lsb_timestamp=2)
-frame (stream 0, lsb_timestamp=61)
-frame (stream 0, lsb_timestamp=62)
-...
-main header
-video_stream_header (stream 0, video jpjp, timebase 30, lsb_timestamp_length=8)
-video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8)
-video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8)
-audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8)
-audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8)
-frame (stream 0, lsb_timestamp=255)
-frame (stream 0, msb_timestamp=1 lsb_timestamp=0)
-frame (stream 0, lsb_timestamp=1)
-frame (stream 0, lsb_timestamp=2)
-frame (stream 1, msb_timestamp=1 lsb_timestamp=2)
-frame (stream 2, msb_timestamp=1 lsb_timestamp=2)
-frame (stream 0, lsb_timestamp=3)
-frame (stream 0, lsb_timestamp=4)
-...
-keyframe (stream 3, msb_timestamp=0, lsb_timestamp=9)
-keyframe (stream 4, msb_timestamp=0, lsb_timestamp=9)
-main header
-video_stream_header (stream 0, video jpjp, timebase 30, lsb_timestamp_length=8)
-video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8)
-video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8)
-audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8)
-audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8)
-index (stream 0)
-
Authors
Folks from MPlayer Developers Mailinglist (http://www.mplayehrq.hu/).