Creating an audiobook from a list of mp3 files

Creating an audiobook from a list of mp3 files

. 2 min read

I recently got my hands on an audiobook with a collection of mp3 files. I like to listen on an iPhone and creating a playlist wasn't working the way I intended.

So, I wanted to explore making an audiobook from the mp3 files.

I tried concatenating all the audiofiles together into a single file. While the files concantenated fine, I was running into trouble with the metadata and the way iTunes was recognizing it.

The following steps seem to fix the issues I faced ... atleast so far!

cd /Volumes/Seagate\ Slim/Books/Option\ B\ Facing\ Adversity,\ Building\ Resilience,\ and\ Finding\ Joy\ by\ Sheryl\ Sandberg

# Requires files to be named correctly. checking a simple `ls`
ls *.mp3

#Concatenate mp3 files
cat *.mp3 > Option-B-full.mp3

# Fix the metadata (iTunes issue?)
# Credit: https://stackoverflow.com/questions/3255674/convert-audio-files-to-mp3-using-ffmpeg
# Credit: https://superuser.com/questions/996223/using-ffmpeg-to-copy-metadata-from-one-file-to-another
ffmpeg -i Option-B-full.mp3 -i Option-B-full.mp3 -map 1 -c copy -map_metadata:s:a 0:s:a Option-B-final.mp3

# Delete the unncessary file
rm Option-B-full.mp3


# Terminal screencast created using: https://github.com/nbedos/termtosvg
# Code image crated using: https://carbon.now.sh/

After the creation of the audibook file, I simply needed to import into itunes and change the Song Info to Audiobook

If everthing worked as intended, you should be able to open up the audiobook using iBooks or the Audible app on the iPhone!

Few audiobooks ran into issues and I tried to solve with this hack!

ffmpeg -i Antifragile-final.mp3 -af volume=1 -vsync 2 Antifragile-final-new.mp3

# Credit: https://stackoverflow.com/questions/13043334/error-when-trying-to-convert-mp3-with-image-to-mp4-using-ffmpeg
ffmpeg -i Antifragile-final.mp3 -vn Antifragile-final-new.mp3

Credit: http://howto-pages.org/ffmpeg/
ffmpeg -i Antifragile-final-new.mp3 -acodec mp3 -ab 64k Antifragile-final-new-64.mp3

Other possibilities (?)

Screen-Shot-2018-08-05-at-1.25.38-PM

carbon-code

termtosvg_44y9k59b


Tags

AWS Analytics Antifragile Apache Spark Apple Apps Arbitrage Automation Awesome BBMP Bangalore Black Swan Bonds Boonex Bootstrap Brokerage Charges CFPB CMS CSS Calypso Camelot Capital Markets Charts Chirp Choropleth Chrome Code Igniter Collections Containerization Converters Cycling DalalBeat Data Analytics Data Journalism Data Mining Data Munging Data Privacy Data Science Databases Debt Design Design Stock DesignStock Diet Django Docker Document Processing Dropbox Electron Electronics Entertainment Entrepreneurship Exercise FFMPEG Facebook Finance Fire TV Stick Fitness Forerunner From-The-News Fun Futures Gaana Garmin General Geocoding Getting Started Ghost Google APIs GraphicsMagick HHVM HTTPS Hackathon Hacks Hardware Health House Keeping Housing IBM BlueMix IBrokers IPinfo Ideas Image Conversion Image Processing Infographics Interactive Brokers Internet Investing IoT Legal Lets Encrypt Mac Machine Learning Mailbox app Mapbox Markdown Marketing Meteor Mockups MongoDB Mortgages Movies Music MyPad MySQL Nativefier Nature Netflix Newsletters Nginx Node.js Notes OCR OSX Open Source OpenCPU Options PDF PHP Pebble Peloton Personal Photography Picture Platforms Plex Portable Apps Productivity Property Tax PyroCMS Quantitative Finance R-Project Random Raspberry Pi Research Resources Reticulate Robot S3 SQLite STT Scraping Security Server Shell Shiny Side Project Sikuli Speech Recognition Spider Pro Spinning Spotify Startup Resources Startups Strategy Sublime Text System Monitoring Tax Terminal Tips To Do Tools Torrent Trading Trends Troubleshooting USElection2016 Ubuntu Unix Valuations Video Conversion Visualization Wagtail Wearables Weekend Fun WhatsApp Wordpress anaconda annie bash catalina cv2 daily coding dailycoding data.table debugging devtools downloader e-Signatures ggplot git go google maps hat-tip iOS iPad iPhone iTunes javascript jupyter logging macos numpy opencv optionality plotly python rstats videos youtube