-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths-cdda-to-db.1
261 lines (261 loc) · 6.13 KB
/
s-cdda-to-db.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
.\"@ s-cdda-to-db: integrate audio CDs into directory pool.
.\"
.\" Copyright (c) 1998 - 2003, 2010 - 2014, 2016 - 2018,
.\" 2020 - 2022 Steffen Nurpmeso <[email protected]>.
.\" SPDX-License-Identifier: ISC
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.
.Dd June 18, 2021
.ds VV \\%v0.8.0
.
.Dt S-CDDA-TO-DB 1
.Os
.Mx -enable
.
.
.Sh NAME
.Nm s-cdda-to-db \%[\*(VV]
.Nd integrate audio CDs into directory pool
.
.
.Sh SYNOPSIS
.
.Nm
.Fl h
.Nm
.Fl g
.Pp
.Nm
.Op Fl v
.Op Fl d Ar DEVICE
.Op Fl f Ar FORMATS
.Op Fl Fl frames Ns = Ns Ar NUMBER
.Op Fl m Ar PATH
.Op Fl Fl Oo Cm no- Oc Ns Cm music-brainz
.Op Fl Fl music-brainz-tls
.Op Fl Fl no-volume-normalize
.Pp
.Nm
.Op Fl v
.Op Fl d Ar DEVICE
.Fl r
.Nm
.Op Fl v
.Op Fl d Ar DEVICE
.Op Fl f Ar FORMATS
.Op Fl Fl frames Ns = Ns Ar NUMBER
.Op Fl m Ar PATH
.Op Fl Fl Oo Cm no- Oc Ns Cm music-brainz
.Op Fl Fl music-brainz-tls
.Op Fl Fl no-volume-normalize
.Fl e Ar CDID
.
.
.Mx -toc -tree html pdf ps xhtml
.
.
.Sh DESCRIPTION
.
.Nm
queries the content and data of audio CDs through
.Xr s-cdda 1 ,
collects informations, like name of artist, album, song titles, etc., of
desired audio tracks, if possible correlates data with a web query against
.Lk https://musicbrainz.org MusicBrainz ,
and integrates encoded variants of the audio tracks as well as a human
readable database file in a per-CD directory under a directory tree.
Multiple audio encoding formats are supported, and as much of the
collected information as possible is also stored in the encoded files
itself.
The user will be asked to edit collected informations, and will be given
documentation for the rather sophisticated (classical music aware)
database layout while doing so.
.
.
.Ss "Options"
.
.
.Bl -tag -width ".It Fl BaNg"
.Mx
.It Fl d Ar DEVICE
Specify the CD-ROM
.Ar DEVICE .
This is passed to
.Xr s-cdda 1
via the same option if specified, please see there for more, also for
which defaults come into play when not specified.
.
.Mx
.It Fl e Ar CDID
Only resume a
.Fl r
read-only session; the
.Ar CDID
was echoed by it.
.
.Mx
.It Fl f Ar FORMATS
The list of target audio encoding formats, as a comma-separated list.
If not given the environment variable
.Ev S_MUSIC_FORMATS
is used, and please see there (below) for more.
.
.Mx
.It Fl Fl frames Ns = Ns Ar NUMBER
Passed to
.Xr s-cdda 1
as its
.Fl \&f
option, please see there for more.
.
.Mx
.It Fl g
Only show a (the well-known MP3 info) music genre list, then exit.
.
.Mx
.It Fl h
Show a brief usage summary, then exit.
.
.Mx
.It Fl m Ar PATH
The top directory of the S-Music DB.
If not given the environment variable
.Ev S_MUSIC_DB
is used, please see there for more.
.
.\" TODO cannot be expressed Mx
.It Fl Fl Oo Cm \&\&no- Oc Ns Cm \&\&music-brainz
Always (do not) query information data from
.Lk https://musicbrainz.org MusicBrainz .
By default an interactive prompt will appear instead.
.
.Mx
.It Fl Fl music-brainz-tls
After problems with encrypted queries in the past unencrypted queries
are now the default.
.
.Mx
.It Fl Fl no-volume-normalize
By default time and frequency domain statistical informations over all
(selected) CD audio tracks is collected, then the volume is raised by
the minimum applicable value that does not cause clipping in any of the
chosen tracks.
Normalization can be undesireable if a CD is not encoded in one go.
Remarks: without this option the program
.Xr sox 1
is required.
.
.Mx
.It Fl r
Only select and read tracks from an audio CD to a temporary working
directory, echo the CD identity string, then exit.
Such a session can be resumed via
.Fl e .
.
.Mx
.It Fl v
Be more verbose.
.El
.
.
.Pp
The default mode of operation (without any of
.Fl e , g , h , r )
is to read and encode an audio CD.
.
.
.Sh ENVIRONMENT
.
.Bl -tag -width ".It Fl BaNg"
.Mx
.It Ev EDITOR
Used if
.Ev VISUAL
is not set (see there).
.
.Mx
.It Ev LC_ALL
The master switch to configure all
.Xr locale 1 Ns
s to a specific
.Xr locale 7 ,
for example
.Ql export LC_ALL=en_US.UTF-8
or
.Ql export LC_ALL=en_US.utf8 ;
locale names differ in between operating systems.
Best is to run this program in an Unicode UTF-8 locale: metadata will
always be stored in UTF-8, and only few encoders (like
.Xr oggenc 1
and
.Xr flac 1 )
support command line options to (further) suppress character set
conversions.
.
.Mx
.It Ev S_MUSIC_DB
The top directory of the S-Music DB, that is, where the per-CD directory
is to be created.
.
.Mx
.It Ev S_MUSIC_FORMATS
A comma-separated list of case-insensitive target audio encoding
formats, for example
.Ql aac,aaclo,ogg :
here high quality AAC (MP4) and OGG output formats as well as low
quality AAC output has been chosen, which means that each audio input
track will be encoded to three different output files (in parallel).
The full list of audio formats and quality levels can be seen in the
.Fl h
output, note, however, that the actual encoding software still has to
be installed separately.
(The script header of
.Nm
can be inspected to see which tools are needed for which format, unless
implicitly clear through the chosen formats; and see
.Sx "SEE ALSO"
below.)
.
.Mx
.It Ev TMPDIR
This variable defines the directory where the temporary working
directory shall be created under.
If this is not set
.Pa /tmp
will be used.
.
.Mx
.It Ev VISUAL
The pathname of the text editor to use for editing purposes.
.Ev EDITOR
will be tried if this is not set.
.El
.
.
.Sh "SEE ALSO"
.
.Xr faac 1 ,
.Xr flac 1 ,
.Xr lame 1 ,
.Xr oggenc 1 ,
.Xr opusenc 1 ,
.Xr s-cdda 1 ,
.Xr sox 1
.
.
.Sh AUTHORS
.
.An Steffen Nurpmeso Aq [email protected]
.
.\" s-ts-mode