Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

MacPorts / HomeBrew – Rip CD tracks from terminal

Posted on May 22, 2016November 5, 2017 By David Kittell

I’m mainly doing this project for my church where the CD will typically only have one track and the MP3 bitrate is acceptable at 64 kbit/s

Yes there are faster options that also are free but this is the best option I’ve found to make it an easy process someone can start and chat with people once starting and then upload/copy it to the site.

First download and install MacPorts (from https://www.macports.org/install.php) or HomeBrew (from http://brew.sh/)

# MacPorts
sudo port install cdparanoia sox

# HomeBrew
brew install cdparanoia lame sox
cdparanoia -vsQ
cdparanoia -B
drutil eject

At this point we will convert the wav to an MP3, if you’d like a higher/lower bitrate change the 64 to one of these: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 and 320

lame -b 64 track01.cdda.wav -o Sermon_2016_04_24.mp3
rm track01.cdda.wav

If you need to combine files, sox will help combine the files. The example below will put track01 in front of track02 in a single wav file.

sox track01.cdda.wav track02.cdda.wav Sermon.wav

Now for the complete script it’s rather simple especially if you do it the day of the sermon.

cdparanoia -B
drutil eject
lame -b 64 track01.cdda.wav -o Sermon_`date +%Y_%m_%d`.mp3
rm track01.cdda.wav
Originally Posted on May 22, 2016
Last Updated on November 5, 2017
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Mac OS X Shell Mac OSX UNIX UNIX Shell Scripts CD Track To MP3cdparanoiaChurchlamemac os xRip CD in TerminalSermonWav to MP3

Post navigation

Previous post
Next post

Related Posts

Ektron Show duplicate content

Posted on August 11, 2015October 26, 2015

If you have more than one person in the site administration you can sometimes get duplicates, this script will help you find them. SET NOCOUNT ON DECLARE @Domain VARCHAR(50) SET @Domain = ‘/’ SELECT c.[content_title], CASE content_type WHEN – 1 THEN CAST(content_type AS VARCHAR(5)) + ‘ – AllTypes’ WHEN 1…

Read More

Classic ASP Send Email

Posted on March 3, 2014May 25, 2017

<% Set myMail=CreateObject("CDO.Message") if Request("subject") <> "" then myMail.Subject=Request("subject") else myMail.Subject="<Subject>" end if if Request("from") <> "" then myMail.From=Request("from") else myMail.From="<From Email Address>" end if if Request("To") <> "" then myMail.To=Request("To") else myMail.To="<To Email Address>" end if if Request("Cc") <> "" then myMail.CC=Request("Cc") else myMail.CC="<CC Email Address>" end if myMail.TextBody=…

Read More

Android Contacts – Remove Websites

Posted on March 2, 2014October 26, 2015

DELETE FROM data WHERE mimetype_id IN ( SELECT _id FROM mimetypes WHERE mimetype LIKE "%web%" ) AND data1 LIKE ‘%facebook.com%’; Originally Posted on March 2, 2014Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes