File: mp3burn.html

package info (click to toggle)
mp3burn 0.4.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 152 kB
  • ctags: 36
  • sloc: perl: 285; makefile: 38
file content (420 lines) | stat: -rw-r--r-- 14,301 bytes parent folder | download | duplicates (8)
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>mp3burn - burn audio CDs from MP3, Ogg Vorbis, or FLAC files</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body style="background-color: white">

<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#options">OPTIONS</a></li>
	<li><a href="#return_value">RETURN VALUE</a></li>
	<li><a href="#diagnostics">DIAGNOSTICS</a></li>
	<li><a href="#examples">EXAMPLES</a></li>
	<li><a href="#caveats">CAVEATS</a></li>
	<li><a href="#bugs">BUGS</a></li>
	<li><a href="#notes">NOTES</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
	<li><a href="#author">AUTHOR</a></li>
	<li><a href="#history">HISTORY</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>mp3burn - burn audio CDs from MP3, Ogg Vorbis, or FLAC files</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<p><strong>mp3burn</strong> [OPTION] [mp3,ogg, and flac files]</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p><strong>mp3burn</strong>
is a simple command line tool for making audio CDs from
MP3s without filling up your disk with .wav files.  It uses
Perl(1), ogg123(1), <code>mpg321(1)</code> or mpg123(1), cdrecord(1), 
flac(1), and the <a href="/MP3/Info(3).html">the MP3::Info(3) manpage</a> Perl module.</p>
<p>
</p>
<hr />
<h1><a name="options">OPTIONS</a></h1>
<dl>
<dt><strong><a name="item__2dh_2c__2d_2dhelp"><strong>-h, --help</strong></a></strong>

<dd>
<p>Prints out a brief help</p>
</dd>
</li>
<dt><strong><a name="item__2dm_2c__2d_2dswap"><strong>-m, --swap</strong></a></strong>

<dd>
<p>Manual <code>cdrecord -swab</code> option mode.  
Use this to disable the automatic detection for swab mode in case it is
not working correctly on your system.  (Also, please send email to
&lt;<a href="mailto:formorer@formorer.de">formorer@formorer.de</a>&gt; or file a bug against the <em>mp3burn</em> package if you
encounter this problem.)</p>
</dd>
</li>
<dt><strong><a name="item__2dp_2c__2d_2dplaylist__22_2em3u_playlist_22"><strong>-p, --playlist</strong> ``.m3u playlist''</a></strong>

<dd>
<p>Use a playlist to specify audio files to burn.
Instead of (or in addition to) listing mp3/ogg/flac files, 
supply a .m3u playlist (e.g., from xmms) that contains the 
audio files for your CD.</p>
</dd>
<dd>
<p>Note:  If you specify both a playlist and audio files, the
files specified on the command-line will be appended to the list 
of audio files listed in the playlist.  If a file referenced
in a playlist cannot be read, it will be skipped.  Be wary of
playlist editors that use relative paths - mp3burn cannot know
what path the playlist editor assumed.
</p>
</dd>
<dd>
<pre>

=cut</pre>
</dd>
</li>
<dt><strong><a name="item__2dt_2c__2d_2dtmpdir__22tmpdir_22"><strong>-t, --tmpdir</strong> ``tmpdir''</a></strong>

<dd>
<p>Put temporary files in <em>tmpdir</em>.
Default is to use the current directory.</p>
</dd>
</li>
<dt><strong><a name="item__2dc_2c__2d_2dcheck__22mmm_3ass_22__7c_atip"><strong>-c, --check</strong> ``MMM:SS'' | ATIP</a></strong>

<dd>
<p>Time check:  compute the total length of files to be burned
and warn if greater than <em>MMM:SS</em> minutes and seconds.  If
the value ATIP is supplied, the total length is checked
against the length available on the CDR[W] as reported by
ATIP.</p>
</dd>
<dd>
<p>Note that FLAC-encoded files are assumed to be 1 second long
(until there is an easy way to get the file duration).  You
will need to calculate burn-length on your own with FLAC files.</p>
</dd>
</li>
<dt><strong><a name="item__2dd_2c__2d_2ddummy"><strong>-d, --dummy</strong></a></strong>

<dd>
<p>Perform a ``dummy'' run: do everything except actually burn the CD
(uses <em>cdrecord(1)</em> <code>-dummy</code> option).</p>
</dd>
</li>
<dt><strong><a name="item__2do_2c__2d_2dcdrecord__22cdrecord_opts_22"><strong>-o, --cdrecord</strong>  ``cdrecord_opts''</a></strong>

<dd>
<p>Specify the command line options for cdrecord. 
The quotes are required to prevent <strong>mp3burn</strong> from parsing <code>cdrecord(1)</code> options.
Overrides options specified in <em>~/.mp3burnrc</em>.</p>
</dd>
<dd>
<p>Example: <strong>-o</strong> ``-v dev=1,0 speed=4 -swab''</p>
</dd>
</li>
<dt><strong><a name="item_note_3a"><strong>Note:</strong></a></strong>

<dd>
<p>The options <em>-pad</em> and <em>-audio</em> are added automatically, since they are
always necessary.  The script also tries to detect if <em>-swab</em>  is needed (for
example on x86 and other little-Endian platforms).  cdrecord is supposed
to take care of any byte-ordering requirements specific to your burner. 
(If you end up with a CD that merely sounds like static, you most likely
need to toggle use of <em>-swab</em>.)  You should also consider using <em>-v</em> so
that you can watch the burn in progress. This goes for <em>~/.mp3burnrc</em> also.</p>
</dd>
</li>
<dt><strong><a name="item__2da_2c__2d_2datip"><strong>-a, --atip</strong></a></strong>

<dd>
<p>Lookup the ATIP info for the device in the cdburner 
(using <em>cdrecord(1)</em> <code>-atip</code>) and then exits.  This 
option can only be used (successfully) in conjuction with <strong>-o</strong>.</p>
</dd>
</li>
<dt><strong><a name="item__2dm_2c__2d_2dencoder__22mp3_decoder_22"><strong>-M, --encoder</strong> ``MP3 decoder''</a></strong>

<dd>
<p>Use an MP3 decoder other than the default, which is mpg321.  This is
imperative when burning tracks that have sample rates other than 44.1kHz,
and the current version of mpg321 will not decode these files.  Specify
the name of the decoder to be used, e.g. <em>mpg123-oss-3dnow</em>;  you can
also specify this in  your .mp3burnrc file with <strong>$mp3decoder
=</strong> <em>mp3decoder</em>.  <em>(Note:  Currently, the MP3 decoder must be
able to accept mpg123-style command-line arguments.)</em></p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="return_value">RETURN VALUE</a></h1>
<p><strong>mp3burn</strong> returns 0 on success.</p>
<p>
</p>
<hr />
<h1><a name="diagnostics">DIAGNOSTICS</a></h1>
<dl>
<dt><strong><a name="item_error_in__2emp3burnrc_3a">Error in .mp3burnrc:</a></strong>

<dd>
<p><code>Perl(1)</code> cannot parse the <em>.mp3burnrc</em> file.
The following example occurs when a double quote is not terminated:</p>
</dd>
<dd>
<pre>
  bash-2.05$ sudo mp3burn -d ~/bell.ogg 
  String found where operator expected at (eval 10) line 7, at end of line
          (Missing operator before ?)
  Error in .mp3burnrc:
  Can't find string terminator '&quot;' anywhere before EOF at (eval 10) line 7.
  bash-2.05$ 
  
You will experience this error if you define both $cdrecord_opts and
$mp3decoder without terminating the variable assignments with the ';' 
character:</pre>
</dd>
<dd>
<pre>
  $ mp3burn -d -t /tmp Theodor_Storm_Aquis_submersus_1.mp3 
  Scalar found where operator expected at (eval 10) line 2, near &quot;&quot;-v speed=2 dev=0,3,0&quot;
  $mp3decoder&quot;
        (Missing operator before 
  $mp3decoder?)
  Error in .mp3burnrc:
  syntax error at (eval 10) line 2, near &quot;&quot;-v speed=2 dev=0,3,0&quot;
  $mp3decoder&quot;</pre>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="examples">EXAMPLES</a></h1>
<p>Write an Ogg Vorbis file from a CD-R drive, <em>/dev/scd0</em>, 
mounted at <em>/mnt/scd0/</em> to a 
CD-RW drive, <em>/dev/scd1</em>, called <code>0,1,0</code> in <code>cdrecord(1)</code> SCSI notation.
Ensure that file is no longer than 50 minutes.
<em>sudo(1)</em> is used to get root permissions for cdrecord(1).</p>
<pre>
  % sudo mp3burn -c 050:00 -o &quot;-v speed=2 dev=0,1,0&quot; /mnt/scd0/bell.ogg</pre>
<p>Create a <em>~/.mp3burnrc</em> that prints a message before writing and uses
a different MP3 decoder than the default of mpg321.</p>
<pre>
  # This is an example.
  $cdrecord_opts=&quot;-v speed=2 dev=0,1,0&quot;;
  $mp3decoder = &quot;mpg123-oss-3dnow&quot;;</pre>
<pre>
  print &quot;Nine seconds to slap a CD-R in the drive!\n&quot; ;</pre>
<pre>
  #
  # See mp3burn(3).
  #</pre>
<p>Specify an mp3decoder other than mpg321.</p>
<pre>
  $ sudo mp3burn -M mpg123-esd ./rush/*mp3
  
=head1 FILES</pre>
<dl>
<dt><strong><a name="item__7e_2f_2emp3burnrc"><em>~/.mp3burnrc</em></a></strong>

<dd>
<p>In this file, you may permanently specify the cdrecord options and
MP3 decoder you want to use.  The format is:</p>
</dd>
<dd>
<pre>
  $cdrecord_opts = &quot;cdrecord options&quot;;
  $mp3decoder = &quot;some mp3 decoder&quot;;</pre>
</dd>
<dd>
<p>You may place comments in this file by beginning a line with <code>#</code>.</p>
</dd>
</li>
<dt><strong><strong>Note:</strong></strong>

<dd>
<p>The values of $cdrecord_opts and $mp3decoder in <em>~/.mp3burnrc</em> are ignored 
if the <code>-o</code> or <code>-&lt;</code>command-line options are used, respectively.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="caveats">CAVEATS</a></h1>
<p>Has not been tested extensively with Ogg Vorbis files.
Ogg Vorbis files must be in CD-DA format: 
i.e. 44100 samples/channel x 16 bits/sample x 2 channels.</p>
<p>
</p>
<hr />
<h1><a name="bugs">BUGS</a></h1>
<p>If you execute <strong>mp3burn</strong> with root permissions, 
the <em>~/.mp3burnrc</em> will also be executed with root permissions.</p>
<p>
</p>
<hr />
<h1><a name="notes">NOTES</a></h1>
<p>There are a number of GUI frontends for <strong>mp3burn</strong>:</p>
<dl>
<dt><strong><a name="item_xmp3burn">Xmp3Burn</a></strong>

<dd>
<pre>

<a href="http://perso.wanadoo.es/ja_recio/xmp3burn/xmp3burn.html">http://perso.wanadoo.es/ja_recio/xmp3burn/xmp3burn.html</a></pre>
</dd>
<dt><strong><a name="item_kmp3burn">Kmp3burn</a></strong>

<dd>
<p><a href="http://computer.freepage.de/kmp3burn/index.htm">http://computer.freepage.de/kmp3burn/index.htm</a></p>
</dd>
</li>
<dt><strong><a name="item_gtkmp3burn">GtkMp3Burn</a></strong>

<dd>
<p><a href="http://gtkmp3burn.sourceforge.net/">http://gtkmp3burn.sourceforge.net/</a></p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>cdrecord(1), mpg321(1), ogg123(1), ogginfo(1), flac(1), <a href="/MP3/Info(3).html">the MP3::Info(3) manpage</a>
The <strong>mp3burn</strong> web page is <a href="http://mp3burn.sourceforge.net/.">http://mp3burn.sourceforge.net/.</a>
The Ogg Vorbis web page is <a href="http://www.xiph.org/ogg/vorbis/.">http://www.xiph.org/ogg/vorbis/.</a>
The FLAC web page is <a href="http://flac.sourceforge.net/.">http://flac.sourceforge.net/.</a></p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Copyright (c) 2000 Ryan Richter. 
Copyright (c) 2003 Alexander Wirt</p>
<p>This script was written by Ryan Richter &lt;<a href="mailto:bobort@bigfoot.com">bobort@bigfoot.com</a>&gt; with much code
contributed by Dan Lark &lt;<a href="mailto:dlark@spinn.net">dlark@spinn.net</a>&gt;.</p>
<p>I would like to thank Dan Lark &lt;<a href="mailto:dlark@spinn.net">dlark@spinn.net</a>&gt; for
contributing the ideas and code for most of the new features,
and Tony Mancill &lt;<a href="mailto:tony@mancill.com">tony@mancill.com</a>&gt; for making Debian packages
and helping with debugging.</p>
<p>Later in 2003 Alexander Wirt continued to write this program.</p>
<p>This program is licensed under the GNU General Public License.
You may fold, spindle, and mutilate this software under the terms of the GPL.</p>
<p>
</p>
<hr />
<h1><a name="history">HISTORY</a></h1>
<ol>
<li><strong><a name="item__3cformorer_40formorer_2ede_3e">&lt;<a href="mailto:formorer@formorer.de">formorer@formorer.de</a>&gt;</a></strong>

<p>Switches from standard getopt to GetOpts::Long</p>
<p>Updated Manpage for the new option format</p>
</li>
<li><strong>&lt;<a href="mailto:formorer@formorer.de">formorer@formorer.de</a>&gt;</strong>

<p>Updated mp3burn to use pod2usage</p>
<p>Added -h switch for getting help</p>
<p>Fixed a bug with the output of file in conduction with FLAC files</p>
<p>Added a gracefully exit if there are no valid files left</p>
<p>Use String::Shellquote to avoid problems with the shell</p>
</li>
<li><strong><a name="item__3ctmancill_40debian_2eorg_3e">&lt;<a href="mailto:tmancill@debian.org">tmancill@debian.org</a>&gt;</a></strong>

<p>hacked in support for FLAC, as per suggested by &lt;<a href="mailto:ldm@apartia.org">ldm@apartia.org</a>&gt;</p>
</li>
<li><strong>&lt;<a href="mailto:tmancill@debian.org">tmancill@debian.org</a>&gt;</strong>

<p>updated to work with new ogginfo output format in vorbis-tools 1.0; 
modified slightly to not create FIFOs for invalid MP3/OGG files</p>
</li>
<li><strong>&lt;<a href="mailto:tmancill@debian.org">tmancill@debian.org</a>&gt;</strong>

<p>added <em>-M $mp3decoder</em> switch to support MP3 decoders other than 
mpg321 and mpg123-oss</p>
</li>
<li><strong>&lt;<a href="mailto:tmancill@debian.org">tmancill@debian.org</a>&gt;</strong>

<p>added check to automatically add -swab on ia32 platform</p>
<p><a href="/MP3/Info(3).html">the MP3::Info(3) manpage</a> replaces MPEG::MP3Info</p>
</li>
<dt><strong><a name="item_mp3burn_0_2e02_10_2f28_2f00"><strong>mp3burn</strong> 0.02 10/28/00</a></strong>

<dd>
<p>Changes since 0.01:</p>
</dd>
<dd>
<p>Bugfixes:</p>
</dd>
<dd>
<p>Spaces, quotes, and other shell metacharacters in filenames
should no longer problematic, since we use Shell:QuoteString 
to avoid problems with that (Feedback for that is wished).

</p>
</dd>
<dd>
<p>Mono MP3s and MP3s not sampled at 44.1kHz are no longer
problematic.

</p>
</dd>
<dd>
<p>New Features:

</p>
</dd>
<dd>
<p>Editing the executable is no longer necessary; cdrecord
options can be specified on the command line or in <em>~/.mp3burnrc</em>.

</p>
</dd>
<dd>
<p>Temp dir for FIFOs may be set to other than the current dir.

</p>
</dd>
<dd>
<p>Dummy runs now supported from the command line.

</p>
</dd>
<dd>
<p>A time check is now available: <strong>mp3burn</strong> can abort if total
time exceeds a threshold.  Requires <a href="/MPEG/MP3Info.html">the MPEG::MP3Info manpage</a>.

</p>
</dd>
<dd>
<p>Playlist support.

</p>
</dd>
</li>
</ol>

</body>

</html>