Audio Format Conversion

Macintosh software/hardware discussion and troubleshooting

Moderator: James Steele

Post Reply
User avatar
bayswater
Posts: 11965
Joined: Fri Feb 16, 2007 9:06 pm
Primary DAW OS: MacOS
Location: Vancouver

Audio Format Conversion

Post by bayswater »

Macfixit had an article on converting audio files to ringtone. Not so interesting, but they did it with the Terminal command afconvert. It looks like this command covers a very wide range of conversions in rates, formats, file types, etc. You can get a listing of what it does by entering afconvert -hf.

The article is at http://reviews.cnet.com/8301-13727_7-57 ... -terminal/

To give an idea, here's a partial paste of formats covered:

'3gpp' = 3GP Audio (.3gp) data_formats: 'Qclp' 'aac ' 'aace' 'aacf' 'aach' 'aacl' 'aacp' 'samr'
'3gp2' = 3GPP-2 Audio (.3g2) data_formats: 'Qclp' 'aac ' 'aace' 'aacf' 'aach' 'aacl' 'aacp' 'samr'
'adts' = AAC ADTS (.aac, .adts) data_formats: 'aac ' 'aach' 'aacp'
'ac-3' = AC3 (.ac3) data_formats: 'ac-3'
'AIFC' = AIFC (.aifc, .aiff, .aif) data_formats: I8 BEI16 BEI24 BEI32 BEF32 BEF64 UI8 'ulaw' 'alaw' 'MAC3' 'MAC6' 'ima4' 'QDMC' 'QDM2' 'Qclp' 'agsm'
'AIFF' = AIFF (.aiff, .aif) data_formats: I8 BEI16 BEI24 BEI32
'amrf' = AMR (.amr) data_formats: 'samr'
'm4af' = Apple MPEG-4 Audio (.m4a, .m4r) data_formats: 'aac ' 'aace' 'aacf' 'aach' 'aacl' 'aacp' 'ac-3' 'alac' 'paac'
'm4bf' = Apple MPEG-4 AudioBooks (.m4b) data_formats: 'aac ' 'aace' 'aacf' 'aach' 'aacl' 'aacp' 'paac'
'caff' = CAF (.caf) data_formats: '.mp1' '.mp2' '.mp3' 'AC-3' 'QDM2' 'QDMC' 'Qclp' 'Qclq' 'TS\x00\x02' 'TS\x00\x11' 'TS\x00E' 'WMA1' 'WMA2' 'WMA3' 'WMAL' 'aac ' 'aace' 'aacf' 'aach' 'aacl' 'aacp' 'ac-3' 'alac' 'alaw' 'dvi8' 'ilbc' 'ima4' I8 BEI16 BEI24 BEI32 BEF32 BEF64 LEI16 LEI24 LEI32 LEF32 LEF64 'ms\x00\x02' 'ms\x00\x11' 'ms\x001' 'ms \x00' 'paac' 'samr' 'ulaw' 'zaac' 'zach' 'zacp'
'MPG1' = MPEG Layer 1 (.mp1, .mpeg, .mpa) data_formats: '.mp1'
'MPG2' = MPEG Layer 2 (.mp2, .mpeg, .mpa) data_formats: '.mp2'
'MPG3' = MPEG Layer 3 (.mp3, .mpeg, .mpa) data_formats: '.mp3'
'mp4f' = MPEG-4 Audio (.mp4) data_formats: 'aac ' 'aace' 'aacf' 'aach' 'aacl' 'aacp' 'ac-3'
'NeXT' = NeXT/Sun (.snd, .au) data_formats: I8 BEI16 BEI24 BEI32 BEF32 BEF64 'ulaw'
'Sd2f' = Sound Designer II (.sd2) data_formats: I8 BEI16 BEI24 BEI32
'WAVE' = WAVE (.wav) data_formats: UI8 LEI16 LEI24 LEI32 LEF32 LEF64 'ulaw' 'alaw'
2018 Mini i7 32G 10.14.6, DP 11.3, Mixbus 9, Logic 10.5, Scarlett 18i8
User avatar
mikehalloran
Posts: 15221
Joined: Sun Jan 25, 2009 5:08 pm
Primary DAW OS: MacOS
Location: Sillie Con Valley

Re: Audio Format Conversion

Post by mikehalloran »

Although much, if not all of that can be done in QuickTime Pro 7.6.6, this can be faster for those used to the process.

What the article doesn't mention is that you can copy and paste commands into Terminal. Much faster and more accurate than typing for many of us.

Thanks for posting that!
DP 11.31; 828mkII FW, micro lite, M4, MTP/AV USB Firmware 2.0.1
2023 Mac Studio M2 8TB, 192GB RAM, OS Sonoma 14.4.1, USB4 8TB external, M-Audio AIR 192|14, Mackie ProFxv3 6/10/12; 2012 MBPs Catalina, Mojave
IK-NI-Izotope-PSP-Garritan-Antares, LogicPro X, Finale 27.4, Dorico 5.2, Notion 6, Overture 5, TwistedWave, DSP-Q 5, SmartScore64 Pro, Toast 20 Pro
User avatar
bayswater
Posts: 11965
Joined: Fri Feb 16, 2007 9:06 pm
Primary DAW OS: MacOS
Location: Vancouver

Re: Audio Format Conversion

Post by bayswater »

mikehalloran wrote:What the article doesn't mention is that you can copy and paste commands into Terminal. Much faster and more accurate than typing for many of us.
Not copy and paste, but they do describe the process for dragging and dropping the relevant paths and files into Terminal. That's often even simpler than copy and paste.
2018 Mini i7 32G 10.14.6, DP 11.3, Mixbus 9, Logic 10.5, Scarlett 18i8
Post Reply