Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
20 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. ============================================
  2. Description of the Cuesheet/TOC File Formats
  3. ============================================
  4. :Author: Svend Sorensen
  5. :Contact: sorensen@users.berlios.de
  6. :Date: $LastChangedDate$
  7. .. contents::
  8. The Cuesheet (cue) and TOC (toc) file formats both describe the layout of a CD.
  9. Notes
  10. =====
  11. A Cuesheet or TOC file has an (optional) global section, followed by any number
  12. of track sections.
  13. Lines (with a few exceptions for the toc format) begin with a keyword, which
  14. may be followed by whitespace separated fields. Some keywords are only allowed
  15. in the global section or a track section.
  16. Format Notation
  17. ---------------
  18. A string may be enclosed in single or double quotation marks. If the string
  19. contains whitespace, it must be enclosed in quotation marks.
  20. ``<field>``
  21. a required field
  22. ``[field]``
  23. an optional field
  24. ``...``
  25. preceding field may be repeated any number of times
  26. Cuesheet Format
  27. ===============
  28. The standard file suffix for a cuesheet file is ``.cue``.
  29. Keywords
  30. --------
  31. CATALOG
  32. ~~~~~~~
  33. Sets the catalog number of the CD.
  34. :Section(s): global
  35. :Format: ``CATALOG <catalog_number>``
  36. ``catalog_number``
  37. an integer consisting of exactly 13 digits.
  38. FILE
  39. ~~~~
  40. Sets a new input file. ``FILE`` line precedes the beginning of the track
  41. section.
  42. :Section(s): track
  43. :Format: ``FILE <filename> [file_format]``
  44. ``filename``
  45. a string.
  46. ``file_format``
  47. one of: ``BINARY``, ``MOTOROLA``, ``AIFF``, ``WAVE``, or ``MP3``.
  48. FLAGS
  49. ~~~~~
  50. Sets track flags.
  51. :Section(s): track
  52. :Format: ``FLAGS [flag]...``
  53. ``flag``
  54. one of: ``PRE``, ``DCP``, ``4CH``, or ``SCMS``.
  55. INDEX
  56. ~~~~~
  57. Sets a track index.
  58. :Section(s): track
  59. :Format: ``INDEX <index_number> <index>``
  60. ``index_number``
  61. an integer in the range 0-99.
  62. ``index``
  63. time in MSF format.
  64. ISRC
  65. ~~~~
  66. Sets track ISRC number.
  67. :Section(s): track
  68. :Format: ``ISRC <ISRC_number>``
  69. ``ISRC_number``
  70. a string with the format CCOOOOYYSSSSS.
  71. POSTGAP
  72. ~~~~~~~
  73. Sets track postgap.
  74. :Section(s): track
  75. :Format: ``POSTGAP <postgap>``
  76. ``postgap``
  77. time in MSF format.
  78. PREGAP
  79. ~~~~~~
  80. Sets track pregap.
  81. :Section(s): track
  82. :Format: ``PREGAP <pregap>``
  83. ``pregap``
  84. time in MSF format.
  85. REM
  86. ~~~
  87. Begins a comment line. All lines beginning with ``REM`` are ignored.
  88. :Section(s): any
  89. :Format: ``REM [comments]``
  90. TRACK
  91. ~~~~~
  92. Starts a new track.
  93. :Section(s): track
  94. :Format: ``TRACK <track_number> <track_mode>``
  95. ``track_number``
  96. a positive integer in the range 1-99.
  97. ``track_mode``
  98. one of: ``MODE1/2048``, ``MODE1/2352``, ``MODE2/2336``, ``MODE2/2048``,
  99. ``MODE2/2324``, ``MODE2/2336``, or ``MODE2/2352``.
  100. (CD-TEXT keywords)
  101. ~~~~~~~~~~~~~~~~~~
  102. Sets CD-TEXT data. The cue format does not have native support for binary
  103. CD-TEXT.
  104. :Section(s): any
  105. :Format: ``<CDTEXT_keyword> <CDTEXT_field>``
  106. ``CDTEXT_keyword``
  107. one of: (see `CD-TEXT`_ section for a list of CD-TEXT keywords).
  108. ``CDTEXT_keyword``
  109. a string.
  110. TOC File Format
  111. ===============
  112. The standard file suffix for a TOC file is ``.toc``.
  113. Certain keywords begin a block, which must be enclosed between ``{`` and ``}``
  114. brackets.
  115. Comments
  116. --------
  117. Comments begin with ``//`` and may be placed anywhere. Because they can be
  118. placed anywhere in a line, toc comments are treated as a special case (not as a
  119. keyword). Any text beginning with ``//`` is stripped from each line.
  120. Keywords
  121. --------
  122. CATALOG
  123. ~~~~~~~
  124. :Section(s): global
  125. :Format: ``CATALOG "<catalog_number>"``
  126. Sets the catalog number of the CD. ``catalog_number`` must be exactly 13
  127. digits.
  128. CD_DA
  129. ~~~~~
  130. :Section(s): global
  131. :Format: ``CD_DA``
  132. Sets the CD format to audio.
  133. CD_ROM
  134. ~~~~~~
  135. :Section(s): global
  136. :Format: ``CD_ROM``
  137. Sets the CD format to data.
  138. CD_ROM_XA
  139. ~~~~~~~~~
  140. :Section(s): global
  141. :Format: ``CD_ROM_XA``
  142. Sets the CD format to mixed.
  143. TRACK
  144. ~~~~~
  145. :Section(s): track
  146. :Format: ``TRACK <track_mode> [sub_channel_mode]``
  147. NO
  148. ~~
  149. :Section(s): track
  150. :Format: ``NO <flag>``
  151. Negates (clears) track flags. Allowable ``flag`` entries are ``COPY`` and
  152. ``PRE_EMPHASIS``.
  153. COPY
  154. ~~~~
  155. :Section(s): track
  156. :Format: ``COPY``
  157. Sets the copy permitted flag.
  158. PRE_EMPHASIS
  159. ~~~~~~~~~~~~
  160. :Section(s): track
  161. :Format: ``PRE_EMPHASIS``
  162. Sets the pre-emphasis flag.
  163. TWO_CHANNEL_AUDIO
  164. ~~~~~~~~~~~~~~~~~
  165. :Section(s): track
  166. :Format: ``TWO_CHANNEL_AUDIO``
  167. Sets the two channel audio flag.
  168. FOUR_CHANNEL_AUDIO
  169. ~~~~~~~~~~~~~~~~~~
  170. :Section(s): track
  171. :Format: ``FOUR_CHANNEL_AUDIO``
  172. Sets the four channel audio flag.
  173. ISRC
  174. ~~~~
  175. :Section(s): track
  176. :Format: ``ISRC "<ISRC_number>"``
  177. Sets track ISRC number. ``ISRC_number`` must be of the format CCOOOOYYSSSSS.
  178. SILENCE
  179. ~~~~~~~
  180. :Section(s): track
  181. *TODO*
  182. ZERO
  183. ~~~~
  184. :Section(s): track
  185. *TODO*
  186. FILE
  187. ~~~~
  188. :Section(s): track
  189. :Format: ``FILE "<filename>" <start> [length]``
  190. Add file to current track. ``start`` and ``length`` must be in MSF format.
  191. AUDIOFILE
  192. ~~~~~~~~~
  193. :Section(s): track
  194. :Format: ``AUDIOFILE "<filename>" <start> [length]``
  195. Add file to current track. ``start`` and ``length`` must be in MSF format.
  196. DATAFILE
  197. ~~~~~~~~
  198. :Section(s): track
  199. *TODO*
  200. FIFO
  201. ~~~~
  202. :Section(s): track
  203. *TODO*
  204. START
  205. ~~~~~
  206. :Section(s): track
  207. :Format: ``START <start>``
  208. *TODO*
  209. PREGAP
  210. ~~~~~~
  211. Section(s): track
  212. Format: ``PREGAP <pregap>``
  213. Sets track pregap. ``pregap`` must be in MSF format.
  214. INDEX
  215. ~~~~~
  216. :Section(s): track
  217. :Format: ``INDEX <index_number> <index_time>``
  218. Sets a track index. ``index_number`` must be a non-negative integer.
  219. ``index_time`` must be in MSF format.
  220. CD_TEXT
  221. ~~~~~~~
  222. :Section(s): any
  223. :Format: ``CD_TEXT {}``
  224. Begins a CD-TEXT block.
  225. LANGUAGE_MAP
  226. ~~~~~~~~~~~~
  227. :Section(s): global
  228. :Subsection(s): CD-TEXT block
  229. :Format: ``LANGUAGE_MAP { language_map... }``
  230. Begins a language map block. ``language_map`` is a mapping of an integer in
  231. the range 0-255 to a country code.
  232. LANGUAGE
  233. ~~~~~~~~
  234. :Section(s): track
  235. :Subsection(s): CD-TEXT block
  236. :Format: ``LANGUAGE language_number { cd_text }``
  237. Begins a language block. ``language_number`` must be an integer in the range
  238. 0-255. ``cd_text`` is a series of CD-TEXT keyword lines.
  239. (CD-TEXT keywords)
  240. ~~~~~~~~~~~~~~~~~~
  241. :Section(s): any
  242. :Subsection(s): language block
  243. :Format1: ``<CDTEXT_keyword> "<CDTEXT_field>"``
  244. :Format2: ``<CDTEXT_keyword> { CDTEXT_binary_data }``
  245. See `CD-TEXT`_ section for a list of CD-TEXT keywords. Format1 is for
  246. character data and Format2 is for binary data. ``CDTEXT_binary_data`` is a
  247. comma seperated list of integers in the range 0-255.
  248. CD-TEXT
  249. =======
  250. CD-TEXT entries are either character or binary data.
  251. Keywords
  252. --------
  253. ARRANGER
  254. ~~~~~~~~
  255. :Section: any
  256. :Format: character
  257. COMPOSER
  258. ~~~~~~~~
  259. :Section: any
  260. :Format: character
  261. DISC_ID
  262. ~~~~~~~
  263. :Section: any
  264. :Format: binary
  265. GENRE
  266. ~~~~~
  267. :Section: any
  268. :Format: binary
  269. ISRC
  270. ~~~~~
  271. :Section: track
  272. :Format: character
  273. MESSAGE
  274. ~~~~~~~
  275. :Section: any
  276. :Format: character
  277. PERFORMER
  278. ~~~~~~~~~
  279. :Section: any
  280. :Format: character
  281. SONGWRITER
  282. ~~~~~~~~~~
  283. :Section: any
  284. :Format: character
  285. TITLE
  286. ~~~~~
  287. :Section: any
  288. :Format: character
  289. TOC_INFO
  290. ~~~~~~~~~
  291. :Section: any
  292. :Format: binary
  293. TOC_INFO2
  294. ~~~~~~~~~
  295. :Section: any
  296. :Format: binary
  297. UPC_EAN
  298. ~~~~~~~
  299. :Section: disc
  300. :Format: character
  301. SIZE_INFO
  302. ~~~~~~~~~
  303. :Section: any
  304. :Format: binary
  305. Definitions
  306. ===========
  307. MSF format
  308. a representation of time in the form ``mm:ss:ff``. ``mm`` is minutes,
  309. ``ss`` is seconds, and ``ff`` is frames.
  310. frame
  311. 1/74 of a second.