Changes between Version 38 and Version 39 of SV8Specification


Ignore:
Timestamp:
01/04/08 11:57:12 (15 years ago)
Author:
r2d
Comment:

added Chapter packet

Legend:

Unmodified
Added
Removed
Modified
  • SV8Specification

    v38 v39  
    4747|| [wiki:SV8Specification#AudioPacket Audio Packet] || AP || yes ||
    4848|| [wiki:SV8Specification#SeekTablePacket Seek Table] || ST || no ||
     49|| [wiki:SV8Specification#Chapter-TagPacket Chapter-Tag] || CT || no ||
    4950|| [wiki:SV8Specification#StreamEndPacket Stream End] || SE || yes ||
    5051
     
    151152
    152153
     154== Chapter-Tag Packet ==
     155
     156This packet key is "CT".[[BR]]
     157It contains a chapter position and associated tag.[[BR]]
     158There is 1 packet for each chapter.
     159When used in a file, all CT packets must be consecutive. They must be the next (group of) packet after Seek Table packet if present, or the last (group of) packet before the Stream End packet else.[[BR]]
     160When used while streaming, this packet can be inserted between AP packets, and the tag data is valid for the next samples, until a new CT packet is sent.
     161
     162|| '''Field''' || '''Size (bits)''' || '''Value''' || '''Comment''' ||
     163|| Sample offset || n*8; 0 < n < 10 ||  || Position of the chapter in samples. In a file from the beginning of the file, in a stream from the last sample before this packet ||
     164|| Chapter number || n*8; 0 < n < 10 ||  || 0 in the case of streaming, else starts from 1 ||
     165|| APEv2 tag || n*8 ||  || [http://wiki.hydrogenaudio.org/index.php?title=APEv2_specification APEv2 tag] without the preamble { 'A', 'P', 'E', 'T', 'A', 'G', 'E', 'X' } in the header or footer, preferably without footer ||
     166
     167
    153168== Security Packet ==
    154169
     
    160175
    161176This packet key is "SE".[[BR]]
    162 Recommended packet size is 3 bytes.[[BR]]
     177The packet size must be 3 bytes.[[BR]]
    163178This packet is mandatory and must be the last stream packet. Tags, if present, must be written after this packet.
    164179
     
    167182
    168183This file format can be used for streaming. The "SH" block is (can?) used as synchronization marker. The decoder will scan for a "SH" block and check its CRC. Once the decoder is synchronized, it will start decoding. It's up to the streaming server to choose when to send "SH" block.[[BR]]
    169 There is currently no way to send tags during playback. This must be changed (a tag packet ?).
     184To send meta data while streaming, the Chapter-Tag packet can be used.
    170185
    171186
     
    173188
    174189No packet must be written after the stream end packet to allow tagging by other applications.[[BR]]
    175 Remarks about tagging? Incompatibilities?[[BR]]
     190Those 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.
    176191
    177192== Exemple file ==