Perl audio converter, a multi purpose converter/ripper/tagger
pacpl --to <format> <options> [file(s)/directory(s)]
Perl Audio Converter is a tool for converting multiple audio types from one format to another. It supports \s-1AAC\s0, \s-1AC3\s0, \s-1AIFF\s0, \s-1APE\s0, \s-1AU\s0, \s-1AVR\s0, \s-1BONK\s0, \s-1CAF\s0, \s-1CDR\s0, \s-1FAP\s0, \s-1FLA\s0, \s-1FLAC\s0, \s-1IRCAM\s0, \s-1LA\s0, \s-1LPAC\s0, \s-1MAT\s0, \s-1MAT4\s0, \s-1MAT5\s0, M4A, \s-1MMF\s0, \s-1MP2\s0, \s-1MP3\s0, \s-1MP4\s0, \s-1MPC\s0, \s-1MPP\s0, \s-1NIST\s0, \s-1OFR\s0, \s-1OFS\s0, \s-1OGG\s0, \s-1PAC\s0, \s-1PAF\s0, \s-1PVF\s0, \s-1RA\s0, \s-1RAM\s0, \s-1RAW\s0, \s-1SD2\s0, \s-1SF\s0, \s-1SHN\s0, \s-1SMP\s0, \s-1SND\s0, \s-1SPX\s0, \s-1TTA\s0, \s-1VOC\s0, W64, \s-1WAV\s0, \s-1WMA\s0, and \s-1WV\s0. It can also convert audio from the following video extensions: \s-1RM\s0, \s-1RV\s0, \s-1ASF\s0, DivX, \s-1MPG\s0, \s-1MKV\s0, \s-1MPEG\s0, \s-1AVI\s0, \s-1MOV\s0, \s-1OGM\s0, \s-1QT\s0, \s-1VCD\s0, \s-1SVCD\s0, M4V, \s-1NSV\s0, \s-1NUV\s0, \s-1PSP\s0, \s-1SMK\s0, \s-1VOB\s0, \s-1FLV\s0, and \s-1WMV\s0. A \s-1CD\s0 ripping function with \s-1CDDB\s0 support, batch conversion, tag preservation for most supported formats, independent tag reading/writing, and extensions for Amarok, Dolphin, and Konqueror are also provided.
-t, --to format
set encode format for the input file(s) or directory(s). you can see a complete list of supported encode formats by using the --formats option.
-r, --recursive
recursively scan and convert input folder(s) to desination format.
-p, --preserve
when recursively converting a directory, preserve the input folders directory structure in the specified output directory. such as:
pacpl --to ogg -r -p /home/mp3s --outdir /home/oggs
in the example above, let's assume the directory structure was:
the output directory will now contain:
with all files in each sub-folder converted to ogg.
-o, --only format
only convert files matching extenstion. this option is useful when you have a directory or batch of files with mixed audio types and only need to convert one specific type.
-k, --keep
do not re-encode files with extensions matching the destination extension. instead...copy them to the output folder, or skip to the next file.
--defopts 1/0
to turn off default encoder options use --defopts 0. this option gives you more control when using the --eopts command.
defopts is set to 1 by default. you can also toggle this option in /etc/pacpl/pacpl.conf.
--eopts options
this option allows you to use encoder options not implemented by pacpl. an example would be:
pacpl --to mp4 --eopts=\*(L"-c 44100 -I 1,2\*(R" YourFile.mp3
--dopts options
this option allows you to use decoder options not implemented by pacpl. an example would be:
pacpl --to mpc --dopts=\*(L"--start 60\*(R" YourFile.ogg
--outfile name
set the output file name to name.
--outdir directory
place all encoded files in directory.
--dryrun
show what would be done without actually converting anything. this is a good way to trouble shoot, or to see what would be done without actually touching your files.
--overwrite
replace the output file if it already exists.
--normalize
adjusts volume levels of audio files.
--nopts options
this allows you to specify normalize options not implemented by pacpl
--delete
remove source/input file after the conversion process has finished.
--encoder encoder
specify an alternate encoder for the selected output file(s)
you can see a list of supported encoders by using the following:
pacpl --encoder format
--decoder decoder
specify an alternate decoder for the selected input file(s)
you can see a list of supported decoders by using the following:
pacpl --decoder format
-v, --verbose
show detailed information about the encoding process and what's actually being done.
--bitrate num
set the bitrate to num. default is 128. this option does not apply to all formats.
--freq num
set the frequency to num. default is 44100. this option does not apply to all formats.
--channels num
set the number of audio channels in the output file to num. this option does not apply to all formats.
--effect str
see sox(1). this option only applies to the following:
\s-1AIFF\s0, \s-1AU\s0, \s-1SND\s0, \s-1RAW\s0, \s-1VOC\s0, \s-1SMP\s0, \s-1AVR\s0, and \s-1CDR\s0
--fcomp num
set flac compression level to num. fastest -0, highest -8, default -2
--pcomp num
set lpac/pac compression level to num.
--acomp num
set ape compression level to num.
--oggqual num
set ogg quality level to num. -1, very low and 10 very high, default 3
--spxqual num
set speex quality level to num. 0-10, default 8
--aacqual num
set aac, mp4, m4a, or m4b quality level to num. default 300
--mpcqual str
set mpc/mpp quality level to str.
--ofmode str
set ofr/ofs compression mode to str. normal, extra, and extranew modes are recommended for general use. available options are:
--ofopt str
set ofr/ofs optimization level to str.
specify the optimization level in the engine. In order to achieve optimal compression at all sample types, sample rates, and audio content, the core compression engine has the possibility to find the optimal values for its parameters, at the cost of slightly increased compression time only. The default recommended value is fast. do not use normal (or even high or best) for this parameter unless encoding time does not matter and you want to obtain the smallest possible file for a given compression mode. The difference between the optimize levels fast and best (which is up to three times slower than fast) is very small, generally under 0.05%, but may be also larger in some rare cases. Note that the none optimize level is forced by the encoder to fast optimize level for the extra, best, highnew, extranew, and bestnew modes.
available options are:
--bratio num
set bonk down sampling ratio. default 2
--bquanl num
set bonk quantanization level. default 1.0
--bpsize num
set bonk predictor size. default 128
note:
tagging outside of the encoding process can only be performed on the following audio types:
--artist str
set artist information to str.
--title str
set title information to str.
--track num
set track information to num.
--year num
set year/date information to num.
--album str
set album information to str.
--genre str
set genre information to str.
--comment str
set comment information to str.
--taginfo file
show tagging information for file. multiple files can be specified at once.
--rip num/all
rip selected tracks separated by comma or all from current disc.
--nocddb
disable cddb. use this option if you do not want tagging based on cddb.
--noinput
disable cddb interactivity. this is enabled by default.
--nscheme str
set naming scheme to str. default is %ar - %ti
available options are:
eg: --nscheme=\*(L"(%tr)-%ti\*(R"
--device str
set device to str. default is /dev/cdrom
--cdinfo
show cddb information for current disc.
Report all bugs to Philip Lyons ([email protected]).
This program is free software; you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but \s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of \s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0. See the \s-1GNU\s0 General Public License for more details.
You should have received a copy of the \s-1GNU\s0 General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2005-2009 Philip Lyons ([email protected])