Changes between Version 2 and Version 3 of SV8Specification
- Timestamp:
- 10/24/06 19:10:04 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SV8Specification
v2 v3 24 24 ... 25 25 }}} 26 27 other way ([http://svn.mplayerhq.hu/mplayer/trunk/DOCS/tech/nut.txt?view=markup nut] way) : 28 {{{ 29 bits, big-endian 30 0xxx xxxx - value 0 to 2^7-2 31 1xxx xxxx 0xxx xxxx - value 0 to 2^14-2 32 1xxx xxxx 1xxx xxxx 0xxx xxxx - value 0 to 2^21-2 33 1xxx xxxx 1xxx xxxx 1xxx xxxx 0xxx xxxx - value 0 to 2^28-2 34 ... 35 }}} 36 37 what do you prefer ? I prefer the nut way 38 26 39 The length is the size of the block in bytes, including the key and size fields. So the minimum length of a block is 3 bytes.[[BR]] 27 40 The value is the block content. Its size can be 0.[[BR]] … … 30 43 || '''Field''' || '''length (bits)''' || '''Value''' || 31 44 || Key || 16 || "EX" || 32 || Length || n*8; 0 < n < 9|| 0x1A ||45 || Length || n*8; 0 < n < 10 || 0x1A || 33 46 || Value || Lentgh * 8 || "exemple" || 34 47 … … 41 54 || '''Field''' || '''length (bits)''' || '''Value''' || '''comment''' || 42 55 || CRC || 32 || || CRC 32 of the block (this field excluded). 0 = invalid || 43 || Sample count || n*8; 0 < n < 9 || || number of samples in the stream. 0 = unknow || 44 || Max used bands || 4 || || maximum number of bands used in the file || 56 || Sample count || n*8; 0 < n < 10 || || number of samples in the stream. 0 = unknow || 45 57 || Sample Frequency || 4 || || see table below || 46 || Channel count || 4 || || number of channels in the stream || 47 || Audio block frames || 4 || 1..16 || number of frames in an audio block is : 2^Value || 48 || IS used || 1 || || Klemm specification suggest to use the number of band always using IS ? || 49 || MS used || 1 || || || 50 || True gapless || 1 || || always 1 ? || 58 || Channel count || 4 || 1..16 || number of channels in the stream || 59 || Audio block frames || 4 || 1..16 || number of frames in an audio block is : 2^Value^ (2..65536) || 60 || Unused || 4 || || must be 0 || 61 || Max used bands || 5 || 1..32 || maximum number of bands used in the file || 62 || IS used || 1 || || IntensityStereo. Klemm specification suggest to use the number of band always using IS ? || 63 || MS used || 1 || || MidSideStereo || 51 64 || PNS used || 1 || || || 52 || unused || 4 || || must be 0 ||53 65 54 66 Frequency table … … 66 78 67 79 This block key is "RG".[[BR]] 68 This block contains replay gain datas. If this block exists, itmust be written before the first audio block.[[BR]]69 A log scale must be used to store the values.[[BR]]80 This block contains replay gain datas. This block is mandatory and must be written before the first audio block.[[BR]] 81 Values stored in dB in Q8.8 format (maybe Q7.9 or relative to the max value for the bitdepth is better ?).[[BR]] 70 82 71 83 || '''Field''' || '''length (bits)''' || '''Value''' || '''comment''' || 84 || Version || 8 || || The replay gain version || 72 85 || Title gain || 16 || || The loudness calculated for the title, ''and not the gain that the player must apply'' || 73 86 || Title peak || 16 || || || 74 87 || Album gain || 16 || || The loudness calculated for the album || 75 88 || Album peak || 16 || || || 76 || Version || 8 || || The replay gain version ||77 89 78 90 … … 84 96 || profile used || 4 || 0..15 || || 85 97 || unused || 4 || || || 86 || encoder version || 8 || || || 87 88 {{{ 89 Encoder version * 100 (106 = 1.06) 90 EncoderVersion % 10 == 0 Release (1.0) 91 EncoderVersion % 2 == 0 Beta (1.06) 92 EncoderVersion % 2 == 1 Alpha (1.05a...z) 93 }}} 98 || encoder version || 24 || 0-255.0-255.a-z || || 94 99 95 100 == Audio block == … … 105 110 106 111 || '''Field''' || '''length (bits)''' || '''Value''' || '''comment''' || 107 || seek block nb || 4 || 2..17 || the number of blocks that can be skiped is 2^Value ||108 || seek offset || 28 || -2^27 ..2^27-1 || number of bytes to jump the blocks from the beginning of this block. 0 = invalid ||112 || seek block nb || 4 || 2..17 || the number of blocks that can be skiped is 2^Value^ || 113 || seek offset || 28 || -2^27^..2^27^-1 || number of bytes to jump the blocks from the beginning of this block. 0 = invalid || 109 114 || audio frames || ? || || || 110 115 116 == Seek Table Block == 111 117 118 This block key is "ST".[[BR]] 119 120 Format have to be defined. 121 122 123 == Security Block == 124 125 Checksum (MD5, SHA1) or error correcting code (LDPC).[[BR]] 126 Useful ? 127 128 == Tags == 129 130 No block must be written after the last audio block to allow tagging by other applications.[[BR]] 131 Remarks about tagging? Incompatibilities?[[BR]]