home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / audio-video / autogk / AutoGordianKnot.2.40.Setup.exe / tools / azid.txt < prev    next >
Text File  |  2003-12-18  |  26KB  |  782 lines

  1. AZID Readme v1.9 build 922 (2003-12-18)
  2. Copyright (C) 1997-2003 Midas <midas@egon.gyaloglo.hu>
  3. -------------------------------------------------------------------------------
  4.  
  5.  
  6. Introduction
  7. ============
  8.  
  9. This is the documentation for the AC3 decoder application, Azid. It is
  10. written by Midas <midas@egon.gyaloglo.hu>, copyright (C) 1997-2003
  11. Midas.
  12.  
  13. The most recent update of this program can be found on the excellent
  14. pages of http://www.doom9.org/
  15.  
  16.  
  17.  
  18. Usage and legal conditions:
  19. ---------------------------
  20.   This is a test implemenation of standard A/52 from ATSC (Digital Audio
  21.   Compression Standard), and it may contain algorithms covered by pending
  22.   patents. This application may solely be used for proving that bitstreams
  23.   are compliant to this standard for test and demonstration purposes only.
  24.   Any other use may be prohibited by law in your country. The author has
  25.   no liability regarding this application whatsoever. This application
  26.   may be distributed freely unless prohibited by law.
  27.  
  28.  
  29.  
  30. Overview
  31. --------
  32.  
  33. This document assumes that you know what AC3 is. I wont give any
  34. introduction to what AC3 is and how it is used. The internet is full
  35. of pages describing what AC3 is all about, the more authorative is
  36. probably for the authors of AC3: Dolby. http://www.dolby.com
  37.  
  38. Now for the technical stuff: AC3 is a digital compression algorithm
  39. which may compress up to 5 full bandwidth channels and one
  40. low-frequency effects channel (with limited bandwidth of 120Hz) into a
  41. bitstream. The size of this compressed bitstream is typically reduced
  42. by a factor of 13 compared with the raw data rate.
  43.  
  44. The specification for the AC3 decoder can be found in the ATSC
  45. specification A/52 at http://www.dolby.com or http://www.atsc.org.
  46.  
  47. AC3 encoded audio is divided into frames. One frame gives 1536 samples
  48. of audio or 32ms of audio at 48kHz sampling rate. A single frame is
  49. divided into several sub-sections:
  50.  
  51.       - syncronization
  52.       - bit stream information (BSI)
  53.       - 6 audio blocks
  54.       - auxilliary data (and CRC)
  55.  
  56. The BSI section contains information regarding the bitstream and the
  57. current frame. It contains information like samplerate, number of
  58. encoded channels, downmix-levels, dynamic compression types, program
  59. contents, etc.
  60.  
  61. The audio block contains the actual encoded audio. One block gives 256
  62. samples (approx. 5.3ms at 48kHz). One audio block is atomic; the audio
  63. decoding operation is repeated for each of these six blocks. The
  64. specific details of this operation can be found in the A/52 spec.
  65.  
  66.  
  67. Decoder operation
  68. -----------------
  69.  
  70. The decoder decodes an audio block into elementary channels of
  71. audio. These elementary channels represents the same channels that
  72. where fed into the ac3 coder at the studio; like center, left, right,
  73. etc. If the number of actual output channels is fewer than the encoded
  74. number of audio channels, the decoder must downmix these channels into
  75. the correct number of channels.
  76.  
  77. In this documentation these channels are called "input channels" and
  78. the channels are named: left (l), right (r), center (c), surround left
  79. (sl or s), surround right (sr) and low-frequency effect channel (lfe).
  80.  
  81. The downmix operation reduces the number of input channels to the
  82. requested number of speakers. This operation is controlled by the
  83. option -d. It selects how many front and rear speakers the decoder
  84. should decode to. If for example -d2/0 (2 front speakers, no rear
  85. speakers) is selected, everything is mixed into these two
  86. speakers/channels.
  87.  
  88. Then the audio is fed to the output selector. This controls which of
  89. these channels to route to the actual speaker output. The first
  90. speaker output is named output speaker 0, the next output speaker 1,
  91. etc. The decoder supports up to max. 6 output speakers.
  92.  
  93. The -o operaion controls what channel(s) to output. If -d2/0 is
  94. selected, the left and the right channel may be output with the -ol,r
  95. option. In this case, all other channels than l or r does not contain
  96. any audio because -d2/0 generates only audio in the l and r
  97. channels. Other sequences of channel output may also be chosen, or the
  98. same channel may be output several times. For example: -or,l or -oc,c
  99. is both legal options.
  100.  
  101. The -l and -L options control how the LFE channel is downmixed. The -l
  102. selects the downmix level of the LFE channel into the LFE (output)
  103. channel, while -L controls the amount of LFE audio into the left and
  104. right channels.
  105.  
  106. TIP: If -d3/2 decoding is chosen, no downmix is performed and it's
  107. possible to listen to individual channels selectable with the -o
  108. option. E.g. use -ol,r to listen to the left and right channels, or
  109. use -osl,sr to listen to the surround channels.
  110.  
  111. A special command option named --ch may be used to individually change
  112. the attributes for each channel. This option may be used both on input
  113. channels (named l,c,r,etc.) or on output speakers (numbers 0-5). The
  114. attributes may contain gain (see -g for syntax) and/or a dynamic
  115. compression value (see -c).
  116.  
  117.  
  118.  
  119. NEWS
  120. ====
  121.  
  122. Thanks to everyone helping me out finding those bugs and suggesting
  123. new features. A special thanks to DSPGuru for making an superb
  124. frontend to Azid, and giving meg lots and lots of feedback.
  125.  
  126. This is the list of new features added to Azid:
  127.  
  128. v1.9
  129. ----
  130.  
  131. - Added support for Dolby Pro Logic II downmix output
  132.  
  133. - Fixed popping bug when playing back ac3 files with low volumes.
  134.  
  135. - Increased disk-caching memory to decrease frantic disk activities by
  136.   buffering more data.
  137.  
  138. - Added support for 32-bits integer wav's
  139.  
  140. - Default LFE into LR downmix level is changed from 0dB to -3dB, since
  141.   there are to front-speakers.
  142.  
  143. - Added PIII and P4 optimized version of the decoder
  144.  
  145.  
  146. v1.8
  147. ----
  148.  
  149. - Fixed DRC bug that caused occational clicks and pops when decoding
  150.   using normal dynamic compression.
  151.  
  152. - Fixed WAV-header bug. Azid now generates WAV-files with proper
  153.   headers. This bug occurred on wav32 output, which would generate an
  154.   integer header with float data.
  155.  
  156. - Added new file output types and renamed them to give them simpler
  157.   and more informative names. See -F option for more information.
  158.  
  159. - Fixed bug in azid soundcard playback that caused azid to hang on
  160.   ac3-files shorter than 0.5 seconds.
  161.  
  162. - Fixed the downmix overflow logic. The decoder will now print the
  163.   largest overflow within a block, not the first, making it more
  164.   reliable for finding the maximum level of the file.
  165.  
  166. - Added a warning output enable/disable function (-w).
  167.  
  168. - Added statistics output printing the total maximum level of the
  169.   channels, and how many samples that overflowed.
  170.  
  171. - Added support of stdout/stdin streaming. This can be done by using
  172.   the '-' character as input and/or output filename.
  173.  
  174. - Proper Ctrl+C handling
  175.  
  176. - Fixed proper returnvalue from azid.exe
  177.  
  178. - Added a two-pass maximize function. This can be used to maximize the
  179.   volume of the decoded audio.
  180.  
  181. - Added sectional decoding opertunities with -B and -E. With this
  182.   function a section of the input file can be decoded, not only the
  183.   entire file
  184.  
  185. - Added support for commandfile-scripts for easier reuse of options
  186.  
  187. - Fixed proper dynamic compression for channel 1 on 1+1 ac3 files
  188.  
  189.  
  190.  
  191.  
  192. DESCRIPTION
  193. ===========
  194.  
  195. This section describes each setting of the decoder and how it affects the
  196. decoding process.
  197.  
  198. The command-line syntax of Azid is:
  199.  
  200.     azid.exe [options] input.ac3 [output.wav]
  201.  
  202. There are three versions of Azid available. One generic version
  203. (azid.exe), one optimized for Intel Pentium III CPU's (azid_P3.exe)
  204. and one for Intel Pentium 4 (azid_P4.exe). Please use the version that
  205. fits your CPU, the higher CPU version you can use, the faster the
  206. application works.
  207.  
  208. The output.wav file is optional. If omitted, Azid sends the audio to
  209. your soundcard. If the -N option is used, no ouput will be produced
  210. (neither to a file nor to the soundcard).
  211.  
  212. The numbers of entries in the -o option controls the number of output
  213. channels that Azid will produce. The default option -ol,r will produce
  214. a stereo wav or play stereo sound. If, however, -oc is used, the
  215. wav-file will be mono and the playback will be mono. More than 2 items
  216. in the -o option will create multi-channel output. Dependent on your
  217. soundcard (driver), multichannel output might not be possible.
  218.  
  219.  
  220. Streaming
  221. ---------
  222.  
  223. If the input file is given as '-' Azid will take its input from stdin
  224. stream instead of a file, and if the output file is given as '-' its
  225. output will be sent to stdout stream. This has two major side effects:
  226. If the input file is stdin, you cannot use options that will try to
  227. seek the file, like the two-pass maximize in the input. The same
  228. applies to the output, you cannot use wav-types outputs, because the
  229. same seeking mechanisms are used there to write the proper wav-header.
  230.  
  231. The second side effect is that the streaming ability of Windows is
  232. broken.
  233.  
  234.  
  235. Decoding overflow
  236. -----------------
  237.  
  238. When decoding 1 on 1 (2ch AC3 to 2 channel output and 6ch AC3 to 6
  239. channel output, etc.), small overflows can be observed from time to
  240. time when not using any dynamic compression. This is a normal because
  241. of the way AC3 works. Quote from the AC3 specification (p.93
  242. 1.paragraph):
  243.  
  244. "... Since the output signal consists of the original signal plus
  245. coding error, it is possible for the output signal to exceed 100%
  246. level even though the original input signal was less than or equal to
  247. 100% level."
  248.  
  249. When a downmix overflow is encountered, the output signal will be
  250. saturated to 0dB FS to prevent overflow (wrap around).
  251.  
  252.  
  253.  
  254. COMMAND OPTIONS
  255. ===============
  256.  
  257.  
  258. -a, --maximize
  259. --------------
  260.  
  261. Default: omitted
  262.  
  263. This option will enable a two-pass maximize function of azid. Azid
  264. will in the first pass scan the entire file to find the maximum
  265. level. In the second pass the audio will be properly decoded, gaining
  266. it up to 0dB FS.
  267.  
  268. NOTE: Sometimes when you use this function, the output will still
  269. create downmix overflow warnings. This is normal. It happens because
  270. the signal has touched the 0dB FS, or because of some random value
  271. within the signal has caused it to slightly overload.
  272.  
  273.  
  274.  
  275. -b BOOL, --bsi-log=BOOL 
  276. -----------------------
  277.  
  278. Default: true
  279.  
  280. The AC3 bitstream contains a BSI (Bit Stream Information)
  281. section. This section contains information about the bitstream, like
  282. sampling rate, number of channels, and other informative information.
  283.  
  284. This command option enables/disables such print-outs. A typlical BSI
  285. print-out looks like this:
  286.  
  287.  
  288.       +------ BSI -----
  289.       |  Bitrate: 448 kbit (48 kHz)
  290.       |  Mode: Complete Main (CM)
  291.       |  Audio mode: 2/2  L,R,SL,SR
  292.       |  Surround mix level: -3.0dB
  293.       |  Dialogue level: -27dB
  294.       |  Language: English
  295.       |  Mixlevel: 105dB SPL
  296.       |  Roomtype: Small root, flat monitor
  297.       |  Stream: Copyright protected, Original stream
  298.       +----------------
  299.  
  300.  
  301. -B TIME, --begin=TIME
  302. ---------------------
  303.  
  304. Default: #0
  305.  
  306. This options enables you to control when or where in the file the
  307. decoding should start. The decoder skips the frames until the
  308. specified time or frame has been reached and starts from there to
  309. produce output.
  310.  
  311. Please note that azid doesnt simply skip to the indicated time, but
  312. will parse through the stream to the indicated time. This is done to
  313. be able to find the correct point to start decoding.
  314.  
  315. The argument can be given as a frame number (#num) or as a time
  316. ([[HH:]MM:]SS[.mss]). Examples:
  317.  
  318.   -B#0     Start decoding at frame 0 (inclusive)
  319.   -B#100   Start decoding at frame 100
  320.   -B23     Start decoding at second 23
  321.   -B1:00   Start decoding at one minute
  322.  
  323.  
  324.  
  325. -c COMPR, --dcompr=COMPR
  326. ------------------------
  327.  
  328. Default: none
  329.  
  330. This option sets the overall dynamic compression in the decoder. This
  331. value is applied to every output speaker.
  332.  
  333. The bitstream contains information of how much to amplify or attenuate
  334. the sound to decrease the overall dynamic variations (loudness) in the
  335. program contents. Different options exists to choose the wanted
  336. dynamic reduction:
  337.  
  338.  
  339.   o none     No dynamic compression. The program contents is unchanged.
  340.  
  341.   o normal   Normal dynamic compression. Normal in-store decoders use
  342.          this as an hardcoded default.
  343.  
  344.   o light    Light dynamic compression. This is 50% (-6db) of the
  345.          reduction/gain that normal dynamic compression would give.
  346.  
  347.   o heavy    Heavy dynamic compression. Intended for poor listening
  348.          environment with much background noise.
  349.  
  350.   o inverse  Dynamic expansion. This is the inverse value of the light
  351.          dynamic compression, i.e. it makes strong sounds stronger
  352.              and weaker sounds weaker.
  353.  
  354.  
  355.  
  356. -C LEVEL, --clevel=LEVEL
  357. ------------------------
  358.  
  359. Default: BSI
  360.  
  361. This command option controls the center dowmix level into the LR
  362. channels.  Normally, the BSI section contains a field which tells the
  363. decoder of how to downmix the center channel into the LR channels.
  364.  
  365. With this option, the user may override the BSI center downmix level
  366. and specify a custom value. Note that this option is only active when
  367. the output decode mode (-d) is 2/x.
  368.  
  369. Allowable values is gain values (either in db's or a positive
  370. numerical value) or BSI. When BSI is selected, the center downmix
  371. level gets its value from the BSI section.
  372.  
  373.  
  374.  
  375. --ch#=ATTRIB0[,ATTRIB1[,...]]
  376. -----------------------------
  377.  
  378. This option sets one or more attributes for the given channel. There
  379. are two major types of channels available:
  380.  
  381.     o The input channels. This is channels coming directly from the
  382.       decoder prior to downmixing. Each of these channes represent the
  383.       same as the channels put into the ac3 coder at the studio.
  384.       Allowed channel names are: l,c,r,sl,sr,s or lfe.
  385.  
  386.     o The output channel or speaker. It refers to a output channel
  387.       after downmixing and output selecting (-o). It refers directly
  388.       to the index of the -o option. E.g. '-ol,r' implies that output
  389.       channel 0 the left channel, and the output channel 1 is the
  390.       right channel.  If '-oc,c --ch0=12db' is used, both output will
  391.       contain the center channel, but only the first channel will have
  392.       12db gain.  Allowed output channel names are: 0,1,2,3,4 and 5.
  393.  
  394. The attributes may be:
  395.  
  396.     o Channel gain. This specifies how much the signal on the given
  397.       channel should be amplified/attenuated. Legal values are
  398.       positive numbers or a logarithmic value written with the postfix
  399.       'db'.  Examples: --chl=12 --chc=0 --ch0=+3db --ch1=-3db
  400.      
  401.     o Channel dynamic compression. This specifies the dynamic
  402.       compression to use for that channel. Allowable values are:
  403.       none,light,normal, heavy and inverse. Examples: --chc=normal
  404.  
  405. Several attributes may be separated by commas. Like this:
  406.  
  407.     --chc=normal,3db  or  --chlfe=light,0.5  or  --ch0=none,-3db
  408.  
  409.  
  410.  
  411. -d FRONT/REAR, --decode=FRONT/REAR
  412. ----------------------------------
  413.  
  414. Default: 2/0
  415.  
  416. This option selects how many front and rear speakers the decoder
  417. should downmix for. The argument is given as front speakers/rear
  418. speakers.
  419.  
  420. Note that this option only sets the downmix type, not the actual
  421. output.  The -o option controls which channels to output. This option
  422. does not control the LFE channel (see -l and -L).
  423.  
  424. Possible values are: 1/0, 2/0, 3/0, 1/1, 2/1, 3/1, 1/2, 2/2, 3/2
  425.  
  426.  
  427.  
  428. -e ERROR_ACTION, --erraction=ERROR_ACTION
  429. -----------------------------------------
  430.  
  431. Default: zero
  432.  
  433. This options contols the decoder action in case of bitstream
  434. errors. Possible values are:
  435.  
  436.     o quit. This causes Azid to quit the entire application if it
  437.       encounters an error in the bitstream.
  438.  
  439.     o zero. The decoder will skip the current frame of ac3-data and
  440.       pad the output with silence and continue with the next frame of
  441.       data.
  442.  
  443.  
  444.  
  445. -E TIME, --end=TIME
  446. -------------------
  447.  
  448. This option sets when to stop decoding. (See -B). The argument can be
  449. given as a frame number (as #nn) or as a time (as [[HH:]MM:]SS[.mss]).
  450. The argument is inclusive, i.e. if #100 is given, it will decode frame
  451. 100 and then stop.
  452.  
  453.  
  454.  
  455. -f BOOL, --rear-filter=BOOL
  456. ---------------------------
  457.  
  458. Default: off
  459.  
  460. This option controls rear-channel filtering in 2/0 output mode. The
  461. filter is a 2nd order Butterworth filter with at -3 dB point at 7
  462. kHz. There are two major applications for this feature:
  463.  
  464.     o To provide proper Pro Logic downmix of the rear channels
  465.  
  466.     o Phasing-problems in the downmix (washy sound) caused by the rear
  467.       channel downmix into the L R channels.
  468.  
  469. Usually the rear channels are phased 90 deg in respect of the front
  470. channels prior or inside the ac3 encoder. This is done to avoid
  471. phasing problems when downmixing the program contents to two
  472. channels. Some sources do not provide this shifting, and thus this
  473. feature is added.
  474.  
  475. The filter provides an increasing phase shift according to
  476. frequency. It is 90 deg at 7kHz.
  477.  
  478. NOTE: This option is only effective when 2/0 output mode is selected
  479. (-d 2/0).
  480.  
  481.  
  482.  
  483. -F FILE_TYPE, --filetype=FILE_TYPE
  484. ----------------------------------
  485.  
  486. Default: wav
  487.  
  488. Selects the file type to generate. Possible values are:
  489.  
  490.   o wav. Generates "normal" 16-bits wav.
  491.  
  492.   o wav24. Generate 24-bit integer wav.
  493.  
  494.   o wav32. Generate 32-bits integer wav
  495.  
  496.   o wav_float. Generate 32-bits floating-point (IEEE) wavs.
  497.  
  498.   o pcm. Generate 16-bit pcm (equal to wav, only without
  499.     the wav-header)
  500.  
  501.   o pcm32. Generate 32-bit integer PCM
  502.  
  503.   o pcm_float. Generate 32-bits floating-point (IEEE) PCM
  504.     output.
  505.  
  506.  
  507.  
  508. -g GAIN, --gain=GAIN
  509. --------------------
  510.  
  511. Default: 1.0 (or 0db)
  512.  
  513. This option controls the main (output speaker) gain. The value can be
  514. given in db's (by specifying "db" after the argument) or a positive
  515. numerical value. Examples: -g-3db, -g5.3, -g6db
  516.  
  517.  
  518.  
  519. -i FILE, --script=FILE
  520. ----------------------
  521.  
  522. This option enables you to set all azid option from a command script
  523. file. This file uses the following syntax:
  524.  
  525.   o All lines beginning with '#' or ';' is regarded as comments
  526.  
  527.   o Blank lines will be ignored
  528.  
  529.   o An option is given as command[=argument]. The argument can be
  530.     omitted if the command does not require an argument.
  531.  
  532.   o The command are equal to the long names of the commandline options
  533.     (the -- options).
  534.  
  535. Example:
  536.  
  537.   gain = 9dB
  538.   filetype = pcm32
  539.   no-output
  540.  
  541.  
  542.  
  543. -l LFE_LEVEL, --lfe=LFE_LEVEL
  544. -----------------------------
  545.  
  546. Default: 0.0
  547.  
  548. This controls the downmix-level of the LFE channel into the LFE output
  549. speaker. I.e. if this options is set to a non-zero value, the LFE
  550. channel output may be listened to with the -olfe option.
  551.  
  552.  
  553.  
  554. -L LRLFE_LEVEL, --lrlfe=LRLFE_LEVEL
  555. -----------------------------------
  556.  
  557. Default: 1.0 (or 0db)
  558.  
  559. This controls the downmix-level of the LFE channel into the LR
  560. channels.
  561.  
  562.  
  563.  
  564. -m MONO_MODE, --mono=MONO_MODE
  565. ------------------------------
  566.  
  567. Default: stereo
  568.  
  569. This option control what type of 1+1 decoding should be used. A
  570. special channel configuration exists, where the stream contains two
  571. mono audio channels (called 1+1). Selectable options:
  572.  
  573.     o ch1. Route channel 1 into center.
  574.  
  575.     o ch2. Route channel 2 into center.
  576.  
  577.     o mono. Route channel 1 + channel to into center.
  578.  
  579.     o stereo. Route channel 1 into left and channel 2 into right.
  580.  
  581.  
  582.  
  583. -M BOOL, --matrix-log=BOOL
  584. --------------------------
  585.  
  586. Default: off
  587.  
  588. This option makes the decoder print the dowmix matrix with its
  589. individual coeffesients. A typical print would look something like
  590. this:
  591.  
  592.  
  593.       +------ DOWNNMIX MATRIX -----
  594.       |          IN0     IN1     IN2     IN3     IN4     IN5
  595.       |  L  : +0.2426 +0.1716 +0.0000 -0.1716 -0.1716 +0.2426
  596.       |  C  : +0.0000 +0.0000 +0.0000 +0.0000 +0.0000
  597.       |  R  : +0.0000 +0.1716 +0.2426 +0.1716 +0.1716 +0.2426
  598.       |  SL :                 +0.0000 +0.0000 +0.0000
  599.       |  SR :                 +0.0000 +0.0000 +0.0000
  600.       |  LFE:         +0.0000 +0.0000 +0.0000 +0.0000 +0.0000
  601.       +----------------------------
  602.  
  603. The channels on the top (INx) are the input channels. Which channel
  604. each of these inputs represent can be read from the audio mode section
  605. in the BSI printout:
  606.  
  607.       |  Audio mode: 2/2  L,R,SL,SR
  608.  
  609. Here L is IN0, R is IN1, etc. Note that the input channel gain does
  610. not affect the downmix matrix coeffesients, while -C and -S does.
  611.  
  612.  
  613.  
  614. -n BOOL, --norm=BOOL
  615. --------------------
  616.  
  617. Default: false
  618.  
  619. This selects if the decoder should use dialog normalization
  620. reduction. The normal dialogue level in a program is defined a
  621. reference of loudness, 0db.  The BSI info variable "dialogue level"
  622. informs how much this dialogue level is under 0db full-scale (FS) - or
  623. how much headroom there is above the dialogue level before clip.
  624.  
  625. One of Dolby's intentions with this variable is to ensure that all
  626. dialogue levels are played back with the same volume, regardless of
  627. the program's amount of headroom. It is good to have when the movie
  628. you're looking at is interrupted by a commercial break, where the
  629. headroom varies enormously.  (It prevents blowing your ears off when
  630. the break comes.)
  631.  
  632. This feature is implemented by attenuate everything such that all
  633. programs have 31 db headroom, regardless of its original headroom. For
  634. a typical -27db headroom program, this will case a -4db gain.
  635.  
  636.  
  637.  
  638. -N, --no-output
  639. ---------------
  640.  
  641. This options causes the decoder not to produce any output, neither to
  642. a wav- file nor to the soundcard. This is ideal for running through
  643. the file to check its validy. It requires no arguments.
  644.  
  645.  
  646.  
  647. -o SEQUENCE, --output=SEQUENCE
  648. ------------------------------
  649.  
  650. Default: l,r
  651.  
  652. This options controls the channel and the sequence of the output
  653. channels.  The selectable channels are all input channels
  654. (l,c,r,s,sl,sr and lfe) and a special zero-data channel (0). Up to 6
  655. channels may be listed with this command.
  656.  
  657. The -d option controls what kind of decoding target to use. This -o
  658. option controls which of these channels to ouput (and their
  659. sequence). Let's say for example that you have a 4 channel
  660. soundcard. You would like to have left and right on one of the outputs
  661. and surround left and surround left on the other. To do this you must
  662. specify -ol,r,sl,sr.
  663.  
  664.  
  665.  
  666. -p PRESET, --preset=PRESET
  667. --------------------------
  668.  
  669. Default: 2ch
  670.  
  671. Azid has some pre-defined settings. The default is 2/0 which all other
  672. settings are derived from. The default command-prompt is:
  673.  
  674.     -ezero -b1 -z1 -M0 -mstereo -ssurround -d2/0 -ol,r -L1 -l0
  675.     -Cbsi -Sbsi -cnone -n0 -g1
  676.  
  677. (which is the same as using -p2ch and not using the -p option at
  678. all). The pre-defined options are:
  679.  
  680.     o 2ch. This is the configuration for 2/0 channel decoding. This
  681.       option is really redundant, since this is the default preset.
  682.  
  683.     o 4ch. This setting will produce a 4 channel output, 2/2. The
  684.       command prompt equivalent is: -d2/2 -ol,r,sl,sr
  685.  
  686.     o 6ch. This setting will produce a 6 channel output, 3/2+lfe. The
  687.       command prompt equivalent is: -d3/2 -L0 -l1 -ol,r,sl,sr,c,lfe
  688.  
  689.  
  690.  
  691. -q, --no-logging
  692. ----------------
  693.  
  694. This option will disable the output logging. No BSI info, no settings,
  695. nor bitstream error will be shown. This option overrides the -b, -z
  696. and -M option.  It requires no argument.
  697.  
  698.  
  699.  
  700. -Q, --no-progress
  701. -----------------
  702.  
  703. This option will disable the decoding progress indicator. It does not
  704. require any arguments.
  705.  
  706.  
  707.  
  708. -s STEREO_MODE, --stereo=STEREO_MODE
  709. ------------------------------------
  710.  
  711. Default: surround
  712.  
  713. When 2/0 decoding is selected, this option controls what kind of
  714. stereo downmix should be applied. Possible values are:
  715.  
  716.     o mono. Used for mono downmixes 
  717.  
  718.     o stereo. Standard stereo downmix
  719.  
  720.     o dpl (default). Dolby Pro Logic downmix is selected
  721.  
  722.     o dplii. The new Dolby Pro Logic II downmix is selected
  723.  
  724.  
  725.  
  726. -S LEVEL, --slevel=LEVEL
  727. ------------------------
  728.  
  729. Default: BSI
  730.  
  731. This command option controls the surround dowmix level into the LR
  732. channels.  Normally, the BSI section contains a field which tells the
  733. decoder of how to downmix the surround channels into the LR channels.
  734.  
  735. With this option, the user may override the BSI surround downmix level
  736. and specify a custom value. Note that this option is only active when
  737. the output decode mode (-d) is 2/x and the input stream is either x/1
  738. or x/2.
  739.  
  740. Allowable values is gain values (either in db's or a positive
  741. numerical value) or BSI. When BSI is selected, the surround downmix
  742. level gets its value from the BSI section.
  743.  
  744.  
  745.  
  746. -w BOOL, --warn=BOOL
  747. --------------------
  748.  
  749. Default: on
  750.  
  751. This options selects if warning output should be printed. Warnings are
  752. messages like "Downmix overflow" etc.
  753.  
  754.  
  755.  
  756. -z BOOL, --set-log=BOOL
  757. -----------------------
  758.  
  759. Default: on
  760.  
  761. This option selects if the current settings should be printed in an
  762. easy- readable output. Like this:
  763.  
  764.       +------ SETTINGS -----
  765.       |  Input channel configuration:
  766.       |    Left     :  None    compression, +0dB gain
  767.       |    Center   :  None    compression, +0dB gain
  768.       |    Right    :  None    compression, +0dB gain
  769.       |    Sur Left :  None    compression, +0dB gain
  770.       |    Sur Right:  None    compression, +0dB gain
  771.       |    LFE      :  None    compression, +0dB gain
  772.       |  Output configuration: 2/0
  773.       |    Ch0 [Left     ]:  None    compression, +0dB gain
  774.       |    Ch1 [Right    ]:  None    compression, +0dB gain
  775.       |  Output Dual mono mode: Stereo
  776.       |  Output Stereo mode: Dolby surround compatible
  777.       |  LFE levels: To LR +0dB, To LFE -INF
  778.       |  Center   mix level: +40.0dB
  779.       |  Surround mix level: BSI
  780.       |  Dialog normalization: No
  781.       +---------------------
  782.