musicin

SYNOPSIS

musicin [options] [filein] [fileout]

Options:

[-h] [-v] [-s] [-l] [-r] [-c] [-f ushort]

DESCRIPTION

musicin encodes a 16-bit raw or AIFF file into mpeg-1 layer I or II file.

musicin is a compiled version of the source available from the Internet Underground Music Archives (http://www.iuma.com) modified for use under BeOS.

If no options are given, each parameter is requested from the standard input.

musicin requires the use of the tables. It looks to the environment variable "MPEGTABLES" to find what this directory is. You should ensure that MPEGTABLES is set to the correct directory.

If no "fileout" is supplied and a "filein" is supplied, "fileout" is assumed to be "filein.mpg".

OPTIONS

-l layer
Specifies the MPEG layer to use. Default is layer II. Layer I takes less CPU time to encode/decode, but does not offer the same level as compression as Layer II.
-m mode
Channel mode. No, I don't know what it means either. I just port the software :-). Default value is stereo. Valid channel modes are:
s
Stereo mode.
j
Joint stereo mode.
d
Dual channel mode.
i
Single channel mode.
-p psy
Psychoaccoustic models. Valid values are 1 and 2. Default is 2.
-s freq
Sampling frequency of the input signal. If it's an AIFF file, this will be read automatically. Default value is 44100
-b bitrate
Bitrate for the output file. The default value is 384kbit/s. This is not really necessary, though. Other common values are 128kbit/s and 64kbit/s. For layer II, 128kbit/s is not very perceptibly different from the original signal under the BeBox. At 128kbit/s you get about 10-fold compression. This is the most sensible option.
-d deemph
De-emphasis. Default is none. Valid values are:
n
none
5
0/15 microseconds
c
ccitt j.17
-c
Mark as copyright.
-o
Mark as original.
-e
Add error protection.

AUTHOR

Original authors:

MPEG Committee - i.e. Bill Aspromonte, Shaun Astarabadi, R. Bittner, Karlheinz Brandenburg, W. Joseph Carter, Jack Chang, Mike Coleman, Johnathan Devine, Ernst Eberlein, Dan Ellis, Peter Farrett, Jean-Georges Fritsch, Vlad Fruchter, Hendrik Fuchs, Bernhard Grill, Amit Gulati, Munsi Haque, Chuck Hsiao, Toshiyuki Ishino, Masahiro Iwadare, Earl Jennings, James Johnston, Leon v.d. Kerkhof, Don Lee, Mike Li, Yu-Tang Lin, Soren Neilsen, Simao F. Campos Neto, Mark Paley, Davis Pan, Tan Ah Peng, Kevin Peterson, Juan Pineda, Ernst F. Schroeder, Peter Siebert, Jens Spille, Sam Stewart, Al Tabayoyon, Kathy Wang, Franz-Otto Witte, Douglas Wong.

Porter to BeOS

Waleed Kadous, Ideas to Code Software
waleed@cse.unsw.edu.au