home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / MULTIMED / OS2ENC01 / readme.txt < prev   
Text File  |  1997-03-28  |  6KB  |  150 lines

  1. Readme for OS2ENC/OS2DEC v.0.1:
  2.  
  3. OS2ENC/OS2DEC is a freeware Mpeg audio Encoder/Decoder for OS/2.
  4. It was compiled with Gcc, so it requires that you have the emx 0.9c
  5. runtimes installed on your system.
  6.  
  7. As it's only an encoder/decoder, you don't need to have any multimedia
  8. hardware installed. (you'll need it if you want to sample some songs
  9. and test it by yourself, obviously)
  10.  
  11. This version is a raw port of the public source code available at
  12. ftp://ftp.tnt.uni-hannover.de/pub/MPEG/audio/mpeg2/software/technical_report/dist08.tar.gz
  13. So don't expect ANY performance.
  14.  
  15. Anyway, it's the first layer-3 encoder available for OS/2 at this 
  16. present time and it's not crippled (in the general meaning of the term).
  17. In fact, it's crippled by its own limitations, especially by its speed !
  18.  
  19. Installation:
  20. ------------
  21.  
  22. Just unzip the file in an empty directory, say x:\mp3\os2enc\,
  23. make sure you have the amx 0.9c runtimes installed on your computer, 
  24. make sure you are in an OS/2 session (no, it won't work under Dos or 
  25. the nasty windoze).
  26. Last thing to do is to set an environment variable for the translation
  27. tables.
  28. Either type SET MPEGTABLES=x:\mp3\os2enc at the prompt for this particular
  29. session, or put it in your CONFIG.SYS (and don't forget to reboot for
  30. changes to take effect)
  31.  
  32. Features:
  33. --------
  34.  
  35. The encoder/decoder is fully MPEG-1 and MPEG-2 compatible, for the
  36. three available layers (Layer-1, layer-2 and ... layer-3).
  37.  
  38. As MPEG-2 introduces multichannel notions, it's only been tested
  39. for being compatible with MPEG-1, and it's probably the only thing
  40. you'll need, as MPEG-1 is used for 44Khz, stereo, 16b compression,
  41. that means CD-quality. MPEG-2 is used for lower sampling frequencies
  42. (ie: 22.05 Khz or below)
  43.  
  44. The import format for the sound files is PCM, which means a raw
  45. sound file, with signed integer and 16bits. This version doesn't
  46. handle WAV files yet.
  47. The output format of the decoder is either raw (PCM) or AIFF.
  48.  
  49. Hint: if you don't know how to make a PCM file, just take a WAV file
  50.       and cut the first 44 byter of it, it should work.
  51.  
  52. The decoder decodes almost any MPEG-1 and -2 compliant files.
  53. The encoder lets you chose between the 3 available layers, the
  54. output bitrate, and some other options:
  55.  
  56. 1. First, you'll enter the input filename of your sound file
  57. 2. Then, the output filename, default is <input_file>.mpg
  58. 3. Then, you'll need to enter its sample frequency in KHZ:
  59.     correct values are 44100 (default) or 22050, 11025 not available yet
  60.     If you chose 44100 KHz, the encoding algorithm will be MPEG-1
  61.     If you chose 22050 KHz, it will be MPEG-2
  62.  
  63. 4. Then the layer you would like to use:
  64.      Layer-2 is designed for an output bitrate of 128 Kbps/channel 
  65.      Layer-3 is designed for an output bitrate of  64 Kbps/channel
  66.  
  67.      So, depending on the type of compression you need, use layer-2 
  68.      or layer-3
  69.  
  70.      Layer-2 gives a lossless compression of 6:1 for a 256 Kbps 
  71.        bitrate for a stereo signal.
  72.      Layer-3 gives a lossless compression of 10 to 12:1 for a 
  73.        128 to 112 Kbps for a stereo signal.
  74.  
  75.      This means, if you use layer-3 at 112 Kbps on CD-quality sound, you'll
  76.      get a 1 Mb/mn of audio sound with the same quality as a Wav file, which
  77.      sucks 10 Mb/mn of music... Ain't it cool ... ! :)
  78.  
  79.  
  80. 5. Next is the mode you want:
  81.      Available are (s) for stereo (default)
  82.                    (j) for joint-stereo (fake stereo from both channels)
  83.                    (d) dual channel
  84.                    (i) single channel (use this one if the input is a mono 
  85.                                        signal)
  86.  
  87.      For some reasons, joint-stereo doesn't work yet, so forget it ...
  88.  
  89. 6. Then chose the psychoacoustic model (uh ? ..):
  90.      Don't worry, here's the hint, use '2' for layer-3 and '1' for layer-2
  91.      (caution: '1' is the default, think about it when you use layer-3)
  92.  
  93. 7. Then enter the bitrate for the output file (this value is the global
  94.    output bitrate, for both channels).
  95.  
  96.    Common values are 384 - 320 - 256 - 192 - 128 - 112 - 96 - 64 - 56 - 32
  97.  
  98.    You can try layer-2 at 256 for high quality, 192 with a little loss
  99.    For layer-3, preferred values are 128 or 112 Kbps for lossless quality.
  100.  
  101. 8. Then, you'll be prompt for the de-emphasis ... use <n>one .
  102. 9. Then you'll be prompted for some adding stuff, the private bit, error
  103.    protection, copyright ,etc... chose what you want.
  104.  
  105. 10. And yet, go for it... you'll get a summary of the options you chose,
  106.     and you'll 'see' the coding. Remember, encoding takes a looooooong 
  107.     time, don't blame me for it right now, okay ... :)
  108.  
  109. Now, even if you don't have a descent player, or if your computer is not
  110. a Pentium and though can't play a mp2 or mp3 file in real-time, if you
  111. want to keep some wav files and save some hard-disk space, use this
  112. program as a compressor... It achieves far better than Rar or Zip, 
  113. believe me.
  114.  
  115. You can also use these options at the command-line prompt, just
  116. type 'encode -h' to get help.
  117.  
  118.  
  119. To-do list:
  120. ----------
  121.  
  122. - test every option (esp. the MPEG-2 algorithm)
  123. - fix the joint_stereo option and 11025 Khz 
  124. - add input/output file formats (Wav,AIFF,etc)
  125. - change the defaults dialogs according to the layer choices
  126. - change the verbose output to a descent one 
  127. - optimize the code (yeah, that's the main stuff)
  128.  
  129. History:
  130. -------
  131.  
  132. February, 1 1997: version 0.01 
  133.   First beta version 
  134.  
  135. Acknowledgments:
  136. ---------------
  137.  
  138. This program is provided 'as is', which means I won't be responsible
  139. for any thing that turns wrong (as Murphy said, 'if something can go
  140. wrong, it will')... Obviously, it won't wipe out your hard-drive
  141. (on the contrary, if your hard drive is full of wav files, it will
  142. clean it up safely). Be careful when you uncompress mp3 files,
  143. remember layer-3 compresses up to 12:1 so if you have a 5 MB mp3 file,
  144. you'll get a 60 MB WAV file (AIF in fact).
  145.  
  146. That's all folks... enjoy it, feel free to distribute it to your
  147. OS/2 friends, and look for the next releases of this software.
  148.  
  149. --
  150.