mpg123-1.32.1
This commit is contained in:
@@ -22,9 +22,9 @@ if NEED_LIB
|
|||||||
include_HEADERS =
|
include_HEADERS =
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if NEED_MAN
|
# Attempts to wrap that in NEED_MAN failed. So just live with the
|
||||||
|
# empty directory.
|
||||||
dist_man_MANS =
|
dist_man_MANS =
|
||||||
endif
|
|
||||||
CLEANFILES =
|
CLEANFILES =
|
||||||
TESTS =
|
TESTS =
|
||||||
XFAIL_TESTS =
|
XFAIL_TESTS =
|
||||||
@@ -66,10 +66,8 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_PROGRAMS
|
if BUILD_PROGRAMS
|
||||||
if NEED_MAN
|
|
||||||
dist_man_MANS += man1/mpg123.1 man1/out123.1
|
dist_man_MANS += man1/mpg123.1 man1/out123.1
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
# mpg123.spec is autogenerated but needs to be present in tarball!
|
# mpg123.spec is autogenerated but needs to be present in tarball!
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
|
|||||||
@@ -456,7 +456,7 @@ check_PROGRAMS = $(am__EXEEXT_5)
|
|||||||
@BUILD_LIBMPG123_TRUE@@NEED_MAINLIB_TRUE@am__append_127 = libmpg123.pc
|
@BUILD_LIBMPG123_TRUE@@NEED_MAINLIB_TRUE@am__append_127 = libmpg123.pc
|
||||||
@BUILD_LIBOUT123_TRUE@@NEED_MAINLIB_TRUE@am__append_128 = libout123.pc
|
@BUILD_LIBOUT123_TRUE@@NEED_MAINLIB_TRUE@am__append_128 = libout123.pc
|
||||||
@BUILD_LIBSYN123_TRUE@@NEED_MAINLIB_TRUE@am__append_129 = libsyn123.pc
|
@BUILD_LIBSYN123_TRUE@@NEED_MAINLIB_TRUE@am__append_129 = libsyn123.pc
|
||||||
@BUILD_PROGRAMS_TRUE@@NEED_MAN_TRUE@am__append_130 = man1/mpg123.1 man1/out123.1
|
@BUILD_PROGRAMS_TRUE@am__append_130 = man1/mpg123.1 man1/out123.1
|
||||||
subdir = .
|
subdir = .
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
||||||
@@ -2194,7 +2194,9 @@ nodist_include_HEADERS =
|
|||||||
@NEED_LIB_TRUE@@NEED_MAINLIB_TRUE@ $(am__append_42) \
|
@NEED_LIB_TRUE@@NEED_MAINLIB_TRUE@ $(am__append_42) \
|
||||||
@NEED_LIB_TRUE@@NEED_MAINLIB_TRUE@ $(am__append_43) \
|
@NEED_LIB_TRUE@@NEED_MAINLIB_TRUE@ $(am__append_43) \
|
||||||
@NEED_LIB_TRUE@@NEED_MAINLIB_TRUE@ $(am__append_109)
|
@NEED_LIB_TRUE@@NEED_MAINLIB_TRUE@ $(am__append_109)
|
||||||
@NEED_MAN_TRUE@dist_man_MANS = $(am__append_130)
|
# Attempts to wrap that in NEED_MAN failed. So just live with the
|
||||||
|
# empty directory.
|
||||||
|
dist_man_MANS = $(am__append_130)
|
||||||
CLEANFILES = src/*.a
|
CLEANFILES = src/*.a
|
||||||
XFAIL_TESTS = $(am__append_3)
|
XFAIL_TESTS = $(am__append_3)
|
||||||
# That can be trimmed down later when adapting the sources to
|
# That can be trimmed down later when adapting the sources to
|
||||||
|
|||||||
9
NEWS
9
NEWS
@@ -1,3 +1,12 @@
|
|||||||
|
1.32.1
|
||||||
|
------
|
||||||
|
- Include man pages again in tarball and install. We cannot avoid the empty
|
||||||
|
man directory when disabling programs with autoconf.
|
||||||
|
- Fix signal handler prototype, avoiding some justified warnings.
|
||||||
|
- ports/cmake:
|
||||||
|
-- Include CheckTypeSize, which seems to be needed sometimes (bug 357).
|
||||||
|
-- Avoid O_LARGEFILE redefinition, logic closer to autoconf.
|
||||||
|
|
||||||
1.32.0
|
1.32.0
|
||||||
------
|
------
|
||||||
- build:
|
- build:
|
||||||
|
|||||||
34
configure
vendored
34
configure
vendored
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.71 for mpg123 1.32.0.
|
# Generated by GNU Autoconf 2.71 for mpg123 1.32.1.
|
||||||
#
|
#
|
||||||
# Report bugs to <maintainer@mpg123.org>.
|
# Report bugs to <maintainer@mpg123.org>.
|
||||||
#
|
#
|
||||||
@@ -621,8 +621,8 @@ MAKEFLAGS=
|
|||||||
# Identity of this package.
|
# Identity of this package.
|
||||||
PACKAGE_NAME='mpg123'
|
PACKAGE_NAME='mpg123'
|
||||||
PACKAGE_TARNAME='mpg123'
|
PACKAGE_TARNAME='mpg123'
|
||||||
PACKAGE_VERSION='1.32.0'
|
PACKAGE_VERSION='1.32.1'
|
||||||
PACKAGE_STRING='mpg123 1.32.0'
|
PACKAGE_STRING='mpg123 1.32.1'
|
||||||
PACKAGE_BUGREPORT='maintainer@mpg123.org'
|
PACKAGE_BUGREPORT='maintainer@mpg123.org'
|
||||||
PACKAGE_URL=''
|
PACKAGE_URL=''
|
||||||
|
|
||||||
@@ -668,8 +668,6 @@ LIBOUT123_LIBS
|
|||||||
LIBSYN123_LIBS
|
LIBSYN123_LIBS
|
||||||
LIBMPG123_LIBS
|
LIBMPG123_LIBS
|
||||||
PROG_LIBS
|
PROG_LIBS
|
||||||
NEED_MAN_FALSE
|
|
||||||
NEED_MAN_TRUE
|
|
||||||
NEED_MAINLIB_FALSE
|
NEED_MAINLIB_FALSE
|
||||||
NEED_MAINLIB_TRUE
|
NEED_MAINLIB_TRUE
|
||||||
NEED_LIB_FALSE
|
NEED_LIB_FALSE
|
||||||
@@ -1728,7 +1726,7 @@ if test "$ac_init_help" = "long"; then
|
|||||||
# Omit some internal or obsolete options to make the list less imposing.
|
# Omit some internal or obsolete options to make the list less imposing.
|
||||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||||
cat <<_ACEOF
|
cat <<_ACEOF
|
||||||
\`configure' configures mpg123 1.32.0 to adapt to many kinds of systems.
|
\`configure' configures mpg123 1.32.1 to adapt to many kinds of systems.
|
||||||
|
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
@@ -1799,7 +1797,7 @@ fi
|
|||||||
|
|
||||||
if test -n "$ac_init_help"; then
|
if test -n "$ac_init_help"; then
|
||||||
case $ac_init_help in
|
case $ac_init_help in
|
||||||
short | recursive ) echo "Configuration of mpg123 1.32.0:";;
|
short | recursive ) echo "Configuration of mpg123 1.32.1:";;
|
||||||
esac
|
esac
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
@@ -2076,7 +2074,7 @@ fi
|
|||||||
test -n "$ac_init_help" && exit $ac_status
|
test -n "$ac_init_help" && exit $ac_status
|
||||||
if $ac_init_version; then
|
if $ac_init_version; then
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
mpg123 configure 1.32.0
|
mpg123 configure 1.32.1
|
||||||
generated by GNU Autoconf 2.71
|
generated by GNU Autoconf 2.71
|
||||||
|
|
||||||
Copyright (C) 2021 Free Software Foundation, Inc.
|
Copyright (C) 2021 Free Software Foundation, Inc.
|
||||||
@@ -2621,7 +2619,7 @@ cat >config.log <<_ACEOF
|
|||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
It was created by mpg123 $as_me 1.32.0, which was
|
It was created by mpg123 $as_me 1.32.1, which was
|
||||||
generated by GNU Autoconf 2.71. Invocation command line was
|
generated by GNU Autoconf 2.71. Invocation command line was
|
||||||
|
|
||||||
$ $0$ac_configure_args_raw
|
$ $0$ac_configure_args_raw
|
||||||
@@ -3991,7 +3989,7 @@ fi
|
|||||||
|
|
||||||
# Define the identity of the package.
|
# Define the identity of the package.
|
||||||
PACKAGE='mpg123'
|
PACKAGE='mpg123'
|
||||||
VERSION='1.32.0'
|
VERSION='1.32.1'
|
||||||
|
|
||||||
|
|
||||||
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
|
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
|
||||||
@@ -21657,14 +21655,6 @@ else
|
|||||||
NEED_MAINLIB_FALSE=
|
NEED_MAINLIB_FALSE=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$build_programs"= = xyes ; then
|
|
||||||
NEED_MAN_TRUE=
|
|
||||||
NEED_MAN_FALSE='#'
|
|
||||||
else
|
|
||||||
NEED_MAN_TRUE='#'
|
|
||||||
NEED_MAN_FALSE=
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test "x$build_libmpg123" = xyes; then
|
if test "x$build_libmpg123" = xyes; then
|
||||||
@@ -22268,10 +22258,6 @@ if test -z "${NEED_MAINLIB_TRUE}" && test -z "${NEED_MAINLIB_FALSE}"; then
|
|||||||
as_fn_error $? "conditional \"NEED_MAINLIB\" was never defined.
|
as_fn_error $? "conditional \"NEED_MAINLIB\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test -z "${NEED_MAN_TRUE}" && test -z "${NEED_MAN_FALSE}"; then
|
|
||||||
as_fn_error $? "conditional \"NEED_MAN\" was never defined.
|
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
||||||
fi
|
|
||||||
|
|
||||||
: "${CONFIG_STATUS=./config.status}"
|
: "${CONFIG_STATUS=./config.status}"
|
||||||
ac_write_fail=0
|
ac_write_fail=0
|
||||||
@@ -22662,7 +22648,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||||||
# report actual input values of CONFIG_FILES etc. instead of their
|
# report actual input values of CONFIG_FILES etc. instead of their
|
||||||
# values after options handling.
|
# values after options handling.
|
||||||
ac_log="
|
ac_log="
|
||||||
This file was extended by mpg123 $as_me 1.32.0, which was
|
This file was extended by mpg123 $as_me 1.32.1, which was
|
||||||
generated by GNU Autoconf 2.71. Invocation command line was
|
generated by GNU Autoconf 2.71. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@@ -22730,7 +22716,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
|
|||||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||||
ac_cs_config='$ac_cs_config_escaped'
|
ac_cs_config='$ac_cs_config_escaped'
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
mpg123 config.status 1.32.0
|
mpg123 config.status 1.32.1
|
||||||
configured by $0, generated by GNU Autoconf 2.71,
|
configured by $0, generated by GNU Autoconf 2.71,
|
||||||
with options \\"\$ac_cs_config\\"
|
with options \\"\$ac_cs_config\\"
|
||||||
|
|
||||||
|
|||||||
@@ -2884,7 +2884,6 @@ AM_CONDITIONAL([NEED_FMT123], [ test "x$build_libmpg123" = xyes || test "x$build
|
|||||||
# If we install libraries, prompting pkgconfig and include directories.
|
# If we install libraries, prompting pkgconfig and include directories.
|
||||||
AM_CONDITIONAL([NEED_LIB], [ test "x$build_libmpg123" = xyes || test "x$build_libout123" = xyes || test "x$build_libout123_modules" = xyes || test "x$build_libsyn123" = xyes ])
|
AM_CONDITIONAL([NEED_LIB], [ test "x$build_libmpg123" = xyes || test "x$build_libout123" = xyes || test "x$build_libout123_modules" = xyes || test "x$build_libsyn123" = xyes ])
|
||||||
AM_CONDITIONAL([NEED_MAINLIB], [ test "x$build_libmpg123" = xyes || test "x$build_libout123" = xyes || test "x$build_libsyn123" = xyes ])
|
AM_CONDITIONAL([NEED_MAINLIB], [ test "x$build_libmpg123" = xyes || test "x$build_libout123" = xyes || test "x$build_libsyn123" = xyes ])
|
||||||
AM_CONDITIONAL([NEED_MAN], [ test "x$build_programs"= = xyes ])
|
|
||||||
|
|
||||||
|
|
||||||
if test "x$build_libmpg123" = xyes; then
|
if test "x$build_libmpg123" = xyes; then
|
||||||
|
|||||||
647
man1/mpg123.1
Normal file
647
man1/mpg123.1
Normal file
@@ -0,0 +1,647 @@
|
|||||||
|
.TH mpg123 1 "11 Jul 2022"
|
||||||
|
.SH NAME
|
||||||
|
mpg123 \- play audio MPEG 1.0/2.0/2.5 stream (layers 1, 2 and 3)
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B mpg123
|
||||||
|
[
|
||||||
|
.I options
|
||||||
|
]
|
||||||
|
.IR file-or-URL ...
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B mpg123
|
||||||
|
reads one or more
|
||||||
|
.IR file\^ s
|
||||||
|
(or standard input if ``\-'' is specified) or
|
||||||
|
.IR URL\^ s
|
||||||
|
and plays them on the audio device (default) or
|
||||||
|
outputs them to stdout.
|
||||||
|
.IR file\^ / URL
|
||||||
|
is assumed to be an MPEG audio bit stream.
|
||||||
|
.SH OPERANDS
|
||||||
|
The following operands are supported:
|
||||||
|
.TP 8
|
||||||
|
.IR file (s)
|
||||||
|
The path name(s) of one or more input files. They must be
|
||||||
|
valid MPEG-1.0/2.0/2.5 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://'' or ``https://'' is recognized as
|
||||||
|
.I URL
|
||||||
|
(see next section), while a leading ``file://'' is being stripped for
|
||||||
|
normal local file access, for consistency (since mpg123 1.30.1).
|
||||||
|
.SH OPTIONS
|
||||||
|
.B mpg123
|
||||||
|
options may be either the traditional POSIX one letter options,
|
||||||
|
or the GNU style long options. POSIX style options start with a
|
||||||
|
single ``\-'', while GNU long options start with ``\-\^\-''.
|
||||||
|
Option arguments (if needed) follow separated by whitespace (not ``='').
|
||||||
|
Note that some options can be absent from your installation when disabled in the build process.
|
||||||
|
.SH INPUT OPTIONS
|
||||||
|
.TP
|
||||||
|
\fB\-k \fInum\fR, \fB\-\^\-skip \fInum
|
||||||
|
Skip first
|
||||||
|
.I num
|
||||||
|
frames. By default the decoding starts at the first frame.
|
||||||
|
.TP
|
||||||
|
\fB\-n \fInum\fR, \fB\-\^\-frames \fInum
|
||||||
|
Decode only
|
||||||
|
.I num
|
||||||
|
frames. By default the complete stream is decoded.
|
||||||
|
.TP
|
||||||
|
.BR \-\-fuzzy
|
||||||
|
Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC).
|
||||||
|
Without that, seeks need a first scan through the file before they can jump at positions.
|
||||||
|
You can decide here: sample-accurate operation with gapless features or faster (fuzzy) seeking.
|
||||||
|
.TP
|
||||||
|
.BR \-y ", " \-\^\-no\-resync
|
||||||
|
Do NOT try to resync and continue decoding if an error occurs in
|
||||||
|
the input file. Normally,
|
||||||
|
.B mpg123
|
||||||
|
tries to keep the playback alive at all costs, including skipping invalid material and searching new header when something goes wrong.
|
||||||
|
With this switch you can make it bail out on data errors
|
||||||
|
(and perhaps spare your ears a bad time). Note that this switch has been renamed from \-\-resync.
|
||||||
|
The old name still works, but is not advertised or recommended to use (subject to removal in future).
|
||||||
|
.TP
|
||||||
|
.BR \-F ", " \-\^\-no\-frankenstein
|
||||||
|
Disable support for Frankenstein streams. Normally, mpg123 stays true to the concept of MPEG audio being
|
||||||
|
just a concatenation of MPEG frames. It will continue decoding even if the type of MPEG frames varies
|
||||||
|
wildly. With this switch, it will only decode the input as long as it does not change its character
|
||||||
|
(from layer I to layer III, changing sampling rate, from mono to stereo), silently assuming end of
|
||||||
|
stream on such occasion. The switch also stops decoding of compatible MPEG frames if there was an
|
||||||
|
Info frame (Xing header, Lame tag) that contained a length of the track in MPEG frames.
|
||||||
|
This comes a bit closer to the notion of a MP3 file as a defined collection
|
||||||
|
of MPEG frames that belong together, but gets rid of the flexibility that can be fun at times but
|
||||||
|
mostly is hell for the programmer of the parser and decoder ...
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-network \fI backend
|
||||||
|
Select network backend (helper program), choices are usually auto, wget, and curl.
|
||||||
|
Auto means to try the first available backend.
|
||||||
|
.TP
|
||||||
|
\fB\-\^-resync\-limit \fIbytes\fR
|
||||||
|
Set number of bytes to search for valid MPEG data once lost in stream; <0 means search whole stream.
|
||||||
|
If you know there are huge chunks of invalid data in your files... here is your hammer.
|
||||||
|
Note: Only since version 1.14 this also increases the amount of junk skipped on beginning.
|
||||||
|
.TP
|
||||||
|
\fB\-u \fIauth\fR, \fB\-\^\-auth \fIauth
|
||||||
|
HTTP authentication to use when receiving files via HTTP.
|
||||||
|
The format used is user:password. Mpg123 will clear this quickly, but it may still appear
|
||||||
|
in sight of other users or even just in your shell history. You may seek alternative ways
|
||||||
|
to specify that to your network backend.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-auth-file \fIauthfile
|
||||||
|
Provide the authentication info via given file instead of command line directly.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-ignore\-mime
|
||||||
|
Ignore MIME types given by HTTP server. If you know better and want mpg123
|
||||||
|
to decode something the server thinks is image/png, then just do it.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-no\-icy\-meta
|
||||||
|
Do not accept ICY meta data.
|
||||||
|
.TP
|
||||||
|
\fB\-\^-streamdump \fIfilename\fR
|
||||||
|
Dump a copy of the input data (as read by libmpg123) to the given file.
|
||||||
|
This enables you to store a web stream to disk while playing, or just create
|
||||||
|
a concatenation of the local files you play for ... why not?
|
||||||
|
.TP
|
||||||
|
\fB\-\^-icy\-interval \fIbytes\fR
|
||||||
|
This setting enables you to play a stream dump containing ICY metadata at the given
|
||||||
|
interval in bytes (the value of the icy-metaint HTTP response header). Without it,
|
||||||
|
such a stream will play, but will cause regular decoding glitches with resync.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-no\-seekbuffer
|
||||||
|
Disable the default micro-buffering of non-seekable streams that gives the
|
||||||
|
parser a safer footing.
|
||||||
|
.TP
|
||||||
|
\fB\-@ \fIfile\fR, \fB\-\^\-list \fIfile
|
||||||
|
Read filenames and/or URLs of MPEG audio streams from the specified
|
||||||
|
.I file
|
||||||
|
in addition to the ones specified on the command line (if any).
|
||||||
|
Note that
|
||||||
|
.I file
|
||||||
|
can be either an ordinary file, a dash ``\-'' to indicate that
|
||||||
|
a list of filenames/URLs is to be read from the standard input,
|
||||||
|
or an URL pointing to a an appropriate list file. Note: only
|
||||||
|
one
|
||||||
|
.B \-@
|
||||||
|
option can be used (if more than one is specified, only the
|
||||||
|
last one will be recognized). Furthermore, for HTTP resources, the
|
||||||
|
MIME type information will be used to re-open an actual MPEG stream as
|
||||||
|
such instead of treating it as playlist file. So you could just always
|
||||||
|
use
|
||||||
|
.B \-@
|
||||||
|
for web resources without bothering if it is a playlist or already the resolved
|
||||||
|
stream address.
|
||||||
|
.TP
|
||||||
|
\fB\-l \fIn\fR, \fB\-\^\-listentry \fIn
|
||||||
|
Of the playlist, play specified entry only.
|
||||||
|
.I n
|
||||||
|
is the number of entry starting at 1. A value of 0 is the default and means playing the whole list, a negative value means showing of the list of titles with their numbers...
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-continue
|
||||||
|
Enable playlist continuation mode. This changes frame skipping to apply only to the first track and also continues to play following tracks in playlist after the selected one. Also, the option to play a number of frames only applies to the whole playlist. Basically, this tries to treat the playlist more like one big stream (like, an audio book).
|
||||||
|
The current track number in list (1-based) and frame number (0-based) are printed at exit (useful if you interrupted playback and want to continue later).
|
||||||
|
Note that the continuation info is printed to standard output unless the switch for piping audio data to standard out is used. Also, it really makes sense to work with actual playlist files instead of lists of file names as arguments, to keep track positions consistent.
|
||||||
|
.TP
|
||||||
|
\fB\-\-loop \fItimes\fR
|
||||||
|
for looping track(s) a certain number of times, < 0 means infinite loop (not with \-\-random!).
|
||||||
|
.TP
|
||||||
|
.BR \-\-keep\-open
|
||||||
|
For remote control mode: Keep loaded file open after reaching end.
|
||||||
|
.TP
|
||||||
|
\fB\-\-timeout \fIseconds\fR
|
||||||
|
Timeout in (integer) seconds before declaring a stream dead (if <= 0, wait forever).
|
||||||
|
.TP
|
||||||
|
.BR \-z ", " \-\^\-shuffle
|
||||||
|
Shuffle play. Randomly shuffles the order of files specified on the command
|
||||||
|
line, or in the list file.
|
||||||
|
.TP
|
||||||
|
.BR \-Z ", " \-\-random
|
||||||
|
Continuous random play. Keeps picking a random file from the command line
|
||||||
|
or the play list. Unlike shuffle play above, random play never ends, and
|
||||||
|
plays individual songs more than once.
|
||||||
|
.TP
|
||||||
|
\fB\-i, \-\^-index
|
||||||
|
Index / scan through the track before playback.
|
||||||
|
This fills the index table for seeking (if enabled in libmpg123) and may make the operating system cache the file contents for smoother operating on playback.
|
||||||
|
.TP
|
||||||
|
\fB\-\-index\-size \fIsize\fR
|
||||||
|
Set the number of entries in the seek frame index table.
|
||||||
|
.TP
|
||||||
|
\fB\-\-preframes \fInum\fR
|
||||||
|
Set the number of frames to be read as lead-in before a seeked-to position.
|
||||||
|
This serves to fill the layer 3 bit reservoir, which is needed to faithfully reproduce a certain sample at a certain position.
|
||||||
|
Note that for layer 3, a minimum of 1 is enforced (because of frame overlap), and for layer 1 and 2, this is limited to 2 (no bit reservoir in that case, but engine spin-up anyway).
|
||||||
|
|
||||||
|
.SH OUTPUT and PROCESSING OPTIONS
|
||||||
|
.TP
|
||||||
|
\fB\-o \fImodule\fR, \fB\-\^\-output \fImodule\fR
|
||||||
|
Select audio output module. You can provide a comma-separated list to use the first one that works.
|
||||||
|
Also see \fB\-a\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-list\-modules
|
||||||
|
List the available modules.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-list\-devices
|
||||||
|
List the available output devices for given output module. If there is no functionality
|
||||||
|
to list devices in the chosen module, an error will be printed and mpg123 will exit with
|
||||||
|
a non-zero code.
|
||||||
|
.TP
|
||||||
|
\fB\-a \fIdev\fR, \fB\-\^\-audiodevice \fIdev
|
||||||
|
Specify the audio device to use. The default as well as the possible values
|
||||||
|
depend on the active output. For the JACK output, a comma-separated list
|
||||||
|
of ports to connect to (for each channel) can be specified.
|
||||||
|
.TP
|
||||||
|
.BR \-s ", " \-\^\-stdout
|
||||||
|
The decoded audio samples are written to standard output,
|
||||||
|
instead of playing them through the audio device. This
|
||||||
|
option must be used if your audio hardware is not supported
|
||||||
|
by
|
||||||
|
.BR mpg123 .
|
||||||
|
The output format per default is raw (headerless) linear PCM audio data,
|
||||||
|
16 bit, stereo, host byte order (you can force mono or 8bit).
|
||||||
|
.TP
|
||||||
|
\fB\-O \fIfile\fR, \fB\-\^\-outfile
|
||||||
|
Write raw output into a file (instead of simply redirecting standard output to a file with the shell).
|
||||||
|
.TP
|
||||||
|
\fB\-w \fIfile\fR, \fB\-\^\-wav
|
||||||
|
Write output as WAV file. This will cause the MPEG stream to be decoded
|
||||||
|
and saved as file
|
||||||
|
.I file
|
||||||
|
, or standard output if
|
||||||
|
.I -
|
||||||
|
is used as file name. You can also use
|
||||||
|
.I --au
|
||||||
|
and
|
||||||
|
.I --cdr
|
||||||
|
for AU and CDR format, respectively. Note that WAV/AU writing to non-seekable files, or redirected stdout, needs some thought. Since 1.16.0, the logic changed to writing the header with the first actual data. This avoids spurious WAV headers in a pipe, for example. The result of decoding nothing to WAV/AU is a file consisting just of the header when it is seekable and really nothing when not (not even a header). Correctly writing data with prophetic headers to stdout is no easy business.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-au \fIfile
|
||||||
|
Does not play the MPEG file but writes it to
|
||||||
|
.I file
|
||||||
|
in SUN audio format. If \- is used as the filename, the AU file is
|
||||||
|
written to stdout. See paragraph about WAV writing for header fun with non-seekable streams.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-cdr \fIfile
|
||||||
|
Does not play the MPEG file but writes it to
|
||||||
|
.I file
|
||||||
|
as a CDR file. If \- is used as the filename, the CDR file is written
|
||||||
|
to stdout.
|
||||||
|
.TP
|
||||||
|
.BR \-\-reopen
|
||||||
|
Forces reopen of the audiodevice after ever song
|
||||||
|
.TP
|
||||||
|
.BR \-\-cpu\ \fIdecoder\-type
|
||||||
|
Selects a certain decoder (optimized for specific CPU), for example i586 or MMX.
|
||||||
|
The list of available decoders can vary; depending on the build and what your CPU supports.
|
||||||
|
This option is only available when the build actually includes several optimized decoders.
|
||||||
|
.TP
|
||||||
|
.BR \-\-test\-cpu
|
||||||
|
Tests your CPU and prints a list of possible choices for \-\-cpu.
|
||||||
|
.TP
|
||||||
|
.BR \-\-list\-cpu
|
||||||
|
Lists all available decoder choices, regardless of support by your CPU.
|
||||||
|
.TP
|
||||||
|
\fB\-g \fIgain\fR, \fB\-\^\-gain \fIgain
|
||||||
|
[DEPRECATED] Set audio hardware output gain (default: don't change). The unit of the gain value is hardware and output module dependent.
|
||||||
|
(This parameter is only provided for backwards compatibility and may be removed in the future without prior notice. Use the audio player for playing and a mixer app for mixing, UNIX style!)
|
||||||
|
.TP
|
||||||
|
\fB\-f \fIfactor\fR, \fB\-\^\-scale \fIfactor
|
||||||
|
Change scale factor (default: 32768).
|
||||||
|
.TP
|
||||||
|
.BR \-\-rva-mix,\ \-\-rva-radio
|
||||||
|
Enable RVA (relative volume adjustment) using the values stored for ReplayGain radio mode / mix mode with all tracks roughly equal loudness.
|
||||||
|
The first valid information found in ID3V2 Tags (Comment named RVA or the RVA2 frame) or ReplayGain header in Lame/Info Tag is used.
|
||||||
|
.TP
|
||||||
|
.BR \-\-rva-album,\ \-\-rva-audiophile
|
||||||
|
Enable RVA (relative volume adjustment) using the values stored for ReplayGain audiophile mode / album mode with usually the effect of adjusting album loudness but keeping relative loudness inside album.
|
||||||
|
The first valid information found in ID3V2 Tags (Comment named RVA_ALBUM or the RVA2 frame) or ReplayGain header in Lame/Info Tag is used.
|
||||||
|
.TP
|
||||||
|
.BR \-0 ", " \-\^\-single0 "; " \-1 ", " \-\^\-single1
|
||||||
|
Decode only channel 0 (left) or channel 1 (right),
|
||||||
|
respectively. These options are available for
|
||||||
|
stereo MPEG streams only.
|
||||||
|
.TP
|
||||||
|
.BR \-m ", " \-\^\-mono ", " \-\^\-mix ", " \-\^\-singlemix
|
||||||
|
Mix both channels / decode mono. It takes less
|
||||||
|
CPU time than full stereo decoding.
|
||||||
|
.TP
|
||||||
|
.BR \-\-stereo
|
||||||
|
Force stereo output
|
||||||
|
.TP
|
||||||
|
\fB\-r \fIrate\fR, \fB\-\^\-rate \fIrate
|
||||||
|
Set sample rate (default: automatic). You may want to
|
||||||
|
change this if you need a constant bitrate independent of
|
||||||
|
the mpeg stream rate. mpg123 automagically converts the
|
||||||
|
rate. You should then combine this with \-\-stereo or \-\-mono.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-resample \fImethod
|
||||||
|
Set resampling method to employ if forcing an output rate. Choices (case-insensitive) are NtoM,
|
||||||
|
dirty, and fine. The fine resampler is the default. It employs libsyn123's low-latency fairly
|
||||||
|
efficient resampler to postprocess the output from libmpg123 instead of the fast but very crude
|
||||||
|
NtoM decoder (drop sample method) that mpg123 offers since decades. If you are really low on
|
||||||
|
CPU time, choose NtoM, as the resampler usually needs more time than the MPEG decoder itself.
|
||||||
|
The mpg123 program is smart enough to combine the 2to1 or 4to1 downsampling modes with the
|
||||||
|
postprocessing for extreme downsampling.
|
||||||
|
.TP
|
||||||
|
.BR \-2 ", " \-\^\-2to1 "; " \-4 ", " \-\^\-4to1
|
||||||
|
Performs a downsampling of ratio 2:1 (22 kHz from 44.1 kHz) or 4:1 (11 kHz)
|
||||||
|
on the output stream, respectively. Saves some CPU cycles, but of course throws away
|
||||||
|
the high frequencies, as the decoder does not bother producing them.
|
||||||
|
.TP
|
||||||
|
.BR \-\-pitch\ \fIvalue
|
||||||
|
Set a pitch change (speedup/down, 0 is neutral; 0.05 is 5% speedup). When not enforcing an
|
||||||
|
output rate, this changes the output sampling rate, so it only works in the range your audio
|
||||||
|
system/hardware supports. When you combine this with a fixed output rate, it modifies a
|
||||||
|
software resampling ratio instead.
|
||||||
|
.TP
|
||||||
|
.BR \-\-8bit
|
||||||
|
Forces 8bit output
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-float
|
||||||
|
Forces f32 encoding
|
||||||
|
.TP
|
||||||
|
\fB\-e \fIenc\fR, \fB\-\^\-encoding \fIenc
|
||||||
|
Choose output sample encoding. Possible values look like f32 (32-bit floating point), s32 (32-bit signed integer), u32 (32-bit unsigned integer) and the variants with different numbers of bits (s24, u24, s16, u16, s8, u8) and also special variants like ulaw and alaw 8-bit.
|
||||||
|
See the output of mpg123's longhelp for actually available encodings.
|
||||||
|
.TP
|
||||||
|
\fB\-d \fIn\fR, \fB\-\^\-doublespeed \fIn
|
||||||
|
Only play every
|
||||||
|
.IR n 'th
|
||||||
|
frame. This will cause the MPEG stream
|
||||||
|
to be played
|
||||||
|
.I n
|
||||||
|
times faster, which can be used for special
|
||||||
|
effects. Can also be combined with the
|
||||||
|
.B \-\^\-halfspeed
|
||||||
|
option to play 3 out of 4 frames etc. Don't expect great
|
||||||
|
sound quality when using this option.
|
||||||
|
.TP
|
||||||
|
\fB\-h \fIn\fR, \fB\-\^\-halfspeed \fIn
|
||||||
|
Play each frame
|
||||||
|
.I n
|
||||||
|
times. This will cause the MPEG stream
|
||||||
|
to be played at
|
||||||
|
.IR 1 / n 'th
|
||||||
|
speed (n times slower), which can be
|
||||||
|
used for special effects. Can also be combined with the
|
||||||
|
.B \-\^\-doublespeed
|
||||||
|
option to double every third frame or things like that.
|
||||||
|
Don't expect great sound quality when using this option.
|
||||||
|
.TP
|
||||||
|
\fB\-E \fIfile\fR, \fB\-\^\-equalizer
|
||||||
|
Enables equalization, taken from
|
||||||
|
.IR file .
|
||||||
|
The file needs to contain 32 lines of data, additional comment lines may
|
||||||
|
be prefixed with
|
||||||
|
.IR # .
|
||||||
|
Each data line consists of two floating-point entries, separated by
|
||||||
|
whitespace. They specify the multipliers for left and right channel of
|
||||||
|
a certain frequency band, respectively. The first line corresponds to the
|
||||||
|
lowest, the 32nd to the highest frequency band.
|
||||||
|
Note that you can control the equalizer interactively with the generic control interface.
|
||||||
|
Also note that these are the 32 bands of the MPEG codec, not spaced like you
|
||||||
|
would see for a usual graphic equalizer. The upside is that there is zero computational
|
||||||
|
cost in addition to decoding. The downside is that you roughly have bass in band 0,
|
||||||
|
(upper) mids in band 1, treble in all others.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-gapless
|
||||||
|
Enable code that cuts (junk) samples at beginning and end of tracks, enabling gapless transitions between MPEG files when encoder padding and codec delays would prevent it.
|
||||||
|
This is enabled per default beginning with mpg123 version 1.0.0 .
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-no\-gapless
|
||||||
|
Disable the gapless code. That gives you MP3 decodings that include encoder delay and padding plus mpg123's decoder delay.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-no\-infoframe
|
||||||
|
Do not parse the Xing/Lame/VBR/Info frame, decode it instead just like a stupid old MP3 hardware player.
|
||||||
|
This implies disabling of gapless playback as the necessary information is in said metadata frame.
|
||||||
|
.TP
|
||||||
|
\fB\-D \fIn\fR, \fB\-\-delay \fIn
|
||||||
|
Insert a delay of \fIn\fR seconds before each track.
|
||||||
|
.TP
|
||||||
|
.BR "\-o h" ", " \-\^\-headphones
|
||||||
|
Direct audio output to the headphone connector (some hardware only; AIX, HP, SUN).
|
||||||
|
.TP
|
||||||
|
.BR "\-o s" ", " \-\^\-speaker
|
||||||
|
Direct audio output to the speaker (some hardware only; AIX, HP, SUN).
|
||||||
|
.TP
|
||||||
|
.BR "\-o l" ", " \-\^\-lineout
|
||||||
|
Direct audio output to the line-out connector (some hardware only; AIX, HP, SUN).
|
||||||
|
.TP
|
||||||
|
\fB\-b \fIsize\fR, \fB\-\^\-buffer \fIsize
|
||||||
|
Use an audio output buffer of
|
||||||
|
.I size
|
||||||
|
Kbytes. This is useful to bypass short periods of heavy
|
||||||
|
system activity, which would normally cause the audio output
|
||||||
|
to be interrupted.
|
||||||
|
You should specify a buffer size of at least 1024
|
||||||
|
(i.e. 1 Mb, which equals about 6 seconds of audio data) or more;
|
||||||
|
less than about 300 does not make much sense. The default is 0,
|
||||||
|
which turns buffering off.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-preload \fIfraction
|
||||||
|
Wait for the buffer to be filled to
|
||||||
|
.I fraction
|
||||||
|
before starting playback (fraction between 0 and 1). You can tune this prebuffering to either get faster sound to your ears or safer uninterrupted web radio.
|
||||||
|
Default is 0.2 (wait for 20 % of buffer to be full, changed from 1 in version 1.23).
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-devbuffer \fIseconds
|
||||||
|
Set device buffer in seconds; <= 0 means default value. This is the small buffer between the
|
||||||
|
application and the audio backend, possibly directly related to hardware buffers.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-smooth
|
||||||
|
Keep buffer over track boundaries -- meaning, do not empty the buffer between tracks for possibly some added smoothness.
|
||||||
|
|
||||||
|
.SH MISC OPTIONS
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BR \-t ", " \-\^\-test
|
||||||
|
Test mode. The audio stream is decoded, but no output occurs.
|
||||||
|
.TP
|
||||||
|
.BR \-c ", " \-\^\-check
|
||||||
|
Check for filter range violations (clipping), and report them for each frame
|
||||||
|
if any occur.
|
||||||
|
.TP
|
||||||
|
.BR \-v ", " \-\^\-verbose
|
||||||
|
Increase the verbosity level. For example, displays the frame
|
||||||
|
numbers during decoding.
|
||||||
|
.TP
|
||||||
|
.BR \-q ", " \-\^\-quiet
|
||||||
|
Quiet. Suppress diagnostic messages.
|
||||||
|
.TP
|
||||||
|
.BR \-C ", " \-\^\-control
|
||||||
|
Enable terminal control keys. This is enabled automatically if a terminal is detected.
|
||||||
|
By default use 's' or the space bar to stop/restart (pause, unpause) playback, 'f' to jump forward to the next song, 'b' to jump back to the
|
||||||
|
beginning of the song, ',' to rewind, '.' to fast forward, and 'q' to quit.
|
||||||
|
Type 'h' for a full list of available controls. The A-B loop feature with key 'o' changes the preset loop interval to the interval
|
||||||
|
between two presses of 'o', the third press (or 'p') ending the looped playback. The key 'p' will use the updated loop interval after that.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-no\-control
|
||||||
|
Disable terminal control even if terminal is detected.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-title
|
||||||
|
In an xterm, rxvt, screen, iris-ansi (compatible, TERM environment variable is examined), change the window's title to the name of song currently
|
||||||
|
playing.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-pauseloop \fIseconds
|
||||||
|
Set the length of the loop interval in terminal control fixed looping mode, away from the default of 0.5 seconds, as a floating
|
||||||
|
point number. This value can be overwritten at runtime using the A-B loop feature.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-name \fIname
|
||||||
|
Set the name of this instance, possibly used in various places. This sets the client name for JACK output.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-long\-tag
|
||||||
|
Display ID3 tag info always in long format with one line per item (artist, title, ...)
|
||||||
|
.TP
|
||||||
|
.BR \-\-utf8
|
||||||
|
Regardless of environment, print metadata in UTF-8 (otherwise, when not using UTF-8 locale, you'll get ASCII stripdown).
|
||||||
|
.TP
|
||||||
|
.BR \-R ", " \-\^\-remote
|
||||||
|
Activate generic control interface.
|
||||||
|
.B mpg123
|
||||||
|
will then read and execute commands from stdin. Basic usage is ``load <filename> '' to play some file and the obvious ``pause'', ``command.
|
||||||
|
``jump <frame>'' will jump/seek to a given point (MPEG frame number).
|
||||||
|
Issue ``help'' to get a full list of commands and syntax.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-remote\-err
|
||||||
|
Print responses for generic control mode to standard error, not standard out.
|
||||||
|
This is automatically triggered when using \fB-s\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-\-fifo \fIpath
|
||||||
|
Create a fifo / named pipe on the given path and use that for reading commands instead of standard input.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-aggressive
|
||||||
|
Tries to get higher priority
|
||||||
|
.TP
|
||||||
|
.BR \-T ", " \-\-realtime
|
||||||
|
Tries to gain realtime priority. This option usually requires root
|
||||||
|
privileges to have any effect.
|
||||||
|
.TP
|
||||||
|
.BR \-? ", " \-\^\-help
|
||||||
|
Shows short usage instructions.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-longhelp
|
||||||
|
Shows long usage instructions.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-version
|
||||||
|
Print the version string.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-libversion
|
||||||
|
Print version information on the mpg123 libraries being used (libmpg123, libout123, libsyn123).
|
||||||
|
.SH HTTP SUPPORT
|
||||||
|
In addition to reading MPEG audio streams from ordinary
|
||||||
|
files and from the standard input,
|
||||||
|
.B mpg123
|
||||||
|
supports retrieval of MPEG audio streams or playlists via the HTTP protocol,
|
||||||
|
which is used in the World Wide Web (WWW). Such files are
|
||||||
|
specified using a so-called URL, which starts with http:// or https://.
|
||||||
|
When a file with that prefix is encountered,
|
||||||
|
.B mpg123
|
||||||
|
since 1.30.0 will by default call an external helper program (either
|
||||||
|
.BR wget (1)
|
||||||
|
or
|
||||||
|
.BR curl (1),
|
||||||
|
see the
|
||||||
|
.B \-\^\-network
|
||||||
|
option)
|
||||||
|
to retrieve the resource. You can configure access via a proxy
|
||||||
|
server using the standard environment variables those programs support. The
|
||||||
|
.BR \-\^\-proxy
|
||||||
|
option that
|
||||||
|
.B mpg123
|
||||||
|
before 1.30.0 used for its internal network code is gone
|
||||||
|
in the default build now and will probably disappear for good with 1.31.1.
|
||||||
|
.P
|
||||||
|
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 \-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
|
||||||
|
.BR wget (1))
|
||||||
|
and then play them from there.
|
||||||
|
.P
|
||||||
|
Streams with embedded ICY metadata are supported, the interval being communicated via HTTP
|
||||||
|
headers or \fB\-\^\-icy-interval\fR.
|
||||||
|
.SH INTERRUPT
|
||||||
|
When in terminal control mode, you can quit via pressing the q key,
|
||||||
|
while any time you can abort
|
||||||
|
.B mpg123
|
||||||
|
by pressing Ctrl-C. If not in terminal control mode, this will
|
||||||
|
skip to the next file (if any). If you want to abort playing immediately
|
||||||
|
in that case, press Ctrl-C twice in short succession (within about one second).
|
||||||
|
.P
|
||||||
|
Note that the result of quitting
|
||||||
|
.B mpg123
|
||||||
|
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.
|
||||||
|
|
||||||
|
.SH PLAYBACK STATUS LINE
|
||||||
|
In verbose mode, mpg123 updates a line with various information centering around
|
||||||
|
the current playback position. On any decent terminal, the line also works
|
||||||
|
as a progress bar in the current file by reversing video for a fraction of the
|
||||||
|
line according to the current position. An example for a full line is this:
|
||||||
|
|
||||||
|
> 0291+0955 00:01.68+00:28.22 [00:05.30] mix 100=085 192 kb/s 576 B acc 18 clip p+0.014
|
||||||
|
|
||||||
|
The information consists of, in order:
|
||||||
|
.TP
|
||||||
|
.BR >
|
||||||
|
single-character playback state (``>'' for playing, ``='' for pausing/looping, ``_'' for stopped)
|
||||||
|
.TP
|
||||||
|
.BR 0291+0955
|
||||||
|
current frame offset and number of remaining frames after the plus sign
|
||||||
|
.TP
|
||||||
|
.BR 00:01.68+00:28.22
|
||||||
|
current position from and remaining time in human terms
|
||||||
|
(hours, minutes, seconds)
|
||||||
|
.TP
|
||||||
|
.BR [00:05.30]
|
||||||
|
fill of the output buffer in terms of playback time, if the buffer is enabled
|
||||||
|
.TP
|
||||||
|
.BR mix
|
||||||
|
selected RVA mode (possible values: mix, alb (album), and \-\^\-\^\- (neutral, off))
|
||||||
|
.TP
|
||||||
|
.BR 100=085
|
||||||
|
set volume and the RVA-modified effective volume after the equal sign
|
||||||
|
.TP
|
||||||
|
.BR 192\ kb/s
|
||||||
|
current bitrate
|
||||||
|
.TP
|
||||||
|
.BR 576\ B
|
||||||
|
size of current frame in bytes
|
||||||
|
.TP
|
||||||
|
.BR acc
|
||||||
|
if positions are accurate, possible values are ``acc'' for accurate positions or ``fuz'' for fuzzy
|
||||||
|
(with guessed byte offsets using mean frame size)
|
||||||
|
.TP
|
||||||
|
.BR 18\ clip
|
||||||
|
amount of clipped samples, non-zero only if decoder reports that
|
||||||
|
(generic does, some optimized ones not)
|
||||||
|
.TP
|
||||||
|
.BR p+0.014
|
||||||
|
pitch change (increased/decreased playback sampling rate on user request)
|
||||||
|
|
||||||
|
.SH NOTES
|
||||||
|
MPEG audio decoding requires a good deal of CPU performance,
|
||||||
|
especially layer-3. To decode it in realtime, you should
|
||||||
|
have at least an i486DX4, Pentium, Alpha, SuperSparc or equivalent
|
||||||
|
processor. You can also use the
|
||||||
|
.B -m
|
||||||
|
option to decode mono only, which reduces the CPU load
|
||||||
|
somewhat for layer-3 streams. See also the
|
||||||
|
.BR \-2 " and " \-4
|
||||||
|
options.
|
||||||
|
.P
|
||||||
|
If everything else fails, have mpg123 decode to a file
|
||||||
|
and then use an appropriate utility to play that file with less CPU load.
|
||||||
|
Most probably you can configure mpg123 to produce a format suitable
|
||||||
|
for your audio device (see above about encodings and sampling rates).
|
||||||
|
.P
|
||||||
|
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 \-b
|
||||||
|
option to use a buffer of reasonable size (at least 1000 Kbytes).
|
||||||
|
.SH EXIT CODE
|
||||||
|
.P
|
||||||
|
Up to version 1.25.x, mpg123 always returned exit code 0 also for
|
||||||
|
complete junk on the input side. Fatal errors were only considered
|
||||||
|
for output. With version 1.26.0, this changed to the behaviour
|
||||||
|
described below.
|
||||||
|
.P
|
||||||
|
When not using the remote control interface (which returns input
|
||||||
|
errors as text messages), the process exit code is zero (success)
|
||||||
|
only if all tracks in a playlist had at least one frame parsed,
|
||||||
|
even if it did not decode cleanly, or
|
||||||
|
are empty, MPEG-wise (perhaps only metadata, or really an empty file).
|
||||||
|
When you decode nothing, nothing is the result and that is fine. When
|
||||||
|
a track later aborts because of parser errors or breakdown of the
|
||||||
|
network communication, this is treated as end of a track, but does
|
||||||
|
not make the process as such fail. One really bad (or non-existing)
|
||||||
|
stream in the playlist results in a non-zero error code, consistent
|
||||||
|
with other UNIX tools.
|
||||||
|
.P
|
||||||
|
An error in audio output results in the process ending with a
|
||||||
|
non-zero exit code immediately, regardless of how much data has
|
||||||
|
been successfully played before. The forgiveness is only on the
|
||||||
|
input side.
|
||||||
|
.SH BUGS
|
||||||
|
.P
|
||||||
|
Mostly MPEG-1 layer 2 and 3 are tested in real life.
|
||||||
|
Please report any issues and provide test files to help fixing them.
|
||||||
|
.P
|
||||||
|
No CRC error checking is performed. But the decoder is built and tested
|
||||||
|
to behave nicely with damaged streams. Mostly, damaged frames will just be
|
||||||
|
silent.
|
||||||
|
.P
|
||||||
|
Some platforms lack audio hardware support; you may be able to use the
|
||||||
|
.B -s
|
||||||
|
switch to feed the decoded data to a program that can play it on your audio device.
|
||||||
|
.SH AUTHORS
|
||||||
|
.TP
|
||||||
|
Maintainer:
|
||||||
|
.br
|
||||||
|
Thomas Orgis <maintainer@mpg123.org>, <thomas@orgis.org>
|
||||||
|
.TP
|
||||||
|
Original Creator:
|
||||||
|
.br
|
||||||
|
Michael Hipp
|
||||||
|
.PP
|
||||||
|
Uses code or ideas from various people, see the AUTHORS file accompanying the source code.
|
||||||
|
.SH LICENSE
|
||||||
|
.B mpg123
|
||||||
|
is licensed under the GNU Lesser/Library General Public License, LGPL, version 2.1 .
|
||||||
|
.SH WEBSITE
|
||||||
|
http://www.mpg123.org
|
||||||
|
.br
|
||||||
|
http://sourceforge.net/projects/mpg123
|
||||||
335
man1/out123.1
Normal file
335
man1/out123.1
Normal file
@@ -0,0 +1,335 @@
|
|||||||
|
.TH out123 1 "26 Apr 2020"
|
||||||
|
.SH NAME
|
||||||
|
out123 \- send raw PCM audio or a waveform pattern to an output device
|
||||||
|
.SH SYNOPSIS
|
||||||
|
\fBcat \fRaudio.raw \fR| \fBout123 \fR[ \fR- \fR] [ \fIoptions \fR ]
|
||||||
|
|
||||||
|
\fBout123 \fR[ \fIoptions \fR] \fIfilename \fR[ \fIfilename \fR... ]
|
||||||
|
|
||||||
|
\fBout123 \fR--wave-freq \fIfreq1\fR[,\fIfreq2\fR,...] [ \fIoptions \fR]
|
||||||
|
|
||||||
|
\fBout123 \fR--source \fRgeiger \fR[ \fIoptions \fR]
|
||||||
|
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B out123
|
||||||
|
reads raw PCM data (in host byte order) from standard input
|
||||||
|
and plays it on the audio device specified by given options.
|
||||||
|
Alternatively, it can generate periodic or random signals for playback
|
||||||
|
itself.
|
||||||
|
.SH OPTIONS
|
||||||
|
.B out123
|
||||||
|
options may be either the traditional POSIX one letter options,
|
||||||
|
or the GNU style long options. POSIX style options start with a
|
||||||
|
single '\-', while GNU long options start with '\-\^\-'.
|
||||||
|
Option arguments (if needed) follow separated by whitespace (not '=').
|
||||||
|
Note that some options can be absent from your installation when disabled in the build process.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-name \fIname
|
||||||
|
Set the name of this instance, possibly used in various places. This sets the client name for JACK output.
|
||||||
|
.TP
|
||||||
|
\fB\-o \fImodule\fR, \-\^\-\fBoutput \fImodule\fR
|
||||||
|
Select audio output module. You can provide a comma-separated list to use the first one that works.
|
||||||
|
Also see \fB\-a\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-list\-modules
|
||||||
|
List the available modules.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-list\-devices
|
||||||
|
List the available output devices for given output module. If there is no functionality
|
||||||
|
to list devices in the chosen module, an error will be printed and out123 will exit with
|
||||||
|
a non-zero code.
|
||||||
|
.TP
|
||||||
|
\fB\-a \fIdev\fR, \fB\-\^\-audiodevice \fIdev
|
||||||
|
Specify the audio device to use. The default as well as the possible values
|
||||||
|
depend on the active output. For the JACK output, a comma-separated list
|
||||||
|
of ports to connect to (for each channel) can be specified.
|
||||||
|
.TP
|
||||||
|
.BR \-s ", " \-\^\-stdout
|
||||||
|
The audio samples are written to standard output,
|
||||||
|
instead of playing them through the audio device.
|
||||||
|
The output format is the same as the input ... so in this mode,
|
||||||
|
.B out123
|
||||||
|
acts similar the standard tool \fB cat\fR, possibly with some conversions
|
||||||
|
involved.
|
||||||
|
This shortcut is equivalent to '-o raw -a -'.
|
||||||
|
.TP
|
||||||
|
.BR \-S ", " \-\^\-STDOUT
|
||||||
|
This variant additionally writes the data to stdout, while still
|
||||||
|
playing it on the output device. So it is more like some flavour of
|
||||||
|
\fBtee\fR than a \fBcat\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-O \fIfile\fR, \fB\-\^\-outfile
|
||||||
|
Write raw output into a file (instead of simply redirecting standard output to a file with the shell).
|
||||||
|
This shortcut is equivalent to '-o raw -a \fIfile\fR'.
|
||||||
|
.TP
|
||||||
|
\fB\-w \fIfile\fR, \fB\-\^\-wav
|
||||||
|
Write output as WAV file
|
||||||
|
.I file
|
||||||
|
, or standard output if
|
||||||
|
.I -
|
||||||
|
is or the empty string used as file name. You can also use
|
||||||
|
.I --au
|
||||||
|
and
|
||||||
|
.I --cdr
|
||||||
|
for AU and CDR format, respectively. Note that WAV/AU writing to non-seekable files or redirected stdout needs some thought. The header is written with the first actual data. The result of decoding nothing to WAV/AU is a file consisting just of the header when it is seekable and really nothing when not (not even a header). Correctly writing data with prophetic headers to stdout is no easy business.
|
||||||
|
This shortcut is equivalent to '-o wav -a \fIfile\fR'.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-au \fIfile
|
||||||
|
Write to
|
||||||
|
.I file
|
||||||
|
in SUN audio format. If \- or the empty string is used as the filename, the AU file is
|
||||||
|
written to stdout. See paragraph about WAV writing for header fun with non-seekable streams.
|
||||||
|
This shortcut is equivalent to '-o au -a \fIfile\fR'.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-cdr \fIfile
|
||||||
|
Write to
|
||||||
|
.I file
|
||||||
|
as a CDR (CD-ROM audio, more correctly CDDA for Compact Disc Digital Audio).
|
||||||
|
If \- is or the empty string used as the filename, the CDR file is written
|
||||||
|
to stdout.
|
||||||
|
This shortcut is equivalent to '-o cdr -a \fIfile\fR'.
|
||||||
|
.TP
|
||||||
|
\fB\-r \fIrate\fR, \fB\-\^\-rate \fIrate
|
||||||
|
Set sample rate in Hz (default: 44100). If this does not match the actual input
|
||||||
|
sampling rate, you get changed pitch. Might be intentional;-)
|
||||||
|
.TP
|
||||||
|
\fB\-R \fIrate\fR, \fB\-\^\-inputrate \fIrate
|
||||||
|
Set input sample rate to a different value. This triggers resampling if the output
|
||||||
|
rate is indeed different. See \fB\-\^\-resample\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-speed \fIfactor
|
||||||
|
Speed up/down playback by that factor using resampling. See \fB\-\^\-resample\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-resample \fImethod
|
||||||
|
This chooses the method for resampling between differing sampling rates or to apply
|
||||||
|
a change in tempo. You can choose between two variants of the syn123 resampler: fine
|
||||||
|
(the default) and dirty. The fine one features 108 dB dynamic range and at worst-case 84%
|
||||||
|
bandwidth. The dirty one uses a bit less CPU time (not that much, though) by reducing
|
||||||
|
the dynamic range to 72 dB with worst-case bandwidth of 85%. The exact properties vary
|
||||||
|
with the sampling rate ratio, as there is interpolation of filter coefficients involved.
|
||||||
|
.TP
|
||||||
|
\fB\-c \fIcount\fR, \fB\-\^\-channels \fIcount
|
||||||
|
Set channel count to given value.
|
||||||
|
.TP
|
||||||
|
\fB\-C \fIcount\fR, \fB\-\^\-inputch \fIcount
|
||||||
|
Set input channel count to a differnt value than for output. This probably means you want
|
||||||
|
some remixing. Also see \fB\-\^\-mix\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-e \fIenc\fR, \fB\-\^\-encoding \fIenc
|
||||||
|
Choose output sample encoding. Possible values look like f32 (32-bit floating point), s32 (32-bit signed integer), u32 (32-bit unsigned integer) and the variants with different numbers of bits (s24, u24, s16, u16, s8, u8) and also special variants like ulaw and alaw 8-bit.
|
||||||
|
See the output of \fBout123\fR's longhelp for actually available encodings.
|
||||||
|
Default is s16.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-endian \fIchoice
|
||||||
|
Select output endianess (byte order). Choice is big, little, or native, which is the default.
|
||||||
|
The processing can only work in native mode, so you need to specify input or output byte order
|
||||||
|
if that does not match your machine. This also sets the input endianess if that is
|
||||||
|
not set separately. See also \fB\-\^\-inputend\fR and \fB\-\^\-byteswap\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-E \fIenc\fR, \fB\-\^\-inputenc \fIenc
|
||||||
|
Specify input encoding different from output encoding for conversion.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-inputend \fIchoice
|
||||||
|
Select input endianess (byte order). By default it is the same as output byte order.
|
||||||
|
See \fB\-\^\-endian\fR.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-byteswap
|
||||||
|
A switch to trigger swapping of byte order just before output, after any other transformations.
|
||||||
|
This works on top of any endianess you specify with
|
||||||
|
.TP
|
||||||
|
.BR \-m ", " \-\^\-mono "
|
||||||
|
Set for single-channel audio (default is two channels, stereo).
|
||||||
|
.TP
|
||||||
|
.BR \-\-stereo
|
||||||
|
Select stereo output (2 channels, default).
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-list\-encodings
|
||||||
|
List known encoding short and long names to standard output.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-mix \fImatrix
|
||||||
|
Specify a mixing matrix between input and output channels as linear factors, comma separated list for
|
||||||
|
the input channel factors for output channel 1, then output channel 2, and so forth.
|
||||||
|
The default is a unit matrix if channel counts match, so for 3 channels the equivalent of
|
||||||
|
'\-\^\-mix 1,0,0,0,1,0,0,0,1'. For stereo to mono conversion, the default is mixing of
|
||||||
|
both channels with halved amplitude, so '\-\^\-mix 0.5,0.5'. For splitting mono to stereo,
|
||||||
|
it is '\-\^\-mix 1,1' top keep the symmetry.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-filter \fIcoeff
|
||||||
|
Apply digital filter(s) before pre-amplification (see \fB\-\^\-preamp\fR) with the coefficient
|
||||||
|
list coeff as
|
||||||
|
.ce
|
||||||
|
b_0,...,b_N,a_0,...,a_N
|
||||||
|
where a_0=1 is mandatory and perhaps helps orientation a bit. Multiple filters are separated
|
||||||
|
by ':'.
|
||||||
|
.TP
|
||||||
|
\fB\-P \fIdbvalue \fB\-\^\-preamp \fIdbvalue
|
||||||
|
Enable a pre-amplification stage that amplifies the signal with the given value in dB before output.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-offset \fIvalue
|
||||||
|
Apply a PCM offset (floating point value scaled in [-1:1] in the pre-amplification stage.
|
||||||
|
Normally, you would do that to correct a known DC offset in a recording.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-clip \fImode
|
||||||
|
Select clipping mode: 'soft' or 'hard' for forced clipping also for
|
||||||
|
floating point output, 'implicit' (default) for implied hard clipping during
|
||||||
|
conversion where necessary.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-dither
|
||||||
|
Enable dithering for conversions to integer. If you insist.
|
||||||
|
This is just some un-spectacular TPDF dither. For some people, that is not fancy enough.
|
||||||
|
Most people cannot be bothered that way or the other.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-test\-format
|
||||||
|
Check if given format is supported by given driver and device (in command line before
|
||||||
|
encountering this), silently returning 0 as exit value if it is the case.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-test\-encodings
|
||||||
|
Print out the short names of encodings supported with the current setup.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-query\-format
|
||||||
|
If the selected driver and device communicate some default accepted format, print
|
||||||
|
out a command line fragment for \fBout123\fR setting that format, always in that order:
|
||||||
|
\-\^\-rate <r> -\^\-channels <c> -\^\-encoding <e>
|
||||||
|
.TP
|
||||||
|
.BR "\-o h" ", " \-\^\-headphones
|
||||||
|
Direct audio output to the headphone connector (some hardware only; AIX, HP, SUN).
|
||||||
|
.TP
|
||||||
|
.BR "\-o s" ", " \-\^\-speaker
|
||||||
|
Direct audio output to the speaker (some hardware only; AIX, HP, SUN).
|
||||||
|
.TP
|
||||||
|
.BR "\-o l" ", " \-\^\-lineout
|
||||||
|
Direct audio output to the line-out connector (some hardware only; AIX, HP, SUN).
|
||||||
|
.TP
|
||||||
|
\fB\-b \fIsize\fR, \fB\-\^\-buffer \fIsize
|
||||||
|
Use an audio output buffer of
|
||||||
|
.I size
|
||||||
|
Kbytes. This is useful to bypass short periods of heavy
|
||||||
|
system activity, which would normally cause the audio output
|
||||||
|
to be interrupted.
|
||||||
|
You should specify a buffer size of at least 1024
|
||||||
|
(i.e. 1 Mb, which equals about 6 seconds of usual audio data) or more;
|
||||||
|
less than about 300 does not make much sense. The default is 0,
|
||||||
|
which turns buffering off.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-preload \fIfraction
|
||||||
|
Wait for the buffer to be filled to
|
||||||
|
.I fraction
|
||||||
|
before starting playback (fraction between 0 and 1). You can tune this prebuffering to either get sound faster to your ears or safer uninterrupted web radio.
|
||||||
|
Default is 0.2 (changed from 1 since version 1.23).
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-devbuffer \fIseconds
|
||||||
|
Set device buffer in seconds; <= 0 means default value. This is the small buffer between the
|
||||||
|
application and the audio backend, possibly directly related to hardware buffers.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-timelimit \fIsamples
|
||||||
|
Set playback time limit in PCM samples if set to a value greater than zero.
|
||||||
|
\fBout123\fR will stop reading from stdin or playing from the generated wave
|
||||||
|
table after reaching that number of samples.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-seconds \fIseconds
|
||||||
|
Set time limit in seconds instead.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-source \fIname
|
||||||
|
Choose the signal source: 'file' (default) for playback of the given file(s) on the command line
|
||||||
|
or standard input if there are none, or one of the generators 'wave' (see \fB\-\^\-wave\-freq\fR),
|
||||||
|
'sweep' (see \fB\-\^\-wave\-sweep\fR), 'pink' (see \fB\-\^\-ping\-rows\fR),
|
||||||
|
geiger (see \fB\-\^\-geiger\-activity\fR), or just 'white' for some white noise.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-wave\-freq \fIfrequencies
|
||||||
|
Set wave generator frequency or list of those with comma separation for enabling
|
||||||
|
a generated test signal instead of standard input. Empty values repeat the
|
||||||
|
previous one.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-wave\-pat \fIpatterns
|
||||||
|
Set the waveform patterns of the generated waves as comma-separated list.
|
||||||
|
Choices include sine, square, triangle, sawtooth, gauss, pulse, and shot.
|
||||||
|
Empty values repeat the previous one.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-wave\-phase \fIphases
|
||||||
|
Set waveform phase shift(s) as comma-separated list, negative values
|
||||||
|
inverting the pattern in time and empty value repeating the previous. There is
|
||||||
|
also \fB\-\^\-wave\-direction\fR overriding the negative bit.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-wave\-direction\fR
|
||||||
|
Set wave direction explicitly (the sign counts).
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-wave\-sweep \fIfrequency
|
||||||
|
Sweep a generated wave to the given frequency, from
|
||||||
|
first one specified for \fB\-\^\-wave\-freq\fR, using the
|
||||||
|
first wave pattern and direction, too.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-sweep\-time \fIseconds
|
||||||
|
Set frequency sweep duration in seconds if > 0. This defaults
|
||||||
|
to the configured time limit if set, otherwise one second, as endless
|
||||||
|
sweeps are not sensible.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-sweep\-count \fIcount
|
||||||
|
Set timelimit to exactly produce that many (smooth) sweeps
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-sweep\-type \fItype
|
||||||
|
Set sweep type: lin(ear) for linear, qua(d) (default) for quadratic, or exp(onential)
|
||||||
|
for an exponential change of frequency with time.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-sweep\-hard
|
||||||
|
Disable post-sweep smoothing for periodicity.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-genbuffer \fIbytes
|
||||||
|
Set the buffer size (limit) for signal generators,
|
||||||
|
if > 0 (default), this enforces a periodic
|
||||||
|
buffer also for non-periodic signals, benefit:
|
||||||
|
less runtime CPU overhead, as everything is precomputed as enforced periodic signal.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-wave\-limit \fIsamples
|
||||||
|
This is an alias for \fB\-\^\-genbuffer\fR.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-pink\-rows \fInumber
|
||||||
|
Activate pink noise source and choose rows for the algorithm (<1 chooses default).
|
||||||
|
The generator follows code provided by Phil Burk (http://softsynth.com) and uses
|
||||||
|
the Gardner method.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-geiger\-activity \fInumber
|
||||||
|
This configures the simulation of a Geiger-Mueller counter as source, with the given
|
||||||
|
numer as average events per second. Play with it. It's fun!
|
||||||
|
.TP
|
||||||
|
.BR \-t ", " \-\^\-test
|
||||||
|
Test mode. The audio stream is read, but no output occurs.
|
||||||
|
.TP
|
||||||
|
.BR \-v ", " \-\^\-verbose
|
||||||
|
Increase the verbosity level.
|
||||||
|
.TP
|
||||||
|
.BR \-q ", " \-\^\-quiet
|
||||||
|
Quiet. Suppress diagnostic messages.
|
||||||
|
.TP
|
||||||
|
\fB\-\^\-aggressive
|
||||||
|
Tries to get higher priority
|
||||||
|
.TP
|
||||||
|
.BR \-T ", " \-\-realtime
|
||||||
|
Tries to gain realtime priority. This option usually requires root
|
||||||
|
privileges to have any effect.
|
||||||
|
.TP
|
||||||
|
.BR \-? ", " \-\^\-help
|
||||||
|
Shows short usage instructions.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-longhelp
|
||||||
|
Shows long usage instructions.
|
||||||
|
.TP
|
||||||
|
.BR \-\^\-version
|
||||||
|
Print the version string.
|
||||||
|
.SH AUTHORS
|
||||||
|
.TP
|
||||||
|
Maintainer:
|
||||||
|
.br
|
||||||
|
Thomas Orgis <maintainer@mpg123.org>, <thomas@orgis.org>
|
||||||
|
.TP
|
||||||
|
Creator (ancestry of code inside mpg123):
|
||||||
|
.br
|
||||||
|
Michael Hipp
|
||||||
|
.TP
|
||||||
|
Uses code or ideas from various people, see the AUTHORS file accompanying the source code.
|
||||||
|
.SH LICENSE
|
||||||
|
.B out123
|
||||||
|
is licensed under the GNU Lesser/Library General Public License, LGPL, version 2.1 .
|
||||||
|
.SH WEBSITE
|
||||||
|
http://www.mpg123.org
|
||||||
|
.br
|
||||||
|
http://sourceforge.net/projects/mpg123
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
# - devel packages for alsa, sdl, etc... to build the respective output modules.
|
# - devel packages for alsa, sdl, etc... to build the respective output modules.
|
||||||
Summary: The fast console mpeg audio decoder/player.
|
Summary: The fast console mpeg audio decoder/player.
|
||||||
Name: mpg123
|
Name: mpg123
|
||||||
Version: 1.32.0
|
Version: 1.32.1
|
||||||
Release: 1
|
Release: 1
|
||||||
URL: http://www.mpg123.org/
|
URL: http://www.mpg123.org/
|
||||||
License: GPL
|
License: GPL
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ include(CheckFunctionExists)
|
|||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
|
include(CheckTypeSize)
|
||||||
include(CMakeDependentOption)
|
include(CMakeDependentOption)
|
||||||
include(TestBigEndian)
|
include(TestBigEndian)
|
||||||
|
|
||||||
@@ -69,6 +70,10 @@ check_function_exists(execvp HAVE_EXECVP)
|
|||||||
check_function_exists(ctermid HAVE_CTERMID)
|
check_function_exists(ctermid HAVE_CTERMID)
|
||||||
check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
|
check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
|
||||||
|
|
||||||
|
check_type_size(long SIZEOF_LONG)
|
||||||
|
check_type_size(off_t SIZEOF_OFF_T)
|
||||||
|
|
||||||
|
if(SIZEOF_OFF_T LESS 8)
|
||||||
check_function_exists(lseek64 LFS_LARGEFILE_64)
|
check_function_exists(lseek64 LFS_LARGEFILE_64)
|
||||||
|
|
||||||
if(LFS_LARGEFILE_64)
|
if(LFS_LARGEFILE_64)
|
||||||
@@ -82,6 +87,7 @@ check_c_source_compiles(
|
|||||||
int fd = open(\"/foo\", O_RDONLY|O_LARGEFILE);
|
int fd = open(\"/foo\", O_RDONLY|O_LARGEFILE);
|
||||||
" HAVE_O_LARGEFILE)
|
" HAVE_O_LARGEFILE)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
search_libs(gethostbyname GETHOSTBYNAME_LIB nsl socket network)
|
search_libs(gethostbyname GETHOSTBYNAME_LIB nsl socket network)
|
||||||
search_libs(socket SOCKET_LIB socket)
|
search_libs(socket SOCKET_LIB socket)
|
||||||
|
|||||||
@@ -509,7 +509,7 @@ size_t INT123_unintr_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *st
|
|||||||
|
|
||||||
#ifndef NO_CATCHSIGNAL
|
#ifndef NO_CATCHSIGNAL
|
||||||
#if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H)
|
#if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H)
|
||||||
void (*INT123_catchsignal(int signum, void(*handler)()))()
|
void (*INT123_catchsignal(int signum, void(*handler)(int)))(int)
|
||||||
{
|
{
|
||||||
struct sigaction new_sa;
|
struct sigaction new_sa;
|
||||||
struct sigaction old_sa;
|
struct sigaction old_sa;
|
||||||
@@ -523,7 +523,7 @@ void (*INT123_catchsignal(int signum, void(*handler)()))()
|
|||||||
sigemptyset(&new_sa.sa_mask);
|
sigemptyset(&new_sa.sa_mask);
|
||||||
new_sa.sa_flags = 0;
|
new_sa.sa_flags = 0;
|
||||||
if(sigaction(signum, &new_sa, &old_sa) == -1)
|
if(sigaction(signum, &new_sa, &old_sa) == -1)
|
||||||
return ((void (*)()) -1);
|
return ((void (*)(int)) -1); // Not rather NULL?
|
||||||
return (old_sa.sa_handler);
|
return (old_sa.sa_handler);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ size_t INT123_unintr_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *st
|
|||||||
#include "true.h"
|
#include "true.h"
|
||||||
|
|
||||||
#if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H)
|
#if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H)
|
||||||
void (*INT123_catchsignal(int signum, void(*handler)()))();
|
void (*INT123_catchsignal(int signum, void(*handler)(int)))(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -2196,10 +2196,6 @@ MPG123_EXPORT int mpg123_replace_reader( mpg123_handle *mh
|
|||||||
, off_t (*r_lseek)(int, off_t, int)
|
, off_t (*r_lseek)(int, off_t, int)
|
||||||
);
|
);
|
||||||
|
|
||||||
/* TODO: Implement replace_read_handle() as thin wrapper over mpg123_reader(),
|
|
||||||
triggering the same further code paths, include mpg123_open_handle().
|
|
||||||
And: Implement the below functions, MPG123_PORTABLE_API, at all. */
|
|
||||||
|
|
||||||
/** Replace I/O functions with your own ones operating on some kind of
|
/** Replace I/O functions with your own ones operating on some kind of
|
||||||
* handle instead of integer descriptors.
|
* handle instead of integer descriptors.
|
||||||
* The handle is a void pointer, so you can pass any data you want...
|
* The handle is a void pointer, so you can pass any data you want...
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ int outburst = 32768;
|
|||||||
Another forked buffer process will have its on value. */
|
Another forked buffer process will have its on value. */
|
||||||
static int intflag = FALSE;
|
static int intflag = FALSE;
|
||||||
|
|
||||||
static void catch_interrupt (void)
|
static void catch_interrupt (int sig)
|
||||||
{
|
{
|
||||||
intflag = TRUE;
|
intflag = TRUE;
|
||||||
}
|
}
|
||||||
@@ -75,7 +75,7 @@ static int read_record(out123_handle *ao
|
|||||||
, int who, void **buf, byte *prebuf, int *preoff, int presize, size_t *recsize);
|
, int who, void **buf, byte *prebuf, int *preoff, int presize, size_t *recsize);
|
||||||
static int buffer_loop(out123_handle *ao);
|
static int buffer_loop(out123_handle *ao);
|
||||||
|
|
||||||
static void catch_child(void)
|
static void catch_child(int sig)
|
||||||
{
|
{
|
||||||
/* Disabled for now. We do not really need that.
|
/* Disabled for now. We do not really need that.
|
||||||
Rather get return status in a controlled way in INT123_buffer_exit(). */
|
Rather get return status in a controlled way in INT123_buffer_exit(). */
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ void set_intflag()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(WIN32) && !defined(GENERIC)
|
#if !defined(WIN32) && !defined(GENERIC)
|
||||||
static void catch_interrupt(void)
|
static void catch_interrupt(int sig)
|
||||||
{
|
{
|
||||||
intflag = TRUE;
|
intflag = TRUE;
|
||||||
}
|
}
|
||||||
@@ -203,11 +203,11 @@ static void handle_fatal_msg(const char *msg)
|
|||||||
fprintf(stderr, "%s", msg);
|
fprintf(stderr, "%s", msg);
|
||||||
handle_fatal();
|
handle_fatal();
|
||||||
}
|
}
|
||||||
static void catch_fatal_term(void)
|
static void catch_fatal_term(int sig)
|
||||||
{
|
{
|
||||||
handle_fatal_msg("\nmpg123: death by SIGTERM\n");
|
handle_fatal_msg("\nmpg123: death by SIGTERM\n");
|
||||||
}
|
}
|
||||||
static void catch_fatal_pipe(void)
|
static void catch_fatal_pipe(int sig)
|
||||||
{
|
{
|
||||||
/* If the SIGPIPE is because of piped stderr, trying to write
|
/* If the SIGPIPE is because of piped stderr, trying to write
|
||||||
in the signal handler hangs the program. */
|
in the signal handler hangs the program. */
|
||||||
|
|||||||
@@ -1271,7 +1271,7 @@ int play_frame(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(WIN32) && !defined(GENERIC)
|
#if !defined(WIN32) && !defined(GENERIC)
|
||||||
static void catch_interrupt(void)
|
static void catch_interrupt(int sig)
|
||||||
{
|
{
|
||||||
intflag = TRUE;
|
intflag = TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
// only single spaces as separator to ease parsing by build scripts
|
// only single spaces as separator to ease parsing by build scripts
|
||||||
#define MPG123_MAJOR 1
|
#define MPG123_MAJOR 1
|
||||||
#define MPG123_MINOR 32
|
#define MPG123_MINOR 32
|
||||||
#define MPG123_PATCH 0
|
#define MPG123_PATCH 1
|
||||||
// Don't get too wild with that to avoid confusing m4. No brackets.
|
// Don't get too wild with that to avoid confusing m4. No brackets.
|
||||||
// Also, it should fit well into a sane file name for the tarball.
|
// Also, it should fit well into a sane file name for the tarball.
|
||||||
#define MPG123_SUFFIX ""
|
#define MPG123_SUFFIX ""
|
||||||
|
|||||||
Reference in New Issue
Block a user