Difference between revisions of "User:PBryan/flac2mp3"

From MusicBrainz Wiki
m (3 revision(s))
(No difference)

Revision as of 16:34, 15 March 2009



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



  • This script is tested on Ubuntu 8.10; mileage may vary on other platforms.




Usage: flac2mp3 [options] flac_dir [mp3_dir]


  • 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.


0.9 (2009-01-07)

  • initial version released to MusicBrainz