Changes between Version 44 and Version 45 of SV8Specification


Ignore:
Timestamp:
11/12/08 20:06:28 (14 years ago)
Author:
r2d
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SV8Specification

    v44 v45  
    2929All packets are formatted using Key / Size / Payload.[[BR]]
    3030Keys are 16 bits long. It's equivalent to the packet ID or type.[[BR]]
    31 Size is a variable-size field using the same values as [http://svn.mplayerhq.hu/mplayer/trunk/DOCS/tech/nut.txt?view=markup nut] :[[BR]]
     31Size is a variable-size field :[[BR]]
    3232{{{
    3333bits, big-endian
    34 0xxx xxxx                                           - value 0 to  2^7-2
    35 1xxx xxxx  0xxx xxxx                                - value 0 to 2^14-2
    36 1xxx xxxx  1xxx xxxx  0xxx xxxx                     - value 0 to 2^21-2
    37 1xxx xxxx  1xxx xxxx  1xxx xxxx  0xxx xxxx          - value 0 to 2^28-2
     340xxx xxxx                                           - value 0 to  2^7-1
     351xxx xxxx  0xxx xxxx                                - value 0 to 2^14-1
     361xxx xxxx  1xxx xxxx  0xxx xxxx                     - value 0 to 2^21-1
     371xxx xxxx  1xxx xxxx  1xxx xxxx  0xxx xxxx          - value 0 to 2^28-1
    3838...
    3939}}}
     
    5454
    5555|| '''Packet Name''' || '''Key''' || '''Mandatory''' || '''Status''' ||
    56 || [wiki:SV8Specification#StreamHeaderPacket Stream Header] || SH || yes || [[Image(beta.png, nolink)]] ||
    57 || [wiki:SV8Specification#ReplaygainPacket Replaygain] || RG || yes || [[Image(beta.png, nolink)]] ||
    58 || [wiki:SV8Specification#EncoderInfoPacket Encoder Info] || EI || no || [[Image(beta.png, nolink)]] ||
    59 || [wiki:SV8Specification#SeekTableOffsetPacket Seek Table Offset] || SO || no || [[Image(beta.png, nolink)]] ||
    60 || [wiki:SV8Specification#AudioPacket Audio Packet] || AP || yes || [[Image(beta.png, nolink)]] ||
    61 || [wiki:SV8Specification#SeekTablePacket Seek Table] || ST || no || [[Image(beta.png, nolink)]] ||
    62 || [wiki:SV8Specification#Chapter-TagPacket Chapter-Tag] || CT || no || [[Image(alpha.png, nolink)]] ||
    63 || [wiki:SV8Specification#StreamEndPacket Stream End] || SE || yes || [[Image(beta.png, nolink)]] ||
     56|| [wiki:SV8Specification#StreamHeaderPacket Stream Header] || SH || yes || [[Image(final.png, nolink)]] ||
     57|| [wiki:SV8Specification#ReplaygainPacket Replaygain] || RG || yes || [[Image(final.png, nolink)]] ||
     58|| [wiki:SV8Specification#EncoderInfoPacket Encoder Info] || EI || no || [[Image(final.png, nolink)]] ||
     59|| [wiki:SV8Specification#SeekTableOffsetPacket Seek Table Offset] || SO || no || [[Image(final.png, nolink)]] ||
     60|| [wiki:SV8Specification#AudioPacket Audio Packet] || AP || yes || [[Image(final.png, nolink)]] ||
     61|| [wiki:SV8Specification#SeekTablePacket Seek Table] || ST || no || [[Image(final.png, nolink)]] ||
     62|| [wiki:SV8Specification#Chapter-TagPacket Chapter-Tag] || CT || no || [[Image(beta.png, nolink)]] ||
     63|| [wiki:SV8Specification#StreamEndPacket Stream End] || SE || yes || [[Image(final.png, nolink)]] ||
    6464
    6565== Stream Header Packet ==
    6666
    67 [[Image(beta.png, nolink)]] [[BR]]
     67[[Image(final.png, nolink)]] [[BR]]
    6868This packet key is "SH".[[BR]]
    6969It contains the informations needed to decode the stream. This block is mandatory and must be written before the first audio packet.[[BR]]
     
    9595== Replaygain Packet ==
    9696
    97 [[Image(beta.png, nolink)]] [[BR]]
     97[[Image(final.png, nolink)]] [[BR]]
    9898This packet key is "RG".[[BR]]
    9999It contains the necessary data needed to apply replaygain on the current stream. This packet is mandatory and must be written before the first audio packet.[[BR]]
     
    115115== Encoder Info Packet ==
    116116
    117 [[Image(beta.png, nolink)]] [[BR]]
     117[[Image(final.png, nolink)]] [[BR]]
    118118This packet key is "EI".[[BR]]
    119119
     
    128128== Seek Table Offset Packet ==
    129129
    130 [[Image(beta.png, nolink)]] [[BR]]
     130[[Image(final.png, nolink)]] [[BR]]
    131131This packet key is "SO".[[BR]]
    132132It contains an offset to the seek table packet.[[BR]]
     
    139139== Audio Packet ==
    140140
    141 [[Image(beta.png, nolink)]] [[BR]]
     141[[Image(final.png, nolink)]] [[BR]]
    142142This packet key is "AP".[[BR]]
    143143It contains audio frames. The first frame is a key frame.[[BR]]
     
    149149== Seek Table Packet ==
    150150
    151 [[Image(beta.png, nolink)]] [[BR]]
     151[[Image(final.png, nolink)]] [[BR]]
    152152This packet key is "ST".[[BR]]
    153153
     
    173173== Chapter-Tag Packet ==
    174174
    175 [[Image(alpha.png, nolink)]] [[BR]]
     175[[Image(beta.png, nolink)]] [[BR]]
    176176This packet key is "CT".[[BR]]
    177177It contains a chapter position and associated tag.[[BR]]
     
    195195== Stream End Packet ==
    196196
    197 [[Image(beta.png, nolink)]] [[BR]]
     197[[Image(final.png, nolink)]] [[BR]]
    198198This packet key is "SE".[[BR]]
    199199The packet size must be 3 bytes.[[BR]]
     
    210210== Tags ==
    211211
    212 [[Image(beta.png, nolink)]] [[BR]]
     212[[Image(final.png, nolink)]] [[BR]]
    213213No packet must be written after the stream end packet to allow tagging by other applications.[[BR]]
    214214Those tags are global to the file, and defines the default values for all the tag fields. The Chapter-Tag packet can redefine the field value for each chapter.