IPB

Welcome Guest ( Log In | Register )

Mac OS X AAC command line encoder besides FAAC?
kcramer
post Nov 18 2006, 03:35
Post #1





Group: Members
Posts: 16
Joined: 9-July 04
Member No.: 15190



Has anyone found a command line AAC encoder that will use QuickTime/iTunes to encode files?

I want to automate converting all my FLAC files to AAC (m4a) and I can do it with FAAC but I would prefer the quality of the QT/iTunes encoder. It seems like it wouldn't be hard for someone to write a small command line application that uses the CoreAudio API to do this work.

Has anyone seen such a tool? I've had no luck finding one.

Thanks!
Go to the top of the page
+Quote Post
 
Start new topic
Replies
krmathis
post Nov 18 2006, 09:04
Post #2





Group: Members
Posts: 742
Joined: 27-May 02
From: Oslo, Norway
Member No.: 2133



What about 'afconvert'? A CoreAudio example application, following Xcode Tools.
QUOTE
afconvert - reads one audio file, writes it to another format. Good example of the power of CAAudioFile and use of the AudioConverter for codecs.


CODE
$ afconvert
Usage:
afconvert [option...] input_file [output_file]

Options: (may appear before or after arguments)
    { -f | --file } file_format:
        'adts' = AAC ADTS (.aac, .adts)
                   data_formats: 'aac '
        'ac-3' = AC3 (.ac3)
                   data_formats: 'ac-3'
        'AIFC' = AIFC (.aif, .aiff, .aifc)
                   data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
                                 BEF64 'ulaw' 'alaw' 'MAC3' 'MAC6' 'ima4'
                                 'QDMC' 'QDM2' 'Qclp' 'agsm'
        'AIFF' = AIFF (.aif, .aiff)
                   data_formats: BEI8 BEI16 BEI24 BEI32
        'caff' = Apple CAF File (.caf)
                   data_formats: '.mp3' 'MAC3' 'MAC6' 'QDM2' 'QDMC'
                                 'Qclp' 'Qclq' 'TS\x00\x02' 'TS\x00\x06' 'TS\x00\x07' 'TS\x00\x11'
                                 'TS\x00E' 'TS\x00U' 'WMA1' 'WMA2' 'WMA3' 'aac '
                                 'agsm' 'alac' 'alaw' 'drms' 'dvca' 'dvi '
                                 'ima4' 'lpc ' BEI8 BEI16 BEI24 BEI32
                                 BEF32 BEF64 LEI16 LEI24 LEI32 LEF32
                                 LEF64 'ms\x00\x02' 'ms\x00\x11' 'ms\x001' 'ms\x00U' 'samr'
                                 'ulaw' 'vdva'
        'MPG3' = MPEG Layer 3 (.mp3, .mpeg)
                   data_formats: '.mp3'
        'mp4f' = MPEG4 Audio (.mp4)
                   data_formats: 'aac '
        'm4af' = MPEG4 Audio (.m4a)
                   data_formats: 'aac ' 'alac'
        'NeXT' = NeXT/Sun (.snd, .au)
                   data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
                                 BEF64 'ulaw'
        'Sd2f' = Sound Designer II (.sd2)
                   data_formats: BEI8 BEI16 BEI24 BEI32
        'WAVE' = WAVE (.wav)
                   data_formats: LEUI8 LEI16 LEI24 LEI32 LEF32
                                 LEF64 'ulaw' 'alaw'
    { -d | --data } data_format[@sample_rate_hz][/format_flags][#frames_per_packet] :
        [-][BE|LE]{F|[U]I}{8|16|24|32|64}          (PCM)
            e.g.   BEI16   F32@44100
        or a data format appropriate to file format, as above
        format_flags: hex digits, e.g. '80'
        bitdepth on non-PCM formats can be specified, e.g.: alac-24
        Frames per packet can be specified for some encoders, e.g.: samr#12
    { -c | --channels } number_of_channels
        add/remove channels without regard to order
    { -l | --channellayout } layout_tag
        layout_tag: name of a constant from CoreAudioTypes.h
          (prefix "kAudioChannelLayoutTag_" may be omitted)
        if specified once, applies to output file; if twice, the first
          applies to the input file, the second to the output file
    { -b | --bitrate } bit_rate_bps
         e.g. 128000
    { -q | --quality } codec_quality
        codec_quality: 0-127
    { -r | --src-quality } src_quality
        src_quality (sample rate converter quality): 0-127
    { -v | --verbose }
        print progress verbosely
    { -s | --strategy } strategy
        bitrate strategy for encoded file
        0 for CBR, 1 for ABR, 2 for VBR
    { -t | --tag }
        If encoding to CAF, store the source file's format and name in a user chunk.
        If decoding from CAF, use the destination format and filename found in a user chunk.
    --prime-method method
        decode priming method (see AudioConverter.h)
Go to the top of the page
+Quote Post

Posts in this topic
- kcramer   Mac OS X AAC command line encoder besides FAAC?   Nov 18 2006, 03:35
- - krmathis   What about 'afconvert'? A CoreAudio exampl...   Nov 18 2006, 09:04
- - dbAmp   This sounds like it is something that could be don...   Nov 18 2006, 09:28
- - kcramer   afconvert looks very good. I may have to change t...   Dec 19 2006, 20:47
|- - nerd   QUOTE (kcramer @ Dec 19 2006, 13:47) afco...   May 24 2007, 18:54
- - Maurits   Isn't this something you can let Max handle? I...   May 24 2007, 19:07
|- - nerd   QUOTE (Maurits @ May 24 2007, 12:07) Isn...   May 24 2007, 19:47
- - It's me Selur   On Windows/Linux I use ffmpeg/mencoder/mplayer for...   May 30 2012, 14:46
- - smok3   QUOTE (nerd @ May 24 2007, 20:47) QUOTE (...   May 30 2012, 18:23
- - It's me Selur   doesn't look like a command line tool,..   May 30 2012, 19:22
- - smok3   Its bunch of bash scripts that call command line t...   May 30 2012, 20:44
|- - Nessuno   Maybe XLD in batch mode is all you need.   May 30 2012, 22:11
- - RobertoDomenico   Couldn't the command line version of XLD do wh...   May 31 2012, 03:44
- - It's me Selur   I'll look into it, never heard of XLD before.   May 31 2012, 06:51
- - RobertoDomenico   XLD is the holiy grail for OS X. http://tmkk.pv.la...   May 31 2012, 06:55
- - It's me Selur   Is there some 'howto' with examples somewh...   May 31 2012, 07:41
|- - Nessuno   QUOTE (It's me Selur @ May 31 2012, 08...   May 31 2012, 08:07
- - It's me Selur   [qutoe]It's possible that you don't even n...   May 31 2012, 11:51
|- - Nessuno   QUOTE (It's me Selur @ May 31 2012, 12...   May 31 2012, 13:08
- - Dario   Even though I'm no Mac user, I'm quite cer...   May 31 2012, 12:46
- - It's me Selur   downloaded xld from (http://tmkk.pv.land.to/xld/in...   May 31 2012, 13:32
|- - Nessuno   QUOTE (It's me Selur @ May 31 2012, 14...   May 31 2012, 14:54
- - It's me Selur   if it doesn't work with pipes it's not int...   Jun 1 2012, 13:25
|- - Nessuno   QUOTE (It's me Selur @ Jun 1 2012, 14...   Jun 1 2012, 17:11
- - It's me Selur   yes. I also tried: afconvert -f m4af sixChannel.wa...   Jun 1 2012, 19:57
|- - Nessuno   It seems there is something wrong in your wav file...   Jun 1 2012, 22:37
- - It's me Selur   "-v -10" forces ffmpeg to not output any...   Jun 2 2012, 05:13
- - Nessuno   QUOTE (It's me Selur @ Jun 2 2012, 06...   Jun 2 2012, 11:06


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2014 - 01:39