Changes between Version 2 and Version 3 of SV8Specification


Ignore:
Timestamp:
10/24/06 19:10:04 (15 years ago)
Author:
r2d
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SV8Specification

    v2 v3  
    2424...
    2525}}}
     26
     27other way ([http://svn.mplayerhq.hu/mplayer/trunk/DOCS/tech/nut.txt?view=markup nut] way) :
     28{{{
     29bits, big-endian
     300xxx xxxx                                           - value 0 to  2^7-2
     311xxx xxxx  0xxx xxxx                                - value 0 to 2^14-2
     321xxx xxxx  1xxx xxxx  0xxx xxxx                     - value 0 to 2^21-2
     331xxx xxxx  1xxx xxxx  1xxx xxxx  0xxx xxxx          - value 0 to 2^28-2
     34...
     35}}}
     36
     37what do you prefer ? I prefer the nut way
     38
    2639The 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]]
    2740The value is the block content. Its size can be 0.[[BR]]
     
    3043|| '''Field''' || '''length (bits)''' || '''Value''' ||
    3144|| Key || 16 || "EX" ||
    32 || Length || n*8; 0 < n < 9 || 0x1A ||
     45|| Length || n*8; 0 < n < 10 || 0x1A ||
    3346|| Value || Lentgh * 8 || "exemple" ||
    3447
     
    4154|| '''Field''' || '''length (bits)''' || '''Value''' || '''comment''' ||
    4255|| 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 ||
    4557|| 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 ||
    5164|| PNS used || 1 ||  ||  ||
    52 || unused || 4 ||  || must be 0 ||
    5365
    5466Frequency table
     
    6678
    6779This block key is "RG".[[BR]]
    68 This block contains replay gain datas. If this block exists, it must be written before the first audio block.[[BR]]
    69 A log scale must be used to store the values.[[BR]]
     80This block contains replay gain datas. This block is mandatory and must be written before the first audio block.[[BR]]
     81Values stored in dB in Q8.8 format (maybe Q7.9 or relative to the max value for the bitdepth is better ?).[[BR]]
    7082
    7183|| '''Field''' || '''length (bits)''' || '''Value''' || '''comment''' ||
     84|| Version || 8 ||  || The replay gain version ||
    7285|| Title gain || 16 ||  || The loudness calculated for the title, ''and not the gain that the player must apply'' ||
    7386|| Title peak || 16 ||  ||  ||
    7487|| Album gain || 16 ||  || The loudness calculated for the album ||
    7588|| Album peak || 16 ||  ||  ||
    76 || Version || 8 ||  || The replay gain version ||
    7789
    7890
     
    8496|| profile used || 4 || 0..15 ||  ||
    8597|| 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 ||  ||
    9499
    95100== Audio block ==
     
    105110
    106111|| '''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 ||
    109114|| audio frames || ? ||  ||  ||
    110115
     116== Seek Table Block ==
    111117
     118This block key is "ST".[[BR]]
     119
     120Format have to be defined.
     121
     122
     123== Security Block ==
     124
     125Checksum (MD5, SHA1) or error correcting code (LDPC).[[BR]]
     126Useful ?
     127
     128== Tags ==
     129
     130No block must be written after the last audio block to allow tagging by other applications.[[BR]]
     131Remarks about tagging? Incompatibilities?[[BR]]