mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2025-02-02 15:07:45 -05:00
Formatting improvements, and some minor rewording.
git-svn-id: https://svn.xiph.org/trunk/ezstream@12716 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
64f8ad13e6
commit
309b8fbce9
@ -75,7 +75,8 @@ Skips the currently playing track and moves on to the next in playlist mode, or
|
|||||||
restarts the current track when streaming a single file.
|
restarts the current track when streaming a single file.
|
||||||
.It Cd SIGUSR2
|
.It Cd SIGUSR2
|
||||||
Triggers rereading of metadata for the stream by running the program or script
|
Triggers rereading of metadata for the stream by running the program or script
|
||||||
specified in \&<metadata_progname/\&>
|
specified in
|
||||||
|
.Li \&<metadata_progname/\&>
|
||||||
.Pq see below.
|
.Pq see below.
|
||||||
This is the only meaningful signal when streaming from standard input.
|
This is the only meaningful signal when streaming from standard input.
|
||||||
.El
|
.El
|
||||||
@ -92,9 +93,9 @@ other elements, and comments, appear in an
|
|||||||
configuration file.
|
configuration file.
|
||||||
.Pp
|
.Pp
|
||||||
Each element in the configuration file consists of a
|
Each element in the configuration file consists of a
|
||||||
.Li start tag ,
|
.Em start tag ,
|
||||||
its content and an
|
its content and an
|
||||||
.Li end tag .
|
.Em end tag .
|
||||||
For example:
|
For example:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl \&<filename\&>playlist.m3u<\&/filename\&>
|
.Dl \&<filename\&>playlist.m3u<\&/filename\&>
|
||||||
@ -114,8 +115,9 @@ The configuration file's root element.
|
|||||||
It contains all other configuration elements.
|
It contains all other configuration elements.
|
||||||
.El
|
.El
|
||||||
.Ss Global configuration elements
|
.Ss Global configuration elements
|
||||||
Each of the global configuration elements have the \&<ezstream/\&> element as
|
Each of the global configuration elements have the
|
||||||
their parent.
|
.Li \&<ezstream/\&>
|
||||||
|
element as their parent.
|
||||||
.Bl -tag -width -Ds
|
.Bl -tag -width -Ds
|
||||||
.It Sy \&<url\ /\&>
|
.It Sy \&<url\ /\&>
|
||||||
.Pq Mandatory.
|
.Pq Mandatory.
|
||||||
@ -172,13 +174,14 @@ sign at the beginning of a line and ignored by
|
|||||||
Set to
|
Set to
|
||||||
.Sy 1
|
.Sy 1
|
||||||
.Pq one
|
.Pq one
|
||||||
to indicate that the file in \&<filename/\&> is actually an executable program
|
to indicate that the file in
|
||||||
or script.
|
.Li \&<filename/\&>
|
||||||
|
is actually an executable program or script.
|
||||||
If set to
|
If set to
|
||||||
.Sy 0
|
.Sy 0
|
||||||
.Pq zero ,
|
.Pq zero ,
|
||||||
\&<filename/\&> content is assumed to be a media file, playlist file or the
|
.Li \&<filename/\&>
|
||||||
keyword
|
content is assumed to be a media file, playlist file or the keyword
|
||||||
.Pa stdin
|
.Pa stdin
|
||||||
.Pq the default .
|
.Pq the default .
|
||||||
.Pp
|
.Pp
|
||||||
@ -190,12 +193,17 @@ section for details on how the playlist program must behave.
|
|||||||
Set to
|
Set to
|
||||||
.Sy 1
|
.Sy 1
|
||||||
.Pq one
|
.Pq one
|
||||||
to randomly shuffle the entries of the playlist specified in \&<filename/\&>.
|
to randomly shuffle the entries of the playlist specified in
|
||||||
|
.Li \&<filename/\&> .
|
||||||
Files are played sequentially if set to
|
Files are played sequentially if set to
|
||||||
.Sy 0
|
.Sy 0
|
||||||
.Pq zero
|
.Pq zero
|
||||||
or when the \&<shuffle/\&> element is absent.
|
or when the
|
||||||
This option will be ignored if \&<playlist_program/\&> is set to 1
|
.Li \&<shuffle/\&>
|
||||||
|
element is absent.
|
||||||
|
This option will be ignored if
|
||||||
|
.Li \&<playlist_program/\&>
|
||||||
|
is set to 1
|
||||||
.Pq one.
|
.Pq one.
|
||||||
.It Sy \&<metadata_progname\ /\&>
|
.It Sy \&<metadata_progname\ /\&>
|
||||||
.Pq Optional.
|
.Pq Optional.
|
||||||
@ -207,8 +215,10 @@ the
|
|||||||
.Sy SIGUSR2
|
.Sy SIGUSR2
|
||||||
signal is received.
|
signal is received.
|
||||||
.Pp
|
.Pp
|
||||||
If the \&<metadata_progname/\&> element is present in the configuration, no
|
If the
|
||||||
attempts will be made to read metadata from files that are being streamed.
|
.Li \&<metadata_progname/\&>
|
||||||
|
element is present in the configuration, no attempts will be made to read
|
||||||
|
metadata from files that are being streamed.
|
||||||
If this behavior is not desired, it should be removed or commented out in the
|
If this behavior is not desired, it should be removed or commented out in the
|
||||||
configuration file.
|
configuration file.
|
||||||
.Pp
|
.Pp
|
||||||
@ -218,9 +228,9 @@ section for details on how the metadata program must behave.
|
|||||||
.It Sy \&<metadata_format\ /\&>
|
.It Sy \&<metadata_format\ /\&>
|
||||||
.Pq Optional.
|
.Pq Optional.
|
||||||
Set the format of the string that should be used for the
|
Set the format of the string that should be used for the
|
||||||
.Sq @M@
|
.Sq Li @M@
|
||||||
placeholder when setting metadata with an external program or script via
|
placeholder when setting metadata with an external program or script via
|
||||||
\&<metadata_progname/\&>.
|
.Li \&<metadata_progname/\&> .
|
||||||
.Pp
|
.Pp
|
||||||
See the
|
See the
|
||||||
.Sy METADATA
|
.Sy METADATA
|
||||||
@ -230,7 +240,9 @@ section for details on how metadata is handled by
|
|||||||
Set to
|
Set to
|
||||||
.Sy 1
|
.Sy 1
|
||||||
.Pq one
|
.Pq one
|
||||||
in order to stream the content of \&<filename/\&> only once, and to
|
in order to stream the content of
|
||||||
|
.Li \&<filename/\&>
|
||||||
|
only once, and to
|
||||||
.Sy 0
|
.Sy 0
|
||||||
.Pq zero
|
.Pq zero
|
||||||
for continuous streaming
|
for continuous streaming
|
||||||
@ -292,14 +304,17 @@ If set to
|
|||||||
.Sy 0
|
.Sy 0
|
||||||
.Pq zero ,
|
.Pq zero ,
|
||||||
the Icecast server will not submit this stream to a YP directory, which is also
|
the Icecast server will not submit this stream to a YP directory, which is also
|
||||||
the default if the \&<svrinfopublic/\&> element is absent.
|
the default if the
|
||||||
|
.Li \&<svrinfopublic/\&>
|
||||||
|
element is absent.
|
||||||
.It Sy \&<reencode\ /\&>
|
.It Sy \&<reencode\ /\&>
|
||||||
.Pq Optional.
|
.Pq Optional.
|
||||||
Element that contains child elements, which specify if and how reencoding
|
Element that contains child elements, which specify if and how reencoding
|
||||||
should be done.
|
should be done.
|
||||||
.El
|
.El
|
||||||
.Ss Reencoding settings
|
.Ss Reencoding settings
|
||||||
Each of the reencoding configuration elements have the \&<reencode/\&>
|
Each of the reencoding configuration elements have the
|
||||||
|
.Li \&<reencode/\&>
|
||||||
element as their parent.
|
element as their parent.
|
||||||
.Bl -tag -width -Ds
|
.Bl -tag -width -Ds
|
||||||
.It Sy \&<enable\ /\&>
|
.It Sy \&<enable\ /\&>
|
||||||
@ -310,22 +325,27 @@ to enable reencoding.
|
|||||||
If set to
|
If set to
|
||||||
.Sy 0
|
.Sy 0
|
||||||
.Pq zero ,
|
.Pq zero ,
|
||||||
no reencoding will be done, which is also the default if the \&<enable/\&>
|
no reencoding will be done, which is also the default if the
|
||||||
|
.Li \&<enable/\&>
|
||||||
element is absent.
|
element is absent.
|
||||||
.It Sy \&<encdec\ /\&>
|
.It Sy \&<encdec\ /\&>
|
||||||
Element that contains child elements, which specify how to decode and encode
|
Element that contains child elements, which specify how to decode and encode
|
||||||
a certain media file format for streaming.
|
a certain media file format for streaming.
|
||||||
Each format is described by a separate \&<encdec/\&> element.
|
Each format is described by a separate
|
||||||
|
.Li \&<encdec/\&>
|
||||||
|
element.
|
||||||
.El
|
.El
|
||||||
.Ss Decoder/Encoder settings
|
.Ss Decoder/Encoder settings
|
||||||
Each of the decoder/encoder configuration elements have the \&<encdec/\&>
|
Each of the decoder/encoder configuration elements have the
|
||||||
|
.Li \&<encdec/\&>
|
||||||
element as their parent.
|
element as their parent.
|
||||||
.Bl -tag -width -Ds
|
.Bl -tag -width -Ds
|
||||||
.It Sy \&<format\ /\&>
|
.It Sy \&<format\ /\&>
|
||||||
This element is used by
|
This element is used by
|
||||||
.Nm
|
.Nm
|
||||||
to find the appropriate encoder for the output stream format specified in the
|
to find the appropriate encoder for the output stream format specified in the
|
||||||
\&<format/\&> element inside the global configuration.
|
.Li \&<format/\&>
|
||||||
|
element inside the global configuration.
|
||||||
For consistency reasons, it is recommended that this element is always
|
For consistency reasons, it is recommended that this element is always
|
||||||
supplied, even for currently unsupported output formats, with content such as
|
supplied, even for currently unsupported output formats, with content such as
|
||||||
.Sy VORBIS ,
|
.Sy VORBIS ,
|
||||||
@ -351,12 +371,15 @@ it to standard output.
|
|||||||
During runtime, the placeholder
|
During runtime, the placeholder
|
||||||
.Sq Li @T@
|
.Sq Li @T@
|
||||||
is replaced with the name of the media file, as it is specified in the
|
is replaced with the name of the media file, as it is specified in the
|
||||||
\&<filename/\&> element or contained in a playlist file.
|
.Li \&<filename/\&>
|
||||||
|
element or contained in a playlist file.
|
||||||
It should always be enclosed in quotes, to prevent problems with filenames that
|
It should always be enclosed in quotes, to prevent problems with filenames that
|
||||||
contain whitespaces.
|
contain whitespaces.
|
||||||
.Pp
|
.Pp
|
||||||
Metadata placeholders can be used in the \&<decode/\&> element as well, for
|
Metadata placeholders can be used in the
|
||||||
combined de-/encoder programs that produce streamable data.
|
.Li \&<decode/\&>
|
||||||
|
element as well, for combined de-/encoder programs that produce streamable
|
||||||
|
data.
|
||||||
See the
|
See the
|
||||||
.Sy METADATA
|
.Sy METADATA
|
||||||
section for details on how metadata is handled by
|
section for details on how metadata is handled by
|
||||||
@ -371,7 +394,9 @@ utility:
|
|||||||
Set the command to encode raw data, received from standard input, to the
|
Set the command to encode raw data, received from standard input, to the
|
||||||
specified stream format.
|
specified stream format.
|
||||||
.Pp
|
.Pp
|
||||||
Metadata placeholders can be used in the \&<encode/\&> element.
|
Metadata placeholders can be used in the
|
||||||
|
.Li \&<encode/\&>
|
||||||
|
element.
|
||||||
For details about using metadata in
|
For details about using metadata in
|
||||||
.Nm ,
|
.Nm ,
|
||||||
see below in the
|
see below in the
|
||||||
@ -410,7 +435,9 @@ The program must return only filenames, with one filename per execution.
|
|||||||
The program should not return an empty line unless
|
The program should not return an empty line unless
|
||||||
.Nm
|
.Nm
|
||||||
is supposed to know that the end of the playlist has been reached.
|
is supposed to know that the end of the playlist has been reached.
|
||||||
This is significant when the \&<stream_once/\&> option is enabled.
|
This is significant when the
|
||||||
|
.Li \&<stream_once/\&>
|
||||||
|
option is enabled.
|
||||||
.El
|
.El
|
||||||
.Ss Metadata Programs
|
.Ss Metadata Programs
|
||||||
.Bl -dash -compact
|
.Bl -dash -compact
|
||||||
@ -424,12 +451,12 @@ When called without command line parameters, the program should return a
|
|||||||
complete string that should be used for metadata.
|
complete string that should be used for metadata.
|
||||||
.It
|
.It
|
||||||
When called with the command line parameter
|
When called with the command line parameter
|
||||||
.Qq artist ,
|
.Qq Li artist ,
|
||||||
the program should return only the artist information of the metadata.
|
the program should return only the artist information of the metadata.
|
||||||
.Pq Optional.
|
.Pq Optional.
|
||||||
.It
|
.It
|
||||||
When called with the command line parameter
|
When called with the command line parameter
|
||||||
.Qq title ,
|
.Qq Li title ,
|
||||||
the program should return only the title information of the metadata.
|
the program should return only the title information of the metadata.
|
||||||
.Pq Optional.
|
.Pq Optional.
|
||||||
.El
|
.El
|
||||||
@ -445,26 +472,42 @@ This section will explain each possible scenario.
|
|||||||
.Bl -tag -width -Ds
|
.Bl -tag -width -Ds
|
||||||
.It Sy @T@
|
.It Sy @T@
|
||||||
Replaced with the media file name.
|
Replaced with the media file name.
|
||||||
Required in \&<decode/\&> and is available in \&<metadata_format/\&>.
|
Required in
|
||||||
|
.Li \&<decode/\&>
|
||||||
|
and is available in
|
||||||
|
.Li \&<metadata_format/\&> .
|
||||||
.It Sy @M@
|
.It Sy @M@
|
||||||
Replaced with a metadata string.
|
Replaced with a metadata string.
|
||||||
See below for a detailed explanation.
|
See below for a detailed explanation.
|
||||||
Available in \&<decode/\&> and \&<encode/\&>.
|
Available in
|
||||||
|
.Li \&<decode/\&>
|
||||||
|
and
|
||||||
|
.Li \&<encode/\&> .
|
||||||
.It Sy @a@
|
.It Sy @a@
|
||||||
Replaced with the artist information.
|
Replaced with the artist information.
|
||||||
Available in \&<decode/\&>, \&<encode/\&> and \&<metadata_format/\&>.
|
Available in
|
||||||
|
.Li \&<decode/\&> ,
|
||||||
|
.Li \&<encode/\&>
|
||||||
|
and
|
||||||
|
.Li \&<metadata_format/\&> .
|
||||||
.It Sy @t@
|
.It Sy @t@
|
||||||
Replaced with the title information.
|
Replaced with the title information.
|
||||||
Available in \&<decode/\&>, \&<encode/\&> and \&<metadata_format/\&>.
|
Available in
|
||||||
|
.Li \&<decode/\&> ,
|
||||||
|
.Li \&<encode/\&>
|
||||||
|
and
|
||||||
|
.Li \&<metadata_format/\&> .
|
||||||
.It Sy @s@
|
.It Sy @s@
|
||||||
Replaced with the string returned by \&<metadata_progname/\&> when called
|
Replaced with the string returned by
|
||||||
without any command line parameters.
|
.Li \&<metadata_progname/\&>
|
||||||
Available only in \&<metadata_format/\&>.
|
when called without any command line parameters.
|
||||||
|
Available only in
|
||||||
|
.Li \&<metadata_format/\&> .
|
||||||
.El
|
.El
|
||||||
.Ss The @M@ Placeholder
|
.Ss The @M@ Placeholder
|
||||||
While all other placeholders are simply replaced with whatever data they are
|
While all other placeholders are simply replaced with whatever data they are
|
||||||
associated with,
|
associated with,
|
||||||
.Sq @M@
|
.Sq Li @M@
|
||||||
is context-sensitive.
|
is context-sensitive.
|
||||||
The logic used by
|
The logic used by
|
||||||
.Nm
|
.Nm
|
||||||
@ -484,15 +527,15 @@ Endif
|
|||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
The generated metadata string for
|
The generated metadata string for
|
||||||
.Sq @M@
|
.Sq Li @M@
|
||||||
is of the format
|
is of the format
|
||||||
.Dq Artist - Title ,
|
.Dq Em Artist - Title ,
|
||||||
if both artist and title information is available.
|
if both artist and title information is available.
|
||||||
If one of the two is missing, the available one is displayed without a leading
|
If one of the two is missing, the available one is displayed without a leading
|
||||||
or trailing dash, e.g. just
|
or trailing dash, e.g. just
|
||||||
.Dq Artist .
|
.Dq Em Artist .
|
||||||
If neither artist nor title are available, the name of the media file, without
|
If neither artist nor title are available, the name of the media file \(em
|
||||||
its file extension, is used.
|
without its file extension \(em is used.
|
||||||
.Ss Metadata Caveats
|
.Ss Metadata Caveats
|
||||||
It is possible to generate strange results with odd combinations of
|
It is possible to generate strange results with odd combinations of
|
||||||
placeholders, external metadata programs and updates during runtime via
|
placeholders, external metadata programs and updates during runtime via
|
||||||
@ -508,7 +551,7 @@ It is not possible to properly discern between artist and title information,
|
|||||||
which means that anything set with the
|
which means that anything set with the
|
||||||
.Sy SIGUSR2
|
.Sy SIGUSR2
|
||||||
feature will continue to end up entirely in the
|
feature will continue to end up entirely in the
|
||||||
.Qq Title
|
.Qq Em Title
|
||||||
field of a stream.
|
field of a stream.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width "!!EXAMPLES_DIR!!" -compact
|
.Bl -tag -width "!!EXAMPLES_DIR!!" -compact
|
||||||
|
Loading…
x
Reference in New Issue
Block a user