comparison DOCS/tech/mpcf.txt @ 9335:de287fe94511

lang & country codes from ISO & utf8 requirement (ideas from Tobias Diedrich <td at sim dot uni-hannover dot de> btw, sorry that i didn mention the names of the ppl from whom all the past ideas came from ...
author michael
date Sat, 08 Feb 2003 09:07:13 +0000
parents 18cdba535f36
children 97888c25ae60
comparison
equal deleted inserted replaced
9334:f6007efc714f 9335:de287fe94511
46 b (binary data or string) 46 b (binary data or string)
47 length v 47 length v
48 for(i=0; i<length; i++){ 48 for(i=0; i<length; i++){
49 data[i] u(8) 49 data[i] u(8)
50 } 50 }
51 Note: strings MUST be encoded in utf8
51 52
52 53
53 f(x) n fixed bits 54 f(x) n fixed bits
54 u(x) unsigned number encoded in x bits in MSB first order 55 u(x) unsigned number encoded in x bits in MSB first order
55 56
222 example: "H264" 223 example: "H264"
223 MUST contain 4 bytes, note, this might be increasd in the future if 224 MUST contain 4 bytes, note, this might be increasd in the future if
224 needed 225 needed
225 226
226 language_code 227 language_code
228 ISO 639 and ISO 3166 for language/country code
227 something like "usen" (US english), can be 0 229 something like "usen" (US english), can be 0
228 if unknown 230 if unknown
231 see http://www.loc.gov/standards/iso639-2/englangn.html
232 and http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/en_listp1.html
229 233
230 time_base_nom / time_base_denom = time_base 234 time_base_nom / time_base_denom = time_base
231 the number of timer ticks per second, this MUST be equal to the fps 235 the number of timer ticks per second, this MUST be equal to the fps
232 if the fixed_fps is 1 236 if the fixed_fps is 1
233 time_base_denom MUST not be 0 237 time_base_denom MUST not be 0
496 video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8) 500 video_stream_header (stream 1 subtitle usen, timebase 30, lsb_timestamp_length=8)
497 video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8) 501 video_stream_header (stream 2 subtitle atde, timebase 30, lsb_timestamp_length=8)
498 audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8) 502 audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8)
499 audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8) 503 audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8)
500 index (stream 0) 504 index (stream 0)
505