★ wanayoo — archive 1999 http://nodevice.com/sections/ManIndex/man0882.htmlNouvelle recherche | Portail wanayoo

mpg123 (1)

play audio MPEG 1.0/2.0 file (layers 1, 2 and 3)

Previous   Next   Man IndexSections: 0 1 2 3 4 5 6 7 8 N

SYNOPSIS

DESCRIPTION

OPTIONS

OPERANDS

    The following operands are supported:

    file (s)

      The path name(s) of one or more input files. They must be valid MPEG-1/2 audio layer-1, -2 or -3 bit streams. If a dash ``-'' is specified, MPEG data will be read from the standard input. Furthermore, any name starting with ``http://'' is recognized as URL (see next section).

HTTP SUPPORT

    In addition to reading MPEG audio streams from ordinary files and from the standard input, mpg123 supports retrieval of MPEG audio files via the HTTP protocol, which is used in the World Wide Web (WWW). Such files are specified using a so-called URL (universal resource location), which starts with ``http://''. When a file with that prefix is encountered, mpg123 attempts to open an HTTP connection to the server in order to retrieve that file to decode and play it. It is often useful to retrieve files through a WWW cache or so-called proxy. To accomplish this, mpg123 examines the environment for variables named MP3_HTTP_PROXY , http_proxy and HTTP_PROXY , in this order. The value of the first one that is set will be used as proxy specification. To override this, you can use the -p command line option (see the ``OPTIONS'' section). Specifying -p none will enforce contacting the server directly without using any proxy, even if one of the above environment variables is set. Note that, in order to play MPEG audio files from a WWW server, it is necessary that the connection to that server is fast enough. For example, a 128 kbit/s MPEG file requires the network connection to be at least 128 kbit/s (16 kbyte/s) plus protocol overhead. If you suffer from short network outages, you should try the -b option (buffer) to bypass such outages. If your network connection is generally not fast enough to retrieve MPEG audio files in realtime, you can first download the files to your local harddisk (e.g. using lynx (1)) and then play them from there. If authentication is needed to access the file it can be specified with the .B "-u user:pass".

INTERRUPT

    You can abort mpg123 at any time by pressing Ctrl-C. If you are playing multiple files, this will stop the current file and begin playing the next one. If you want to abort playing immediately instead of skipping to the next file, press Ctrl-C twice in short succession (within about one second). Note that the result of pressing Ctrl-C might not be audible immediately, due to audio data buffering in the audio device. This delay is system dependent, but it is usually not more than one or two seconds.

SEE ALSO

NOTES

    MPEG audio decoding requires a good deal of CPU performance, especially layer-3. To decode it in realtime, you should have at least a Pentium, Alpha, SuperSparc or equivalent processor. You can also use the -singlemix option to decode mono only, which reduces the CPU load somewhat for layer-3 streams. See also the -2 and -4 options. If everything else fails, use the -s option to decode to standard output, direct it into a file and then use an appropriate utility to play that file. You might have to use a tool such as sox (1) to convert the output to an audio format suitable for your audio player. Also note that mpg123 always generates 16 bit stereo data (if one of the -single * options is used, two identical stereo channels are generated). If your hardware requires some other format, for example 8 bit mono, you also have to use a converter such as sox (1). If your system is generally fast enough to decode in realtime, but there are sometimes periods of heavy system load (such as cronjobs, users logging in remotely, starting of ``big'' programs etc.) causing the audio output to be interrupted, then you should use the -b option to use a buffer of at least 1000 Kbytes.

BUGS

    Known bugs and limitations:

      MPEG-2, Layer 1 and 2 not tested. May not work. (Layer 3 should work.) Free format streams are not supported. Layer-1 support is not heavily tested. No CRC error checking is performed. There is currently no support for audio hardware on DEC Digital Unix, Ultrix and IBM AIX, therefore the -s option has to be used on those platforms.

AUTHORS

    Main author:

      Michael Hipp <Michael.Hipp@student.uni-tuebingen.de>

    Uses code (or at least ideas) from:

      MPEG Software Simulation Group (Base package) Philipp Knirsch <phil@mpik-tueb.mpg.de> (DCT36/manual unroll) Tobias Bading <bading@cs.tu-berlin.de> (subband synthesis) Jeff Tsay <ctsay@pasteur.eecs.berkeley.edu> (DCT36) Thomas Woerner (SGI Audio) Damien Clermonte <clermond@esiee.fr> (HP-UX audio fixes) Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de> Internet references: http://www.sfs.nphil.uni-tuebingen.de/~hipp/mpg123.html http://www.heim3.tu-clausthal.de/~olli/mpg123/ (includes information about the mpg123 mailing list) The latest version is also available from here: ftp.tu-clausthal.de:/pub/unix/audio/mpg123 http://ftp.tu-clausthal.de/pub/unix/audio/mpg123

Previous   Next   Man IndexSections: 0 1 2 3 4 5 6 7 8 N