| 1 |
.\" Copyright (c) 2009, 2015 Moritz Grimm <[email protected]> |
| 2 |
.\" |
| 3 |
.\" Permission to use, copy, modify, and distribute this software for any |
| 4 |
.\" purpose with or without fee is hereby granted, provided that the above |
| 5 |
.\" copyright notice and this permission notice appear in all copies. |
| 6 |
.\" |
| 7 |
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 8 |
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 9 |
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 10 |
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 11 |
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 12 |
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 13 |
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 14 |
.\" |
| 15 |
.Dd @BUILD_DATE@ |
| 16 |
.Dt EZSTREAM-FILE.SH 1 |
| 17 |
.Os @PACKAGE_NAME@ @PACKAGE_VERSION@ |
| 18 |
.Sh NAME |
| 19 |
.Nm ezstream-file.sh |
| 20 |
.Nd script to stream files from the command line |
| 21 |
.Sh SYNOPSIS |
| 22 |
.Nm |
| 23 |
.Bk -words |
| 24 |
.Op Fl hqrVv |
| 25 |
.Op Fl p Ar pidfile |
| 26 |
.Op Fl T Ar cfg_template |
| 27 |
.Op Ar |
| 28 |
.Ek |
| 29 |
.Sh DESCRIPTION |
| 30 |
The |
| 31 |
.Nm |
| 32 |
script uses an |
| 33 |
.Nm ezstream |
| 34 |
configuration file template to stream a list of files given on the command |
| 35 |
line, or via standard input. |
| 36 |
In other words, filenames are written to a temporary playlist, and a |
| 37 |
template-based configuration is generated to stream them. |
| 38 |
.Pp |
| 39 |
The path to a configuration template must be provided, either by using the |
| 40 |
.Fl T |
| 41 |
command line argument, or the |
| 42 |
.Dv EZSTREAM_TEMPLATE |
| 43 |
environment variable. |
| 44 |
.Pp |
| 45 |
The configuration template must be a valid playlist configuration, and contain |
| 46 |
the follwing configuration statement inside the \&<media\ /\&> block: |
| 47 |
.Bd -literal -offset indent |
| 48 |
\&<filename\&>%FILENAME%\&</filename\&> |
| 49 |
.Ed |
| 50 |
.Pp |
| 51 |
If no input files are specified, the list of files to be streamed are read |
| 52 |
from standard input. |
| 53 |
.Pp |
| 54 |
Lastly, the |
| 55 |
.Dv EZSTREAM |
| 56 |
environment variable allows to specify an alternate |
| 57 |
.Nm ezstream |
| 58 |
binary. |
| 59 |
.Ss Command line parameters |
| 60 |
.Bl -tag -width Ds |
| 61 |
.It Fl h |
| 62 |
Print a summary of available command line parameters with short descriptions |
| 63 |
and exit. |
| 64 |
.It Fl p Ar pidfile |
| 65 |
.Po |
| 66 |
Passed to |
| 67 |
.Nm ezstream . |
| 68 |
.Pc |
| 69 |
Write the |
| 70 |
.Nm |
| 71 |
process ID |
| 72 |
.Pq a single number |
| 73 |
to |
| 74 |
.Ar pidfile . |
| 75 |
.It Fl q |
| 76 |
.Po |
| 77 |
Passed to |
| 78 |
.Nm ezstream . |
| 79 |
.Pc |
| 80 |
Be more quiet. |
| 81 |
Suppress the output that external programs send to standard error. |
| 82 |
.It Fl r |
| 83 |
.Po |
| 84 |
Passed to |
| 85 |
.Nm ezstream . |
| 86 |
.Pc |
| 87 |
Show a real-time stream status information line on standard output. |
| 88 |
Implies |
| 89 |
.Fl q . |
| 90 |
.It Fl T Ar cfg_template |
| 91 |
Use the configuration in |
| 92 |
.Ar cfg_template , |
| 93 |
overriding the default set in the |
| 94 |
.Dv EZSTREAM_TEMPLATE |
| 95 |
environment variable. |
| 96 |
.It Fl V |
| 97 |
Print the |
| 98 |
.Nm |
| 99 |
version number and exit. |
| 100 |
.It Fl v |
| 101 |
.Po |
| 102 |
Passed to |
| 103 |
.Nm ezstream . |
| 104 |
.Pc |
| 105 |
Produce more verbose output from |
| 106 |
.Nm ezstream . |
| 107 |
Use twice for even more verbose output. |
| 108 |
.El |
| 109 |
.Sh FILES |
| 110 |
.Bl -tag -width "!!EXAMPLES_DIR!!" -compact |
| 111 |
.It Pa !!EXAMPLES_DIR!! |
| 112 |
Directory containing example configuration files for various uses of |
| 113 |
.Nm ezstream , |
| 114 |
as well as example playlist and metadata scripts. |
| 115 |
.El |
| 116 |
.Sh SEE ALSO |
| 117 |
.Xr ezstream 1 , |
| 118 |
.Xr ezstream-cfgmigrate 1 |
| 119 |
.Sh AUTHORS |
| 120 |
.An -nosplit |
| 121 |
The |
| 122 |
.Nm |
| 123 |
script and this manual were written by |
| 124 |
.An Moritz Grimm . |