home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / a / audiompeg / !AudioMPEG / !Help < prev    next >
Text File  |  1995-05-23  |  4KB  |  114 lines

  1.  
  2.  MPEG Audio encoder and decoder
  3.  ==============================
  4.  Version 0.02 by Henrik Bjerregaard Pedersen.
  5.  
  6.  This program is Public Domain, and is provided 'as is'. The author cannot
  7.  accept any liability for any damage or loss of any kind as a result of the
  8.  use of this program.
  9.  You are allowed to copy, distribute and use this program for any
  10.  non-commercial purposes, as long as this file is included unaltered.
  11.  
  12.  Bug report, suggestions (and donations!!!) to
  13.  
  14.  Henrik Bjerregaard Pedersen
  15.  Stengaaards Alle 13B
  16.  DK-2800 Lyngby
  17.  Denmark
  18.  email: henrik@login.dknet.dk
  19.  
  20.  
  21.  
  22.  Encoder
  23.  -------
  24.  The encoder compresses a raw sample file (16 bit linear signed) in either
  25. mono or stereo. The samples must be stored with the low byte first.
  26.  
  27.  Usage:   Encode [switches] <input> <output>
  28.  
  29.  Switches:      -m <mode>               m (mono) or s (stereo)
  30.                 -s <freq>               source sample rate in kHz.
  31.                 -b <kbps>               bitrate in kbits/second
  32.  
  33.  Default is     -m s -s 44.1 -b 384
  34.  
  35.  
  36.  If the sample file is a stereo sample, the channels should be interleaved
  37. LRLRLRLR...
  38.  
  39.  Legal sample rates are 32kHz, 44.1kHz and 48kHz. However, this doesn't mean
  40. that you cannot compress samples recorded at other sample rate; only that the
  41. encoder assumes that the frequency is either 32, 44.1 or 48 kHz.
  42.  You should select the sample rate closest to the actual samplerate and you
  43. should be careful when encoding samples recorded at frequencies very much
  44. lower than 32kHz. The encoder uses various psychoacoustic tricks to compress
  45. the sample; eg. it assumes that the ear is less sensitive to variations in
  46. volume at some frequencies than at others. If you encode a 10kHz sample by
  47. specifying a sample rate of 32kHz, the algorithmes will actually be applied
  48. to frequencies only 1/3 of what they're supposed to be, and so will have a
  49. different effects than what was intended.
  50.  
  51.  The possible bitrates are:
  52.  0,32,48,56,64,80,96,112,128,160,192,224,256,320,384.
  53.  
  54.  
  55.  If you want to compress a sample to 15% of the original, you should select a
  56. bitrate which is 15% of the sample rate you specify. So if your sample was
  57. recorded at 28kHz, you specify 32kHz as the sample rate and a bitrate of
  58. 80 kbps (0.15 * 32000 samples/second * 16 bits/sample = 80000 bits/second).
  59.  
  60.  Example:  Encode -m m -s 32 -b 80 samplefile ampegfile
  61.  
  62.  
  63.  
  64.  Decoder
  65.  -------
  66.  The decoder outputs a file holding 16 bit linear signed samples. If the
  67. sample is in stereo, the channels will be interleave (LRLRLRLR...).
  68.  
  69.  Usage:   Decode [switches] <input> <output>
  70.  
  71.  Switches:       -h   output high byte first
  72.  
  73.  Example: Decode -h ampegfile samplefile
  74.  
  75.  
  76.  
  77.  The frontend
  78.  ------------
  79.  When you run !AudioMPEG, it installs an icon on the icon bar. Click
  80. SELECT on this to open the encoder window. To encode a sample file, simply
  81. drag the file to this window or to the AudioMPEG icon on the iconbar.
  82.  You may then alter the parameters (bits-per-second, sample-rate, number
  83. of channels) and when this is OK, clicking on the 'OK' icon will open a
  84. standard save-box which lets you specify where the encoded file should be
  85. saved.
  86.  The encoding may optionally be run multitasking by selecting the 'Multitask'
  87. icon in the encoder window.
  88.  
  89.  To decode a file, simply drag it to the AudioMPEG icon on the iconbar which
  90. will open the save window.
  91.  The file MUST have filetype &1AD (AMPEG). Decoding is done multitasking (in
  92. a taskwindow) if the 'Multitask' icon in the encoder window is set.
  93.  
  94.  
  95.  Speed
  96.  -----
  97.  The current decoder runs at about 2-4% of real-time, which is actually
  98. quite fast compared to the encoder. So the encoder and decoder should only
  99. really be used when you need to store/transmit large samples.
  100.  
  101.  
  102.  ftp-sites
  103.  ---------
  104.  For examples of MPEG audio files, try
  105.  
  106.    sunsite.unc.edu
  107.  
  108.  in the directory
  109.  
  110.    pub/electronic-publications/IUMA/music/Clapton,_Eric
  111.    pub/electronic-publications/IUMA/music/Madonna
  112.    pub/electronic-publications/IUMA/music/Prince
  113.    pub/electronic-publications/IUMA/music/Buffalo,_Grant_Lee
  114.