Difference between revisions of "User:PBryan/flac2mp3"

From MusicBrainz Wiki
((Imported from MoinMoin))
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Line 35: Line 37:
<ul><li style="list-style-type:none">
<ul><li style="list-style-type:none">
{| border="1"
{| border="1"
| '''Option''' || '''Description''' || '''Default'''
| '''--encopts='''''options'' || Options to pass to encoder. || '''--preset standard --noreplaygain'''
| '''--encopts='''''options'' || Options to pass to encoder. || '''--preset standard --noreplaygain'''

Latest revision as of 17:37, 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