Mercurial > mplayer.hg
annotate DOCS/tech/mpcf.txt @ 9473:bc4adafe0561
1million litres ;)
author | alex |
---|---|
date | Fri, 21 Feb 2003 13:07:47 +0000 |
parents | 5e990417accf |
children | 89d27a306886 |
rev | line source |
---|---|
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
1 nut format draft 0.02 |
9294 | 2 |
3 | |
4 | |
5 Intro: | |
6 | |
7 Features / goals: | |
8 (supported by the format, not necessary by a specific implementation) | |
9 | |
10 Simple | |
11 use the same encoding for nearly all fields | |
9295 | 12 simple decoding, so slow cpus can handle it |
9294 | 13 Extendible |
14 no limit for the possible values for all fields (using universal vlc) | |
15 allow adding of new headers in the future | |
16 allow adding more fields at the end of headers | |
17 Compact | |
18 ~0.2% overhead, for normal bitrates | |
19 index is <10kb per hour (1 keyframe every 3sec) | |
20 Error resistant | |
21 seeking / playback without an index | |
22 headers & index can be repeated | |
23 audio packet reshuffle | |
24 checksums to allow quick redownloading of damaged parts | |
25 | |
26 | |
27 | |
28 Definitions: | |
29 | |
30 MUST the specific part must be done to conform to this standard | |
31 SHOULD its recommanded to be done that way but its not strictly required | |
32 | |
33 | |
34 | |
35 Syntax: | |
36 | |
9295 | 37 Type definitions: |
38 v | |
39 value=0 | |
40 do{ | |
41 more_data u(1) | |
42 data u(7) | |
43 value= 128*value + data | |
44 }while(more_data) | |
9323 | 45 |
46 b (binary data or string) | |
47 length v | |
48 for(i=0; i<length; i++){ | |
49 data[i] u(8) | |
9295 | 50 } |
9335
de287fe94511
lang & country codes from ISO & utf8 requirement (ideas from Tobias Diedrich <td at sim dot uni-hannover dot de>
michael
parents:
9325
diff
changeset
|
51 Note: strings MUST be encoded in utf8 |
9295 | 52 |
9323 | 53 |
9295 | 54 f(x) n fixed bits |
55 u(x) unsigned number encoded in x bits in MSB first order | |
56 | |
57 | |
58 Bitstream syntax: | |
9294 | 59 packet header |
60 forward ptr v | |
61 backward ptr v | |
62 | |
63 align_byte | |
64 while(not byte aligned) | |
65 one f(1) | |
66 | |
67 reserved_bytes | |
68 for(i=0; i<forward_ptr - length_of_non_reserved; i++) | |
69 reserved u(8) | |
70 | |
71 main header: | |
72 packet header | |
73 main_startcode f(64) | |
74 version v | |
75 stream_count v | |
76 file_size v | |
9310 | 77 length_in_msec v |
9294 | 78 reserved_bytes |
79 checksum u(32) | |
80 | |
81 stream_header: | |
82 packet_header | |
83 stream_startcode f(64) | |
84 stream_id v | |
85 stream_class v | |
9323 | 86 fourcc b |
9294 | 87 average_bitrate v |
9325 | 88 language_code b |
9297 | 89 time_base_nom v |
90 time_base_denom v | |
9294 | 91 lsb_timestamp_length v |
92 fixed_fps u(1) | |
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
93 index_flag u(1) |
9356 | 94 reserved u(6) |
9357
21347f49e8d8
supprting various codec specific/private headers for different APIs (ideas by arpi/alex/fabian)
michael
parents:
9356
diff
changeset
|
95 for(;;){ |
9361 | 96 codec_specific_data_type v |
97 if(codec_specific_data_type==0) break; | |
9357
21347f49e8d8
supprting various codec specific/private headers for different APIs (ideas by arpi/alex/fabian)
michael
parents:
9356
diff
changeset
|
98 codec_specific_data b |
21347f49e8d8
supprting various codec specific/private headers for different APIs (ideas by arpi/alex/fabian)
michael
parents:
9356
diff
changeset
|
99 } |
9294 | 100 |
101 video_stream_header: | |
102 stream_header | |
103 width v | |
104 height v | |
105 sample_width v | |
106 sample_height v | |
107 colorspace_type v | |
108 depth v | |
109 reserved_bytes | |
110 checksum u(32) | |
111 | |
112 audio_stream_header: | |
113 stream_header | |
114 samplerate v | |
115 channel_count v | |
116 reserved_bytes | |
117 checksum u(32) | |
9420 | 118 |
9294 | 119 frame |
120 packet header | |
121 if(keyframe){ | |
122 keyframe_startcode f(64) | |
123 } | |
9311
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
124 zero_bit f(1) |
9294 | 125 priority u(2) |
126 checksum_flag u(1) | |
127 msb_timestamp_flag u(1) | |
9420 | 128 subpacket_type u(2) |
129 reserved u(1) | |
9311
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
130 lsb_timestamp v |
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
131 stream_id v |
9294 | 132 if(msb_timestamp_flag) |
133 msb_timestamp v | |
9420 | 134 if(sub_packet_type==00) |
135 sub_packet[0] | |
136 else{ | |
137 subpacket_count v | |
138 shuffle_type v | |
139 if(subpacket_type==10){ | |
9421
4baee69b8e39
subpacket_base_size isnt needed for fixed sized subpackets
michael
parents:
9420
diff
changeset
|
140 subpacket_base_size v |
9420 | 141 for(i=0; i<subpacket_count; i++) |
142 subpacket_size_diff[i] v | |
143 } | |
144 for(i=0; i<subpacket_count; i++) | |
145 subpacket[i] | |
146 } | |
147 } | |
148 if(checksum_flag) | |
9312 | 149 frame_checksum u(32) |
9294 | 150 |
151 Index: | |
152 packet header | |
153 index_startcode f(64) | |
154 stream_id v | |
155 index_length v | |
156 for(i=0; i<index_length; i++){ | |
157 index_timestamp v | |
158 index_position v | |
159 } | |
9310 | 160 reserved_bytes |
9294 | 161 checksum u(32) |
162 | |
9310 | 163 info_packet: (optional) |
9294 | 164 packet header |
165 info_startcode f(64) | |
9310 | 166 start_time v |
167 end_time v | |
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
168 start_stream_id v |
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
169 end_stream_id v |
9323 | 170 for(;;){ |
171 type b | |
172 if(type=="") break; | |
173 name b | |
174 value b | |
175 } | |
9310 | 176 reserved_bytes |
9294 | 177 checksum u(32) |
9323 | 178 |
9310 | 179 stuffing_packet: (optional) |
180 packet_header | |
181 stuffing_startcode f(64) | |
182 for(i=0; i<forward_ptr - length_of_non_reserved; i++) | |
183 stuffing f(8) | |
9294 | 184 |
9323 | 185 |
9294 | 186 forward_ptr |
187 backward_ptr | |
188 pointer to the next / previous packet | |
9323 | 189 pointers are relative and backward pointer is implicitelly negative |
9294 | 190 Note: a frame with 0 bytes means that its skiped |
9323 | 191 Note: the forward pointer is equal to the size of this packet including |
192 the header | |
193 the backward pointer is equal to the size of the previous packet | |
194 Example: | |
195 0 | |
196 size1 (size of frame1 including header) | |
197 frame1 | |
198 | |
199 size1 | |
200 size2 | |
201 frame2 | |
202 | |
203 size2 | |
204 size3 | |
205 frame3 | |
206 | |
207 | |
208 *_startcode | |
209 the first bit is allways set | |
9294 | 210 |
211 version | |
212 0 for now | |
213 | |
214 file_size | |
215 size in bytes, can be 0 if not meaningfull (realtime streams, ...) | |
216 | |
217 length_in_msec | |
218 length of the file in milli seconds (can be 0 if realtime or such) | |
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
219 |
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
220 index_flag |
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
221 1 indicates that this file has an index |
9372 | 222 Note, all files SHOULD have an index at the end except, (realtime) streams |
9294 | 223 |
224 stream_id | |
225 Note: streams with a lower relative class MUST have a lower relative id | |
226 so a stream with class 0 MUST allways have a id which is lower then any | |
227 stream with class > 0 | |
9295 | 228 streams should use low ids |
9294 | 229 |
230 stream_class | |
231 0 video | |
232 32 audio | |
233 64 subtiles | |
234 Note the remaining values are reserved and MUST NOT be used | |
9312 | 235 a decoder MUST ignore streams with reserved classes |
9294 | 236 |
237 fourcc | |
238 identification for the codec | |
9323 | 239 example: "H264" |
9325 | 240 MUST contain 4 bytes, note, this might be increasd in the future if |
241 needed | |
9294 | 242 |
243 language_code | |
9335
de287fe94511
lang & country codes from ISO & utf8 requirement (ideas from Tobias Diedrich <td at sim dot uni-hannover dot de>
michael
parents:
9325
diff
changeset
|
244 ISO 639 and ISO 3166 for language/country code |
9325 | 245 something like "usen" (US english), can be 0 |
9294 | 246 if unknown |
9335
de287fe94511
lang & country codes from ISO & utf8 requirement (ideas from Tobias Diedrich <td at sim dot uni-hannover dot de>
michael
parents:
9325
diff
changeset
|
247 see http://www.loc.gov/standards/iso639-2/englangn.html |
de287fe94511
lang & country codes from ISO & utf8 requirement (ideas from Tobias Diedrich <td at sim dot uni-hannover dot de>
michael
parents:
9325
diff
changeset
|
248 and http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/en_listp1.html |
9294 | 249 |
9297 | 250 time_base_nom / time_base_denom = time_base |
9294 | 251 the number of timer ticks per second, this MUST be equal to the fps |
252 if the fixed_fps is 1 | |
9297 | 253 time_base_denom MUST not be 0 |
254 time_base_nom and time_base_denom MUST be relative prime | |
255 time_base_nom MUST be < 2^15 | |
256 examples: | |
257 fps time_base_nom time_base_denom | |
258 30 30 1 | |
259 29.97 30000 1001 | |
260 23.976 24000 1001 | |
9294 | 261 |
262 lsb_timestamp_length | |
263 length in bits of the lsb_timestamp | |
264 MUST be <16 | |
265 | |
266 fixed_fps | |
267 1 indicates that the fps is fixed | |
268 | |
9357
21347f49e8d8
supprting various codec specific/private headers for different APIs (ideas by arpi/alex/fabian)
michael
parents:
9356
diff
changeset
|
269 codec_specific_data_type |
9361 | 270 0 end |
271 1 native | |
272 2 bitmapinfoheader | |
273 3 waveformatex | |
274 4 imagedesc | |
275 5 sounddesc | |
9357
21347f49e8d8
supprting various codec specific/private headers for different APIs (ideas by arpi/alex/fabian)
michael
parents:
9356
diff
changeset
|
276 "native", means a simple api & container independanet storage form, |
21347f49e8d8
supprting various codec specific/private headers for different APIs (ideas by arpi/alex/fabian)
michael
parents:
9356
diff
changeset
|
277 for example some mpeg4-es headers |
21347f49e8d8
supprting various codec specific/private headers for different APIs (ideas by arpi/alex/fabian)
michael
parents:
9356
diff
changeset
|
278 |
9356 | 279 codec_specific_data |
280 private global data for a codec (could be huffman tables or ...) | |
9294 | 281 |
282 msb_timestamp_flag | |
283 indicates that the msb_timestamp is coded | |
284 MUST be 1 for keyframes | |
285 | |
9420 | 286 subpacket_type |
9422
5e990417accf
disallow multiple subpackets per packet for video streams idea by (me & Moritz Bunkus <moritz at bunkus dot org>)
michael
parents:
9421
diff
changeset
|
287 00 1 subpacket per packet (video, ...) |
9420 | 288 01 subpacket_count fixed length subpackets per packet |
289 10 subpacket_count variable length subpackets per packet | |
290 11 reserved | |
9422
5e990417accf
disallow multiple subpackets per packet for video streams idea by (me & Moritz Bunkus <moritz at bunkus dot org>)
michael
parents:
9421
diff
changeset
|
291 the only legal subpacket_type for video streams is 00, so video streams |
5e990417accf
disallow multiple subpackets per packet for video streams idea by (me & Moritz Bunkus <moritz at bunkus dot org>)
michael
parents:
9421
diff
changeset
|
292 MUST NOT contain multiple subpackets per packet |
9420 | 293 Note, if there are multiple subpackets then the timestamp of the packet |
294 is the timestamp of the first subpacket | |
295 Note, if multiple subpackets are stored in one frame then the resulting | |
296 framesize SHOULD be < 16kbyte and not more then 0.5 sec of data SHOULD | |
297 be put in a single packet | |
298 | |
299 subpacket_base_size | |
300 an offset which should be added to the subpacket_size_diff of each | |
301 subpacket to get the actual size, so its normally the size of the | |
302 smallest subpacket | |
9421
4baee69b8e39
subpacket_base_size isnt needed for fixed sized subpackets
michael
parents:
9420
diff
changeset
|
303 for fixed length subpackets, the size is calculated from the |
4baee69b8e39
subpacket_base_size isnt needed for fixed sized subpackets
michael
parents:
9420
diff
changeset
|
304 subpacket_count |
9420 | 305 |
306 subpacket_count | |
307 the number of subpackets, if not pressent then 1 | |
308 | |
309 subpacket_size_diff | |
310 the (allways positive) difference from the subpacket_base_size to the | |
311 actual size of the current subpacket, if its not coded | |
312 (subpacket_type != 10) then its 0 | |
313 Note a subpacket MUST be in exactly one packet, it cannot be split | |
314 | |
9294 | 315 msb_timestamp |
316 most significant bits of the timestamp, SHOULD be 0 for the first frame | |
317 | |
318 lsb_timestamp | |
319 most significant bits of the timestamp in time_base precission, with | |
320 lsb_timestamp_length bits | |
321 Example: IBBP display order | |
322 keyframe msb_timestamp=0 lsb_timestamp=0 -> timestamp=0 | |
323 frame lsb_timestamp=3 -> timestamp=3 | |
324 frame lsb_timestamp=1 -> timestamp=1 | |
325 frame lsb_timestamp=2 -> timestamp=2 | |
326 ... | |
327 keyframe msb_timestamp=1 lsb_timestamp=1 -> timestamp=257 | |
328 frame msb_timestamp=0 lsb_timestamp=255->timestamp=255 | |
329 frame msb_timestamp=1 lsb_timestamp=0 -> timestamp=256 | |
330 frame lsb_timestamp=4 -> timestamp=260 | |
331 frame lsb_timestamp=2 -> timestamp=258 | |
332 frame lsb_timestamp=3 -> timestamp=259 | |
333 | |
334 width/height | |
335 MUST be set to the coded width/height | |
336 | |
337 sample_width/sample_height (aspect ratio) | |
338 sample_width is the horizontal distance between samples | |
339 sample_width and sample_height MUST be relative prime if not zero | |
340 MUST be 0 if unknown | |
341 | |
342 depth | |
343 for compatibility with some win32 codecs | |
344 | |
9311
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
345 zero_bit |
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
346 MUST be 0, its there to distinguish non keyframes from other packets, |
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
347 Note: all packets have a 64-bit startcode except non-keyframes to reduce |
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
348 their size, and all startcodes start with a 1 bit |
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
349 |
9294 | 350 priority |
351 if 0 then the frame isnt used as reference (b frame) and can be droped | |
352 MUST be > 0 for keyframes | |
353 | |
354 shuffle_type | |
9420 | 355 audio is often encoded in small subpackets, and to increase the |
9294 | 356 error robustness these can be shuffled |
357 0 -> no shuffle | |
358 1-16 -> interleave packets by 2^n | |
359 | |
360 checksum | |
9307
ec18ad315bbe
10l (copy & pasting the generator poly for crc32 from ogg was a bad idea...)
michael
parents:
9299
diff
changeset
|
361 crc32 checksum using the generator polynomial 0x104c11db7 (same as ogg) |
9294 | 362 |
363 checksum_flag | |
364 indicates that the frame_checksum is coded | |
365 must be 1 for the last non keyframe before a keyframe | |
366 | |
367 frame_checksum | |
368 identical to checksum, but instead of covering just the current | |
369 packet, it covers all frames of the same stream id since the last | |
9312 | 370 frame_checksum |
9294 | 371 this field is only coded if checksum_flag=1 |
372 | |
373 index_timestamp | |
374 value in time_base precission, relative to the last index_timestamp | |
375 | |
376 index_position | |
377 position in bytes of the first byte of the keyframe header, relative | |
378 to the last index_position | |
379 | |
9310 | 380 start_time, stop_time |
381 the time range in msecs to which the info applies | |
382 Note: can be used to mark chapters | |
9323 | 383 |
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
384 start_stream_id / end_stream_id |
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
385 the stream(s) to which the info packet applies |
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
386 |
9323 | 387 type |
388 the fourcc of the type | |
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
389 for example: "UTF8" -> String or "JPEG" -> jpeg image |
9323 | 390 0 length means end |
391 | |
9295 | 392 name |
393 the name of the info entry, valid names are | |
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
394 "Author" |
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
395 "Description" |
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
396 "Copyright" |
9369 | 397 "Encoder" the name & version of the software used for encoding |
9347
97888c25ae60
changing name to "nut" for now, we can change it again if we agree on something else
michael
parents:
9335
diff
changeset
|
398 "Title" |
9373 | 399 "Cover" an image of the (cd,dvd,vhs,..) cover (preferable PNG or JPEG) |
9350 | 400 "Source" "DVD", "VCD", "CD", "MD", "FM radio", "VHS", "TV", |
401 "LD" | |
9373 | 402 Optional: appended PAL,NTSC,SECAM, ... in parentheses |
9350 | 403 "CaptureDevice" "BT878", "BT848", "webcam", ... (more exact names are fine too) |
404 "CreationTime" "2003-01-20 20:13:15Z", ... | |
405 (ISO 8601 format, see http://www.cl.cam.ac.uk/~mgk25/iso-time.html) | |
406 Note: dont forget the timezone | |
9360
add934b25d6d
"X-" prefix for nonstd fields & "keywords" idea by (Andreas Hess <jaska at gmx dot net>)
michael
parents:
9357
diff
changeset
|
407 "Keywords" |
9295 | 408 Note: if someone needs some others, please tell us about them, so we can |
409 add them to the official standard (if they are sane) | |
9360
add934b25d6d
"X-" prefix for nonstd fields & "keywords" idea by (Andreas Hess <jaska at gmx dot net>)
michael
parents:
9357
diff
changeset
|
410 Note: nonstandard fields should be prefixed by "X-" |
9295 | 411 |
412 value | |
413 | |
9310 | 414 stuffing |
415 0xFF | |
9294 | 416 |
417 Structure: | |
418 | |
419 the headers MUST be in exactly the following order (to simplify demuxer design) | |
420 main header | |
421 stream_header (id=0) | |
422 stream_header (id=1) | |
423 ... | |
424 stream_header (id=n) | |
425 | |
426 headers may be repated, but if they are then they MUST all be repeated together | |
427 and repeated headers MUST be identical | |
428 | |
429 headers MUST be repeated every 10sec at least ? FIXME | |
9310 | 430 headers MUST be repeated at least twice (so they exist 3 times in a file) |
9295 | 431 |
9310 | 432 Index |
9372 | 433 the index can be repeated but there SHOULD be at least one at the end |
9311
4b04416ada91
zero_bit for normal frames, so we can distinguish them from other packets
michael
parents:
9310
diff
changeset
|
434 Note: in case of realtime streaming there is no end, so no index there either |
9310 | 435 |
436 Info packets | |
437 the info_packet can be repeated, it can also contain different names & values | |
438 each time but only if allso the time is different | |
439 Info packets can be used to describe the file or some part of it (chapters) | |
440 | |
441 info packets, SHOULD be placed at the begin of the file at least | |
442 for realtime streaming info packets will normally be transmitted when they apply | |
443 for example, the current song title & artist of the currently shown music video | |
444 | |
445 Stuffing packets | |
446 can be used as a filler, for example to leave some empty space at the begin for | |
447 a copy of the index | |
448 | |
449 Unknown packets | |
450 MUST be ignored by the decoder | |
451 | |
9294 | 452 Sample code (GPL, & untested) |
453 | |
454 typedef BufferContext{ | |
455 uint8_t *buf; | |
456 uint8_t *buf_ptr; | |
457 }BufferContext; | |
458 | |
459 static inline uint64_t get_bytes(BufferContext *bc, int count){ | |
460 uint64_t val=0; | |
461 | |
462 assert(count>0 && count<9) | |
463 | |
464 for(i=0; i<count; i++){ | |
465 val <<=8; | |
466 val += *(bc->buf_ptr++); | |
467 } | |
468 | |
469 return val; | |
470 } | |
471 | |
472 static inline void put_bytes(BufferContext *bc, int count, uint64_t val){ | |
473 uint64_t val=0; | |
474 | |
475 assert(count>0 && count<9) | |
476 | |
477 for(i=count-1; i>=0; i--){ | |
478 *(bc->buf_ptr++)= val >> (8*i); | |
479 } | |
480 | |
481 return val; | |
482 } | |
483 | |
484 static inline uint64_t get_v(BufferContext *bc){ | |
485 uint64_t val= 0; | |
486 | |
487 for(;;){ | |
488 int tmp= *(bc->buf_ptr++); | |
489 if(tmp&0x80) | |
490 val= (val<<7) + tmp - 0x80; | |
491 else | |
9299 | 492 return (val<<7) + tmp; |
9294 | 493 } |
494 } | |
495 | |
496 static inline void put_v(BufferContext *bc, uint64_t val){ | |
497 int i; | |
498 | |
499 assert(val); | |
500 | |
501 for(i=56;; i-=8){ | |
502 if(val>>i) break; | |
503 } | |
504 | |
505 for(;i>0; i-=8){ | |
506 *(bc->buf_ptr++)= 0x80 | (val>>i); | |
507 } | |
508 *(bc->buf_ptr++)= val&0x7F; | |
509 } | |
510 | |
511 | |
512 Example stream | |
513 | |
514 main header | |
515 video_stream_header (stream 0, video jpjp, timebase 30, lsb_timestamp_length=8) | |
516 video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8) | |
517 video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8) | |
518 audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8) | |
519 audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8) | |
520 index (stream 0) | |
521 keyframe (stream 0, msb_timestamp=0, lsb_timestamp=0) | |
522 keyframe (stream 1, msb_timestamp=0, lsb_timestamp=0) | |
523 keyframe (stream 2, msb_timestamp=0, lsb_timestamp=0) | |
524 keyframe (stream 3, msb_timestamp=0, lsb_timestamp=0) | |
525 keyframe (stream 4, msb_timestamp=0, lsb_timestamp=0) | |
526 frame (stream 0, lsb_timestamp=1) | |
527 frame (stream 0, lsb_timestamp=2) | |
528 ... | |
529 frame (stream 0, lsb_timestamp=30) | |
530 keyframe (stream 3, msb_timestamp=0, lsb_timestamp=1) | |
531 keyframe (stream 4, msb_timestamp=0, lsb_timestamp=1) | |
532 frame (stream 0, lsb_timestamp=31) | |
533 frame (stream 0, lsb_timestamp=32) | |
534 ... | |
535 frame (stream 0, lsb_timestamp=60) | |
536 frame (stream 1, lsb_timestamp=60) | |
537 frame (stream 2, lsb_timestamp=60) | |
538 keyframe (stream 3, msb_timestamp=0, lsb_timestamp=2) | |
539 keyframe (stream 4, msb_timestamp=0, lsb_timestamp=2) | |
540 frame (stream 0, lsb_timestamp=61) | |
541 frame (stream 0, lsb_timestamp=62) | |
542 ... | |
543 main header | |
544 video_stream_header (stream 0, video jpjp, timebase 30, lsb_timestamp_length=8) | |
545 video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8) | |
546 video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8) | |
547 audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8) | |
548 audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8) | |
549 frame (stream 0, lsb_timestamp=255) | |
550 frame (stream 0, msb_timestamp=1 lsb_timestamp=0) | |
551 frame (stream 0, lsb_timestamp=1) | |
552 frame (stream 0, lsb_timestamp=2) | |
553 frame (stream 1, msb_timestamp=1 lsb_timestamp=2) | |
554 frame (stream 2, msb_timestamp=1 lsb_timestamp=2) | |
555 frame (stream 0, lsb_timestamp=3) | |
556 frame (stream 0, lsb_timestamp=4) | |
557 ... | |
558 keyframe (stream 3, msb_timestamp=0, lsb_timestamp=9) | |
559 keyframe (stream 4, msb_timestamp=0, lsb_timestamp=9) | |
560 main header | |
561 video_stream_header (stream 0, video jpjp, timebase 30, lsb_timestamp_length=8) | |
562 video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8) | |
563 video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8) | |
564 audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8) | |
565 audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8) | |
566 index (stream 0) |