Mercurial > mplayer.hg
comparison DOCS/tech/mpcf.txt @ 9347:97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
index_flag so the demuxer knows if the index is missing and doesnt need to search for it
adding start/end_stream_id to the info packet so it can cover individual streams too
author | michael |
---|---|
date | Sat, 08 Feb 2003 18:50:18 +0000 |
parents | de287fe94511 |
children | 12391e52c2f7 |
comparison
equal
deleted
inserted
replaced
9346:eb760cafaf75 | 9347:97888c25ae60 |
---|---|
1 MPlayer container format draft 0.01 | 1 nut format draft 0.02 |
2 | 2 |
3 | 3 |
4 | 4 |
5 Intro: | 5 Intro: |
6 | 6 |
89 time_base_nom v | 89 time_base_nom v |
90 time_base_denom v | 90 time_base_denom v |
91 lsb_timestamp_length v | 91 lsb_timestamp_length v |
92 fixed_fps u(1) | 92 fixed_fps u(1) |
93 codec_specific_header_flag u(1) | 93 codec_specific_header_flag u(1) |
94 reserved u(6) | 94 index_flag u(1) |
95 reserved u(5) | |
95 | 96 |
96 video_stream_header: | 97 video_stream_header: |
97 stream_header | 98 stream_header |
98 width v | 99 width v |
99 height v | 100 height v |
153 info_packet: (optional) | 154 info_packet: (optional) |
154 packet header | 155 packet header |
155 info_startcode f(64) | 156 info_startcode f(64) |
156 start_time v | 157 start_time v |
157 end_time v | 158 end_time v |
159 start_stream_id v | |
160 end_stream_id v | |
158 for(;;){ | 161 for(;;){ |
159 type b | 162 type b |
160 if(type=="") break; | 163 if(type=="") break; |
161 name b | 164 name b |
162 value b | 165 value b |
202 file_size | 205 file_size |
203 size in bytes, can be 0 if not meaningfull (realtime streams, ...) | 206 size in bytes, can be 0 if not meaningfull (realtime streams, ...) |
204 | 207 |
205 length_in_msec | 208 length_in_msec |
206 length of the file in milli seconds (can be 0 if realtime or such) | 209 length of the file in milli seconds (can be 0 if realtime or such) |
210 | |
211 index_flag | |
212 1 indicates that this file has an index | |
213 Note, all files MUST have an index at the end except, (realtime) streams | |
207 | 214 |
208 stream_id | 215 stream_id |
209 Note: streams with a lower relative class MUST have a lower relative id | 216 Note: streams with a lower relative class MUST have a lower relative id |
210 so a stream with class 0 MUST allways have a id which is lower then any | 217 so a stream with class 0 MUST allways have a id which is lower then any |
211 stream with class > 0 | 218 stream with class > 0 |
328 | 335 |
329 start_time, stop_time | 336 start_time, stop_time |
330 the time range in msecs to which the info applies | 337 the time range in msecs to which the info applies |
331 Note: can be used to mark chapters | 338 Note: can be used to mark chapters |
332 | 339 |
340 start_stream_id / end_stream_id | |
341 the stream(s) to which the info packet applies | |
342 | |
333 type | 343 type |
334 the fourcc of the type | 344 the fourcc of the type |
335 for example: "STR " -> String or "JPEG" -> jpeg image | 345 for example: "UTF8" -> String or "JPEG" -> jpeg image |
336 0 length means end | 346 0 length means end |
337 | 347 |
338 name | 348 name |
339 the name of the info entry, valid names are | 349 the name of the info entry, valid names are |
340 "Author","Description","Copyright","Encoder","Title","CDCover" | 350 "Author" |
351 "Description" | |
352 "Copyright" | |
353 "Encoder" the name& version of the software used for encoding | |
354 "Title" | |
355 "CDCover" an image of he cd cover (preferable PNG or JPEG) | |
356 "Source" "DVD", "VCD", "CD", "MD", "FM radio", "VHS", "PAL-TV", | |
357 "NTSC-TV", "LD" | |
358 "CaptureDevice" "BT878", "BT848", ... (more exact names are fine too) | |
341 Note: if someone needs some others, please tell us about them, so we can | 359 Note: if someone needs some others, please tell us about them, so we can |
342 add them to the official standard (if they are sane) | 360 add them to the official standard (if they are sane) |
343 | 361 |
344 value | 362 value |
345 | 363 |