Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: batch converting an audio archive via afconvert (OS X) (Read 4803 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

batch converting an audio archive via afconvert (OS X)

I installed Snow Leopard yesterday and have been toying around with the most recent version of the CoreAudio AAC encoder... while I know XLD enables access to True VBR mode with Quicktime AAC, I'd still like to try to run a batch conversion of my FLAC audio archive to AAC using just Terminal (if possible).

here is what I'm working with and what I'd like to do:
- the source files are located on an external drive located at "~/Volumes/Backup/Archive" (I assume this is the proper way to write it)
- my audio files are located in "/Artist/Album" subfolders within the Archive
- I would like to convert the files to -Q85, True VBR AAC, at the Maximum quality setting and 44.1Khz sample rate

given this info, would it be possible to set up a script (or shell) that I can run in Terminal, or would I be better off sticking with XLD for my conversions?  thanks in advance to anyone who can help me out!
Archive- FLAC (-v 8)
Portable- QuickTime AAC (True VBR/-q 77)

batch converting an audio archive via afconvert (OS X)

Reply #1
XLD can do that, keep your existing directory structure, and output the AAC tree to a new location. You could also write a BASH script, that would accomplish the same by calling afconvert, but why the extra route? It would also not preserve tags, which XLD does.

batch converting an audio archive via afconvert (OS X)

Reply #2
XLD can do that, keep your existing directory structure, and output the AAC tree to a new location. You could also write a BASH script, that would accomplish the same by calling afconvert, but why the extra route? It would also not preserve tags, which XLD does.

well, the main reason I asked is that I'm trying to figure out what my options are as far as accessing CoreAudio's AAC encoder- I've been using XLD since buying my first Mac last year, but I'd also heard about running a batch encode via afconvert and thought I'd at least try it out (and if it didn't work, at least I'd have XLD as a reliable standby)... thanks for the input, though, it sounds like it's not really worth my time to experiment with other procedures when XLD takes care of everything so well already.
Archive- FLAC (-v 8)
Portable- QuickTime AAC (True VBR/-q 77)

 

batch converting an audio archive via afconvert (OS X)

Reply #3
I've written a script for this task a while ago. Just tried it on Snow Leopard and it works.It depends on flac, atomicparsley from macports. If you got growlnotify installed it will notifier you too. I've also created a Services workflow but it's really hacked together

keep in mind that this scripts creates a diskimage for the fileconversion and moves everything to Music/Transcode

http://dl.getdropbox.com/u/1850177/flac2aac.sh

http://dl.getdropbox.com/u/1850177/flacservices.zip