techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 1877
Location: East Coast, West Coast? I know it's one of them.
Back to top
Posted: Feb 9, 10, 15:50    acxi - audio conversion flac to ogg / mp3 script - sync data
acxi is an expanded, cleaned up, and feature enhanced fork of the original logic of the classic flac2ogg.pl script.

Version History:
  • 2.6.1: 12 April 2010
    Added more defaults to list of file types: 'tif', 'doc', 'docx', 'odt'
  • 2.6.0: 12 February 2010
    • Added -c/---copy option to allow for user set files to sync/copy types. Overrides defaults.
    • Structured code further to allow for /etc/acxi.conf as well as $HOME/.acxi.conf files to override defaults.
    • Reordered globals to be more clear and user readable.

In addition to converting flac (or wav, raw, with ogg output) to ogg or mp3, acxi also copies over all txt, bmp, jpg, and pdf files from the source/flac directories to the new destination/ogg (or mp3) directories, which is convenient if you are ripping flac torrents with their data stuff to ogg/mp3.

I'll probably add more features over time, once I figure out how perl actually works, but for now it's all working nicely, it's been cleaned up and put into structured functions to make it more powerful and useful.

To get it, do this:
:: Code ::
cd /usr/local/bin && wget -Nc smxi.org/acxi && chmod +x acxi


See acxi -h
for list of supported options.
then edit the top variables to fit your system as defaults, most can be overridden with options however.

:: Code ::
acxi -h
acxi v: 2.6.0 :: Supported Options:
Examples: acxi -q 8 --destination /music/main/ogg
acxi --input wav --output ogg
acxi --copy doc,docx,bmp
-----------------------------------------------------------------
--copy -c         List of alternate data types to copy to Output type directories.
                  Must be comma separated, no spaces, see sample above.
                  Your current copy types are: bmp jpg jpeg pdf txt
--destination -d  The path to the directory where you want the processed (eg, ogg) files to go.
                  Your current script default is: /path/to/your/output/directory
--force -f        Overwrite the ogg/jpg/txt files, even if they already exist.
--help -h         This help menu.
--input -i        Input type: supported - flac, wav, raw. mp3 only supports flac input.
                  Your current script default is: flac
--output -o       Output type: supported - ogg, mp3.
                  Your current script default is: ogg
--quality n -q n  Where n is a number between 1 and 10, 10 being the best quality (ogg).
                  mp3 supports: 0-9 (variable bit rate: quality 0 biggest/highest, 9 smallest/lowest)
                  Your current script default is: 7
--source -s       The path to the top-most directory containing your source files (eg, flac).
                  Your current script default is: /path/to/source/directory
--version -v      Show acxi version.

-----------------------------------------------------------------
User Configs: $HOME/.acxi.conf or /etc/acxi.conf
Requires this syntax (any user modifiable variable can be used)
DIR_PREFIX_SOURCE=/home/me/music/flac
Do not use the $ or ", ' in the config data


Script features error handling for all user input, so it's a bit safer than the old flac2ogg.pl, which didn't do any checking of anything.

Currently supported:
output: ogg
input: wav, raw, flac
quality: 1-10

output: mp3
input: flac
quality: 0-9 ( uses -V n - variable bit rate, highest is lowest quality, lowest number, 0, is highest quality and largest)

Note that output: mp3 so far I think does not copy over the IP3 tags from flac.

Copy types (sync from source to destination):
defauts: bmp jpg jpeg pdf txt
user set: any you want
Display posts from previous:   

All times are GMT - 8 Hours