User:PBryan/flac2mp3: Difference between revisions
From MusicBrainz Wiki
Jump to navigationJump to search
m (3 revision(s)) |
m (User:Pbryan/flac2mp3 moved to User:PBryan/flac2mp3) |
||
(One intermediate revision by one other user not shown) |
Latest revision as of 17:37, 15 March 2009
flac2mp3
Description
The flac2mp3 script recursively walks a directory containing FLAC files and transcodes to MP3 format, en masse. Features:
- incremental (non-overwrite) to only transcode only newly found FLAC files
- spawns multiple processes to allow multiple concurrent encodings to be performed
- fairly substantial mapping from Vorbis-style comments in FLAC to MP3 frames
Dependencies
- Getopt-ArgvFile module (Ubuntu package: libgetopt-argvfile-perl)
- Parallel-ForkManager module (Ubuntu package: libparallel-forkmanager-perl)
- Sys-CPU Perl module (Ubuntu package: libsys-cpu-perl)
- flac and metaflac utilities (Ubuntu package: flac)
- lame utility (Ubuntu package: lame)
- id3v2 utility (Ubuntu package: id3v2)
Notes
- This script is tested on Ubuntu 8.10; mileage may vary on other platforms.
Download
License
- This script is licensed under the GPL 2.0 or later.
Usage
Usage: flac2mp3 [options] flac_dir [mp3_dir]
Options
-
Option Description Default --encopts=options Options to pass to encoder. --preset standard --noreplaygain --flac=program Program to decode extracted audio from FLAC format flac --help Display this help message. --lame=program Program to encode to MP3 format. lame --metaflac=program Program to get metadata from FLAC files. metaflac --[no]overwrite Overwrite previous extract of tracks. nooverwrite --processes=number Number of concurrent encoder processes number of CPUs --quiet Quiet operation, no screen output. --verbose Verbose output of progress information.
Configuration file
You can store persistent command-line options in a file called .flac2mp3 in your home directory. They will be read as defaults prior to processing any passed command-line options.
Changelog
0.9 (2009-01-07)
- initial version released to MusicBrainz