Skip to main content

Recursively mirror a directory tree of FLAC audio files to AAC.

Project description

Recursively mirror a directory tree of FLAC audio files to AAC. Source files can be filtered (by sub-directory, or full path) in order to limit the files converted. The script will also attempt to retain all meta-data fields in the output files.

At a Glance

  • Mirror directory tree of FLAC files audio files to AAC (re-encoded using NeroAacEnc?).
  • Filter source tree using one or more sub-directory paths.
  • By default, will only re-encode missing or out-of-date AAC files.
  • Optionally deletes orphaned output files.
  • Multi-threaded encoding ensures full CPU utilization.
  • Supports transfer of FLAC meta-data including title, artist, album.
  • Converts FLAC replaygain field to Apple iTunes Sound Check.
  • Resizes and embeds album cover art JPEG files to destination files.

Usage Model

  • Hard disk space is cheap, but flash-based media players are still limited in capacity.
  • Create an AAC encoded “mirror” of your music files for portability.
  • Setup a daily cron job to always keep your FLAC and AAC files syncronized.
  • Re-encode your FLAC library to different AAC bit-rates in one command.

Installation Steps

  1. Any one of the following command will install flacsync. Make sure to run as root user:

    1. Use easy_install from the setuptools package:

      sudo easy_install flacsync
    2. Download the source distribution file and install from the command line:

      tar xzf flacsync-*.tar.gz
      cd flacsync-*
      sudo make install
  2. Install the Nero AAC Code binaries.

  • The archive is located at the Nero AAC Codec Download Page
  • Extract the archive files neroAacEnc and neroAacTag to any directory defined in your PATH statement. A recommended location would be either /usr/bin or /usr/local/bin.
  1. Review the usage instruction by running:

    flacsysnc -h

Project details

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page