MP3BURN(1) | User Contributed Perl Documentation | MP3BURN(1) |
mp3burn - burn audio CDs from MP3, Ogg Vorbis, or FLAC files
mp3burn [OPTION] [mp3,ogg, and flac files]
mp3burn 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), mpg321(1) or mpg123(1), cdrecord(1), flac(1), and the MP3::Info(3) Perl module.
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.
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.
Example: -o "-v dev=1,0 speed=4 -swab"
mp3burn returns 0 on success.
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 '"' 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:
$ mp3burn -d -t /tmp Theodor_Storm_Aquis_submersus_1.mp3 Scalar found where operator expected at (eval 10) line 2, near ""-v speed=2 dev=0,3,0" $mp3decoder" (Missing operator before $mp3decoder?) Error in .mp3burnrc: syntax error at (eval 10) line 2, near ""-v speed=2 dev=0,3,0" $mp3decoder"
Write an Ogg Vorbis file from a CD-R drive, /dev/scd0, mounted at /mnt/scd0/ to a CD-RW drive, /dev/scd1, called "0,1,0" in cdrecord(1) SCSI notation. Ensure that file is no longer than 50 minutes. sudo(1) is used to get root permissions for cdrecord(1).
% sudo mp3burn -c 050:00 -o "-v speed=2 dev=0,1,0" /mnt/scd0/bell.ogg
Create a ~/.mp3burnrc that prints a message before writing and uses a different MP3 decoder than the default of mpg321.
# This is an example. $cdrecord_opts="-v speed=2 dev=0,1,0"; $mp3decoder = "mpg123-oss-3dnow"; print "Nine seconds to slap a CD-R in the drive!\n" ; # # See mp3burn(3). #
Specify an mp3decoder other than mpg321.
$ sudo mp3burn -M mpg123-esd ./rush/*mp3
$cdrecord_opts = "cdrecord options"; $mp3decoder = "some mp3 decoder";
You may place comments in this file by beginning a line with "#".
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.
If you execute mp3burn with root permissions, the ~/.mp3burnrc will also be executed with root permissions.
There are a number of GUI frontends for mp3burn:
cdrecord(1), mpg321(1), ogg123(1), ogginfo(1), flac(1), MP3::Info(3) The mp3burn web page is http://mp3burn.sourceforge.net/. The Ogg Vorbis web page is http://www.xiph.org/ogg/vorbis/. The FLAC web page is http://flac.sourceforge.net/.
Copyright (c) 2000 Ryan Richter. Copyright (c) 2003 Alexander Wirt
This script was written by Ryan Richter <bobort@bigfoot.com> with much code contributed by Dan Lark <dlark@spinn.net>.
I would like to thank Dan Lark <dlark@spinn.net> for contributing the ideas and code for most of the new features, and Tony Mancill <tony@mancill.com> for making Debian packages and helping with debugging.
Later in 2003 Alexander Wirt continued to write this program.
This program is licensed under the GNU General Public License. You may fold, spindle, and mutilate this software under the terms of the GPL.
Updated Manpage for the new option format
Added -h switch for getting help
Fixed a bug with the output of file in conduction with FLAC files
Added a gracefully exit if there are no valid files left
Use String::Shellquote to avoid problems with the shell
MP3::Info(3) replaces MPEG::MP3Info
Bugfixes:
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).
Mono MP3s and MP3s not sampled at 44.1kHz are no longer problematic.
New Features:
Editing the executable is no longer necessary; cdrecord options can be specified on the command line or in ~/.mp3burnrc.
Temp dir for FIFOs may be set to other than the current dir.
Dummy runs now supported from the command line.
A time check is now available: mp3burn can abort if total time exceeds a threshold. Requires MPEG::MP3Info.
Playlist support.
2022-11-02 | perl v5.36.0 |