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
kcramer
post Dec 19 2006, 20:47
Post #2





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



afconvert looks very good. I may have to change the application so it can read from stdin though. My conversion process relies on chaining applications together.

I guess I missed that when browsing the XCode stuff.

Thanks for all the suggestions.
Go to the top of the page
+Quote Post
nerd
post May 24 2007, 18:54
Post #3





Group: Members
Posts: 2
Joined: 24-May 07
Member No.: 43740



QUOTE (kcramer @ Dec 19 2006, 13:47) *
afconvert looks very good. I may have to change the application so it can read from stdin though. My conversion process relies on chaining applications together.

I guess I missed that when browsing the XCode stuff.

Thanks for all the suggestions.


I'm looking for a mp3 to aac converter. I compiled afconvert, but I get a "Couldn't set file's length (-66566)" error.

here is the command I try. (i've also tried several others)
~/afconvert -v -f "mp4f" -d "aac " she_waits_mix.wav.mp3 test.mp4

and here is the output...
Input file: she_waits_mix.wav.mp3, 6276096 frames
Formats:
Input file 2 ch, 44100 Hz, '.mp3' (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame
Output file 2 ch, 44100 Hz, 'aac ' (0x00000002) 0 bits/channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame
Stereo
Input client 2 ch, 44100 Hz, 'lpcm' (0x00000009) 32-bit little-endian float
AudioConverter 0x180ce84 [0x319cc0]:
CodecConverter 0x319ec0
Input: 2 ch, 44100 Hz, '.mp3' (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame
Output: 2 ch, 44100 Hz, 'lpcm' (0x00000009) 32-bit little-endian float
Output client 2 ch, 44100 Hz, 'lpcm' (0x00000009) 32-bit little-endian float
AudioConverter 0x180ce8c [0x31a0c0]:
CodecConverter 0x31a2e0
Input: 2 ch, 44100 Hz, 'lpcm' (0x00000009) 32-bit little-endian float
Output: 2 ch, 44100 Hz, 'aac ' (0x00000002) 0 bits/channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame
error -66566: Couldn't set file's length

Error: Couldn't set file's length (-66566)

it looks like it's working, but it just can't write the file?



I have also tried running faac, and it looks like it can't open the orginal mp3 file.. but it's a fine mp3. I can play it with all the mp3 players. (I encoded it using lame)

coca:~/music_projects nerd$ faac she_waits_mix.wav.mp3 -o test.mp4a
Freeware Advanced Audio Coder
FAAC 1.25

Couldn't open input file she_waits_mix.wav.mp3
coca:~/music_projects nerd$
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: 18th April 2014 - 07:25